示例#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;