文件名称:Database
文件大小:10KB
文件格式:ZIP
更新时间:2024-04-20 22:45:30
PHP
PDO包装器 需要PHP 8.0才能运行 例子 use Tivins \ Database \ Database ; use Tivins \ Database \ Connectors \ MySQLConnector ; $ db = new Database ( new MySQLConnector ( 'dbname' , 'user' , 'password' , 'localhost' )); $ users = $ db -> select ( 'posts' , 'p' ) -> leftJoin ( 'users' , 'u' , 'p.author_id = u.id' ) -> fields ( 'p' ) -> addField ( 'u' , 'name' , 'author_name' ) -> execute () ->
【文件预览】:
Database-master
----composer.json(276B)
----LICENSE(1KB)
----src()
--------UpdateQuery.php(864B)
--------functions.php(146B)
--------InsertQuery.php(552B)
--------Statement.php(665B)
--------DBObject.php(2KB)
--------Query.php(448B)
--------Conditions.php(2KB)
--------Database.php(3KB)
--------DeleteQuery.php(435B)
--------MergeQuery.php(912B)
--------Connectors()
--------SelectQuery.php(3KB)
----README.md(3KB)