work_tree => Str (Required)
Git working tree path includes target ddl file.
ddl_file => Str (Required)
ddl file (.sql file) path in repository.
If ddl file located at /repos/project/sql/schema.sql and work_tree root is /repos/project, then this option should be sql/schema.sql
dsn => ArrayRef (Required)
DSN parameter that pass to DBI module.
version_table => Str (optional)
database table name that contains its git commit version. (default: git_ddl_version)
sql_filter => CodeRef (optional)
CodeRef for filtering sql content. It is invoked only in diff() method. (default: do nothing)
Otherwise return false, which means database is not latest. To upgrade database to latest, see upgrade_database method described below.
Return git commit hash indicates databases schema.
Return git commit hash indicates ddl file.
Just deploy ddl_file schema to database. This method is designed for initial database setup.
But database should be created previously.
Show sql differences between ddl file and database.
This method is useful for dry-run checking before upgrade_database.
Upgrade database schema to latest ddl schema.
Daisuke Murase <firstname.lastname@example.org>
Copyright (c) 2012 Daisuke Murase. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
|perl v5.20.3||GITDDL (3)||2013-10-30|