27 std::optional<std::filesystem::path> dbPath;
43template<pkgdb_
typename T>
49 std::shared_ptr<FloxFlake> flake;
50 std::shared_ptr<T> db;
85 std::optional<PkgDbInput> input;
222 std::optional<std::filesystem::path> cacheDir;
224 bool basenames =
false;
Minimal set of DB queries, largely focused on looking up info that is non-trivial to query with a "pl...
Definition: command.hh:136
command::VerboseParser pPath
Definition: command.hh:142
int runPath()
Execute the get path routine.
Definition: get.cc:120
int runId()
Execute the get id routine.
Definition: get.cc:88
int runDone()
Execute the get done routine.
Definition: get.cc:102
int run()
Execute the get routine.
Definition: get.cc:189
int runPkg()
Execute the get pkg routine.
Definition: get.cc:173
command::VerboseParser pFlake
Definition: command.hh:144
int runFlake()
Execute the get flake routine.
Definition: get.cc:139
command::VerboseParser pId
Definition: command.hh:141
command::VerboseParser pDone
Definition: command.hh:143
int runDb()
Execute the get db routine.
Definition: get.cc:154
command::VerboseParser parser
Definition: command.hh:140
command::VerboseParser pPkg
Definition: command.hh:146
command::VerboseParser pDb
Definition: command.hh:145
Definition: command.hh:217
int run()
Execute the list routine.
Definition: list.cc:48
Scrape a flake prefix producing a SQLite3 database with package metadata.
Definition: command.hh:80
bool force
Definition: command.hh:87
int run()
Execute the scrape routine.
Definition: scrape.cc:61
void initInput()
Initialize input from registryInput.
Definition: scrape.cc:39
Executable command helpers, argument parsers, etc.
Interfaces for caching package metadata in SQLite3 databases.
Definition: command.cc:44
uint64_t row_id
Definition: pkg-query.hh:48
Extend a command state blob with an attribute path to "target".
Definition: command.hh:103
Add verbosity flags to any parser and modify the global verbosity.
Definition: command.hh:49
Adds a single package database path to a state blob.
Definition: command.hh:25
argparse::Argument & addDatabasePathOption(argparse::ArgumentParser &parser)
Definition: command.cc:49
Adds a single package database and optionally an associated flake to a state blob.
Definition: command.hh:47
void openPkgDb()
Open a flox::pkgdb::PkgDb connection using the command state's dbPath or flake value.
argparse::Argument & addTargetArg(argparse::ArgumentParser &parser)
Add target argument to any parser to read either a flake-ref or path to an existing database.
Definition: command.cc:149
Interfaces for writing to a SQLite3 package set database.