メモ
DBの設定はproject.xmlにXMLで記述するけど、記述できるものがよくわからなかった。
XMLなのでスキーマ定義?を参考にすればいいことに気づく。
http://media.rhaco.org/project.xsd
databaseタグ内のdefaultとかcolumnタグ内のchoicesとかはなかったけど、
機能追加で増えたのかなぁ?
括弧は省略可
<database name="" [class=""]> <table name="" [class=""]> <column name="" [var=""] [default=""] [label=""] [reference=""] [type="" ] [size="" //要確認] [max_digits=""] [decimal_places=""] [chartype=""] [min=""] [max=""] [require=""] [requirewith=""] [primary=""] [unique="" ] [uniquewith="" ] [dbtype=""] [seq=""] > <choices> <data></data> </choices> </column> <extra></extra> //columnと同じ <description></description> </table> <map name="" [class=""]> <column></column> //columnと同じ <extra></extra> //columnと同じ <description></description> </map> <ext name="" class=""> <column name="" [default=""]></column> <extra></extra> //columnと同じ <description></description> </ext> <description></description> <default> <class /> <name /> </default> </database> type指定なし name="id"=>serial それ以外 =>string typeで指定できるもの([]は省略形のため括弧なしと同じとみなす) string,[str] text,[textarea] email,[mail] tel zip integer,[int] float,[double] date timestamp time birthday,[bd] serial boolean,[bool],[flag] floatの指定方法 float(1,1) defaultに指定できるもの ※typeによる serial=>null integer,time=>null or 数値 float=>null or 数値(少数) boolean=>Variable::boolで許容されているもの timestamp,date=>sysdate or 文字列(DBで指定できる関数とか) 上記以外のTYPEの場合は文字列(DBで指定できる関数とか) size指定 size指定しない場合のデフォルト email=>255 integer,serial,time=>22 zip,birthday=>8 tel=>13