GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBICADMIN (1)

.ds Aq ’

NAME

dbicadmin - utility for administrating DBIx::Class schemata

CONTENTS

SYNOPSIS

dbicadmin: [-I] [long options...]



  deploy a schema to a database
  dbicadmin --schema=MyApp::Schema \
    --connect=["dbi:SQLite:my.db", "", ""] \
    --deploy

  update an existing record
  dbicadmin --schema=MyApp::Schema --class=Employee \
    --connect=["dbi:SQLite:my.db", "", ""] \
    --op=update --set={ "name": "New_Employee" }



OPTIONS

    Actions

<B>--createB> Create version diffs needs preversion
<B>--upgradeB> Upgrade the database to the current schema
<B>--installB> Install the schema version tables to an existing database
<B>--deployB> Deploy the schema to the database
<B>--selectB> Select data from the schema
<B>--insertB> Insert data into the schema
<B>--updateB> Update data in the schema
<B>--deleteB> Delete data from the schema
<B>--opB> compatibility option all of the above can be supplied as --op=<action>
<B>--helpB> display this help

    Arguments

<B>--config-fileB> or <B>--configB> Supply the config file for parsing by Config::Any
<B>--connect-infoB> Supply the connect info as trailing options e.g. --connect-info dsn=<dsn> user=<user> password=<pass>
<B>--connectB> Supply the connect info as a JSON-encoded structure, e.g. an --connect=[dsn,user,pass]
<B>--schema-classB> The class of the schema to load
<B>--config-stanzaB> Where in the config to find the connection_info, supply in form MyApp::Model::DB
<B>--resultsetB> or <B>--resultset-classB> or <B>--classB> The resultset to operate on for data manipulation
<B>--sql-dirB> The directory where sql diffs will be created
<B>--sql-typeB> The RDBMs flavour you wish to use
<B>--versionB> Supply a version install
<B>--preversionB> The previous version to diff against
<B>--setB> JSON data used to perform data operations
<B>--attrsB> JSON string to be used for the second argument for search
<B>--whereB> JSON string to be used for the where clause of search
<B>--forceB> Be forceful with some operations
<B>--traceB> Turn on DBIx::Class trace output
<B>--quietB> Be less verbose
<B>-IB> Same as perl’s -I, prepended to current @INC

AUTHORS

See AUTHORS in DBIx::Class

LICENSE

You may distribute this code under the same terms as Perl itself
Search for    or go to Top of page |  Section 1 |  Main Index


perl v5.20.3 DBICADMIN (1) 2016-02-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.