DBICADMIN(1)

πŸ“¦
version 0.082844 Β· 5 versions
, in opensuse-leap 16.0

πŸ’– 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 needs preversion β€” 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-file or --config β€” supply the config file for parsing by Config::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 the connection_info; supply it in the form MyApp::Model::DB. πŸ—‚οΈ
  • --resultset or --resultset-class or --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 on DBIx::Class trace 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