KYUA-DB-MIGRATE(1)
KYUA-DB-MIGRATE(1) π
okay bestie, welcome to kyua db-migrate from the General Commands Manual β she's the glow-up specialist for your results files and she's so good at her job π
β¨ NAME β¨
kyua db-migrate β upgrades the schema of an existing results file. it's giving database makeover, no cap π
πΈ SYNOPSIS πΈ
kyua db-migrate [--results-file file]
π DESCRIPTION π
so the kyua db-migrate command migrates the schema of an existing database to the latest version implemented in kyua(1). glow-up era fr fr β¨
β οΈ this operation is NOT reversible. like, no take-backs, periodt. however, a backup of the database is created in the same directory where the database lives β so you do have a safety net, thank god ππ«Ά
the following subcommand options are recognized, bestie:
--results-filepath,-spath β specifies the results file to operate on. defaults toLATEST, which causeskyua db-migrateto automatically load the latest results file from the current test suite. iykyk π
the following values are accepted for that one:
LATESTβ requests the load of the latest results file available for the test suite rooted at the current directory. main character energy, she finds it herself π¦- Directory β requests the load of the latest results file available for the test suite rooted at the given directory π
- Test suite name β requests the load of the latest results file available for the given test suite π
- Results identifier β requests the load of a specific results file. one specific file, very pick-me, we love her β
- Explicit file name (aka everything else) β load the specified results file. just hand her the file, babe π
see βResults filesβ for more details β¬οΈ
ποΈ Results files ποΈ
results files contain, as their name implies, the results of the execution of a test suite. each test suite executed by kyua-test(1) generates a new results file, and such results files can be loaded later on by inspection commands such as kyua-report(1) to analyze their contents. it's literally a whole scrapbook of your test runs πΈ
results files support identifier-based lookups and also path name lookups. the differences between the two are described below, bestie, stay with me π§
the default naming scheme for the results files provides simple support for identifier-based lookups and historical recording of test suite runs. each results file is given an identifier derived from the test suite that generated it and the time the test suite was run. Kyua can later look up results files by these fields. so organized of her π
the identifier follows this pattern:
<test_suite>.<YYYYMMDD>-<HHMMSS>-<uuuuuu>
where test_suite is the path to the root of the test suite that was run with all slashes replaced by underscores and YYYYMMDD-HHMMSS-uuuuuu is a timestamp with microsecond resolution. microseconds?? she's precise and she knows it πβ¨
when using the default naming scheme, results files are stored in the ~/.kyua/store/ subdirectory and each file holds a name of the form:
~/.kyua/store/results.<identifier>.db
results files are simple SQLite databases with the schema described in the /usr/share/kyua/store/schema_v?.sql files. for details on the schema, please refer to the heavily commented SQL file β yes bestie, go read the comments, they ate π₯
π EXIT STATUS π
the kyua db-migrate command returns 0 on success or 1 if the migration fails. slay or sad, no in between π
additional exit codes may be returned as described in kyua(1). π
π SEE ALSO π
and that's the whole vibe check, bestie π«Ά this page is from Debian, dated October 13, 2014, and it lives in the General Commands Manual section β mwah, iconic, periodt πβ¨
π¦ where this page comes from
- alpine 3.23: kyua-doc 0.14.1-r0 Β· BSD-3-Clause
- alpine 3.24: kyua-doc 0.14.1-r0 Β· BSD-3-Clause
- debian bookworm: kyua 0.13+git20190402+a685f911237e-1+b1 Β· BSD-3-Clause
- debian trixie: kyua 0.13+git20240311+0a43bb8d89e3-3 Β· BSD-3-Clause
- ubuntu jammy: kyua 0.13+git20190402+a685f911237e-1 Β· BSD-3-Clause
- ubuntu noble: kyua 0.13+git20190402+a685f911237e-1build2 Β· BSD-3-Clause
- ubuntu questing: kyua 0.13+git20240311+0a43bb8d89e3-3
- ubuntu resolute: kyua 0.13+git20240311+0a43bb8d89e3-3build1 Β· BSD-3-Clause
- ubuntu stonking: kyua 0.13+git20240311+0a43bb8d89e3-3build1 Β· BSD-3-Clause
- Copyright 2013 The Kyua Authors
- Copyright 2014 The Kyua Authors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms