DBICADMIN(1)
π DBICADMIN(1) π
okay bestie, this is the dbicadmin page from the User Contributed Perl Documentation and it's literally the utility for administrating DBIx::Class schemata. we're about to go through every flag, every action, every little JSON string β no skipping, periodt. π«Άβ¨
πΈ NAME πΈ
dbicadmin β utility for administrating DBIx::Class schemata.
β¨ SYNOPSIS β¨
okay so the basic shape is:
dbicadmin: [-I] [long options...]
and here's the deploy-a-schema-to-a-database moment:
deploy a schema to a database
dbicadmin --schema=MyApp::Schema \
--connect='["dbi:SQLite:my.db", "", ""]' \
--deploy
then updating an existing record is giving:
update an existing record
dbicadmin --schema=MyApp::Schema --class=Employee \
--connect='["dbi:SQLite:my.db", "", ""]' \
--op=update --set='{ "name": "New_Employee" }'
π OPTIONS π
okay now the actual menu, bestie. it's split into actions and arguments, and we're doing all of them. π
π Actions π
--createβ creates version diffs, and it needspreversionβ like, don't forget that part. π--upgradeβ upgrade the database to the current schema. glow-up time. β¨--installβ install the schema version tables into an existing database. π οΈ--deployβ deploy the schema to the database. main character energy. π--selectβ select data from the schema. π--insertβ insert data into the schema. π--updateβ update data in the schema. π--deleteβ delete data from the schema. π--opβ this is the compatibility option, so all of the actions above can be supplied as--op=<action>. iykyk. π--helpβ display this help. literally the save button for your confusion. π
π¦ Arguments π¦
--config-fileor--configβ supply the config file for parsing byConfig::Any. π--connect-infoβ supply the connect info as trailing options, e.g.--connect-info dsn=<dsn> user=<user> password=<pass>. π--connectβ supply the connect info as a JSON-encoded structure, e.g. an--connect=["dsn","user","pass"]. πͺ--schema-classβ the class of the schema to load. ποΈ--config-stanzaβ where in the config to find theconnection_info; supply it in the formMyApp::Model::DB. ποΈ--resultsetor--resultset-classor--classβ the resultset to operate on for data manipulation. π―--sql-dirβ the directory where sql diffs will be created. π--sql-typeβ the RDBMs flavour you wish to use. π¦--versionβ supply a version install. π’--preversionβ the previous version to diff against. βͺ--setβ JSON data used to perform data operations. π§Ύ--attrsβ JSON string to be used for the second argument for search. π--whereβ JSON string to be used for the where clause of search. π--forceβ be forceful with some operations. πͺ--traceβ turn onDBIx::Classtrace output. π§Ά--quietβ be less verbose. π€«-Iβ same as perl's-I, prepended to current@INC. π§
π AUTHORS π
see "AUTHORS" in DBIx::Class β that's the whole mood. π
π LICENSE π
you may distribute this code under the same terms as Perl itself. slay. π«Ά
and that's the whole page, bestie β perl v5.42.0 Β· 2025-01-22 Β· DBICADMIN(1). go admin those schemata. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms