Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ruby interface for sqldef

License

NotificationsYou must be signed in to change notification settings

sqldef/sqldef-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby interface to callsqldef.

Installation

gem'sqldef'

Usage

Download

You can downloadmysqldef,psqldef, orsqlite3def.

Sqldef.bin='./bin'Sqldef.download(:psqldef)

download is automatically executed by the following methods too.

Export

You can export the database schema to a file.

Sqldef.export(command::psqldef,host:host,port:port,user:user,password:password,database:database,path:'db/schema.sql',)

Dry Run

You can show DDLs to be executed.

Sqldef.dry_run(command::psqldef,host:host,port:port,user:user,password:password,database:database,path:'db/schema.sql',)

Apply

You can run DDLs to match the schema.

Sqldef.apply(command::psqldef,host:host,port:port,user:user,password:password,database:database,path:'db/schema.sql',)

License

The gem is available as open source under the terms of theMIT License.

About

Ruby interface for sqldef

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp