I just need to dump specific tables from my database such that these specific tables (3 tables to be exact out of 200 tables) will now be implemented by DBIx::Class::Schema
.
Here is the command from the docs (https://metacpan.org/pod/dbicdump):
dbicdump -o dump_directory=./lib -o components='["InflateColumn::DateTime"]' -o preserve_case=1 MyApp::Schema dbi:mysql:database=database_name user pass;
I tried appending the table name after the database_name but no luck, it still dumps all the tables in the specified database. Need help. I can't find anything in the docs.
Also Out of topic question :
What does these means? -o components='["InflateColumn::DateTime"]' -o preserve_case=1
I also cant find their explanation in the docs.
Thanks
-o <option>=<value>
." Following the provided link, you get "Normally database names are lowercased and split by underscore, use [-o preserve_case=1
] if you have CamelCase database names." As forInflateColumn::DateTime
, "Auto-create DateTime objects from date and datetime columns." – Noriega