php-sql-query:PHPSQL查询

时间:2021-05-16 11:14:32
【文件属性】:
文件名称:php-sql-query:PHPSQL查询
文件大小:49KB
文件格式:ZIP
更新时间:2021-05-16 11:14:32
PHP SQL查询抽象层 php-sql-query软件包旨在为SQL查询构建提供一致的抽象层。 它分为两个部分: 抽象查询组件(列,表,限制,组) 渲染器(MySQL,PgSql,Sql Server) 创建选择非常简单: $ select = new \ RBM \ SqlQuery \ Select (); $ select -> setTable ( "project" ); $ select -> setColumns ([ "project_id" , "name" ]); $ select -> limit ( 0 , 10 ); 要根据使用的数据库系统输出正确的查询,您必须实例化渲染器,并调用其render方法: $ renderer = new \ RBM \ SqlQuery \ RendererAdapter \ MySql (); echo $ render
【文件预览】:
php-sql-query-master
----.gitignore(12B)
----LICENCE(1KB)
----composer.json(693B)
----composer.lock(16KB)
----examples()
--------extending.php(4KB)
--------bootstrap.php(287B)
--------select.php(1KB)
----README.md(4KB)
----tests()
--------having.php(599B)
--------bootstrap.php(1KB)
--------ColumnTest.php(2KB)
--------selectAsColumn.php(271B)
--------factory.php(582B)
--------TableTest.php(3KB)
--------SelectTest.php(6KB)
--------OrderByTest.php(2KB)
--------FilterTest.php(6KB)
----lib()
--------RBM()

网友评论