rafaelssucupira / fluent-sql
此包的最新版本(v1.0.0)没有可用的许可信息。
用于管理连接和与MySQL数据库操作的自定义API
v1.0.0
2024-08-29 20:59 UTC
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-09-29 21:18:27 UTC
README
使用FluentAPI设计模式来管理连接和与MySQL数据库操作的API
安装
composer require rafaelssucupira/fluent-sql
示例
<?php
require_once ("vendor/autoload.php");
use FluentSQL\SQL;
$conn = new SQL( "localhost", "db", "user", "passwd" );
$result = $conn
->prepareQuery( "SELECT * FROM users" )
->sqlCommand()
->execQuery()
->build(true);
echo json_encode($result) ;
?>