예제 #1
0
파일: postgresql.php 프로젝트: taq/torm
<?php

namespace TORM;

Driver::$name = "postgresql";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_SEQUENCE;
Driver::$limit_behaviour = Driver::LIMIT_APPEND;
Driver::$current_timestamp = "now()";
Driver::$numeric_column = "numeric";
예제 #2
0
파일: oracle.php 프로젝트: taq/torm
<?php

namespace TORM;

Driver::$name = "oracle";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_SEQUENCE;
Driver::$limit_behaviour = Driver::LIMIT_AROUND;
Driver::$limit_query = "select * from (%query%) where rownum<=%limit%";
Driver::$pagination_query = "select * from (select a.*, rownum as rnum from (%query%) a where rownum <= %to%) where rnum >= %from%";
Driver::$pagination_subquery = true;
Driver::$numeric_column = "number";
Driver::$current_timestamp = "sysdate";
Driver::$escape_char = "";
Driver::$last_id_supported = false;
예제 #3
0
파일: sqlite.php 프로젝트: taq/torm
<?php

namespace TORM;

Driver::$name = "sqlite";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_DELETE;
Driver::$limit_behaviour = Driver::LIMIT_APPEND;
예제 #4
0
파일: mysql.php 프로젝트: taq/torm
<?php

namespace TORM;

Driver::$name = "mysql";
Driver::$primary_key_behaviour = Driver::PRIMARY_KEY_DELETE;
Driver::$limit_behaviour = Driver::LIMIT_APPEND;
Driver::$escape_char = "`";
Driver::$current_timestamp = "now()";