1DBICADMIN(1) User Contributed Perl Documentation DBICADMIN(1)
2
3
4
6 dbicadmin - utility for administrating DBIx::Class schemata
7
9 dbicadmin: [long options...]
10
11 deploy a schema to a database
12 dbicadmin --schema=MyApp::Schema \
13 --connect='["dbi:SQLite:my.db", "", ""]' \
14 --deploy
15
16 update an existing record
17 dbicadmin --schema=MyApp::Schema --class=Employee \
18 --connect='["dbi:SQLite:my.db", "", ""]' \
19 --op=update --set='{ "name": "New_Employee" }'
20
22 Actions
23 --create
24 Create version diffs needs preversion
25
26 --upgrade
27 Upgrade the database to the current schema
28
29 --install
30 Install the schema version tables to an existing database
31
32 --deploy
33 Deploy the schema to the database
34
35 --select
36 Select data from the schema
37
38 --insert
39 Insert data into the schema
40
41 --update
42 Update data in the schema
43
44 --delete
45 Delete data from the schema
46
47 --op
48 compatiblity option all of the above can be suppied as
49 --op=<action>
50
51 --help
52 display this help
53
54 --selfinject-pod
55 hidden
56
57 Arguments
58 --schema-class
59 The class of the schema to load
60
61 --resultset or --resultset-class or --class
62 The resultset to operate on for data manipulation
63
64 --config-stanza
65 Where in the config to find the connection_info, supply in form
66 MyApp::Model::DB
67
68 --config
69 Supply the config file for parsing by Config::Any
70
71 --connect-info
72 Supply the connect info as additonal options ie -I dsn=<dsn>
73 user=<user> password=<pass>
74
75 --connect
76 Supply the connect info as a json string
77
78 --sql-dir
79 The directory where sql diffs will be created
80
81 --sql-type
82 The RDBMs flavour you wish to use
83
84 --version
85 Supply a version install
86
87 --preversion
88 The previous version to diff against
89
90 --set
91 JSON data used to perform data operations
92
93 --attrs
94 JSON string to be used for the second argument for search
95
96 --where
97 JSON string to be used for the where clause of search
98
99 --force
100 Be forceful with some operations
101
102 --trace
103 Turn on DBIx::Class trace output
104
105 --quiet
106 Be less verbose
107
109 See "CONTRIBUTORS" in DBIx::Class
110
112 You may distribute this code under the same terms as Perl itself
113
114
115
116perl v5.12.0 2010-05-12 DBICADMIN(1)