shiyan/lite-sql-insert
Composer 安装命令:
composer require shiyan/lite-sql-insert
包简介
Lightweight SQL insertion service.
README 文档
README
Very lightweight PHP service class for SQL INSERT queries abstraction.
Best suited for use as a Composer library.
Requirements
- PHP >= 7.1
- PDO extension
Installation
To add this library to your Composer project:
composer require shiyan/lite-sql-insert
Usage
$connection = new \Shiyan\LiteSqlInsert\Connection($pdo);
$insert = $connection->insert('my_table', ['name', 'value']);
foreach ($my_data as $name => $value) {
$insert->values(['name' => $name, 'value' => $value]);
}
$insert->commit();
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-23