Giter Site home page Giter Site logo

mig's Introduction

Mig

本ソフトウェアMigはmgファイルからLaravelやRailsのマイグレーションファイルを生成するソフトウェアです。

mgファイルの使用は次のようになります。ただし各<>と<>の間の区切りはスペースを表すこととします。_は半角スペース。

<mg_file> = <command> <table_name> { <table_body> }
<command> = :create
<table_name> = <ascii_string>
<ascii_string> = <ascii_char>+
<ascii_chars> = [a-zA-Z]
<space> = (\t | _)*
<space_newline> = (<space> | \n)+
<table_body> = { ((<table_opt> | <column_opt>) <space_newline>)* }
<table_opt> = <opt_name> ({ (<opt> | <column_name>)+ })?
<column_opt> = <column_name> { <opt>+ }
<column_name> = <ascii_string>
<opt> = <opt_name> (<opt_val> <space>)* <space_newline>
<opt_name> = :<ascii_string>
<opt_val> = <String> | <Integer> | <Double> | <Y-m-d> | <Time> | <Date_Time>
<String> = " .* "
<Sign> = + | -
<Integer> = <Sign>?(0 | [1-9][0-9]*)
<Double> = <Sign>?(0.[0-9]* |[1-9][0-9]*.[0-9]*)
<Y-m-d'>= (0 | [1-9][0-9]*)-[1-12]-[1-31]
<Y-m-d> ="<Y-m-d'>"
<Time> = [0-23]:[0-59]:[0-59]
<Time> = "<Time'>"
<Date_Time> = "<Y-m-d'>_<Time'>"

使い方

最低限指定した場合のコマンドは次の通りです。

mig.exe -I <input-file> -O <output-file> --target <target-FW>

mig's People

Contributors

ogata-k avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.