meandor/stirling-mysql
Composer 安装命令:
composer require meandor/stirling-mysql
包简介
A MySQL wrapper for the sterling-microservice
README 文档
README
A MySQL Database wrapper for the stirling-microservice
This library uses mysqli for database access. Please make sure you have mysqli enabled and ready to work on your server.
Usage
This library only works in conjunction with the stirling-microservice.
If you don't specify a config json (default.json) for your Config class with the following lines
{
"dbHost": "<ip address>",
"dbUser": "<my username>",
"dbPassword": "<my password>",
"dbName": "<my database name>",
"dbPort": <port>
}
a default config will be used to try to establish a database connection.
The default is:
{
"dbHost": "127.0.0.1",
"dbUser": "root",
"dbPassword": "",
"dbName": "database",
"dbPort": 3306
}
统计信息
- 总下载量: 141
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-27