keboola/db-writer-adapter
最新稳定版本:0.1.0
Composer 安装命令:
composer require keboola/db-writer-adapter
包简介
MyComponent description
README 文档
README
This library contains a common interface for connecting to database and writing data to, various sources:
- It is intended for use with db-writer-common.
- It supports PDO and ODBC connections for now.
- The interfaces defined in this library can be easily used to support other methods, e.g. cli BCP tool.
Main Classes
- Interface
Connectionis an abstraction that represents a connection to the database.- Abstract class
BaseConnectioncontains common code and retry mechanisms. - Class
PdoConnectionimplements connection using PDO extension. - Class
OdbcConnectionimplements connection using ODBC extension.
- Abstract class
- Interface
WriteAdapteris an abstraction which defines how the data is written.- Abstract class
BaseWriteAdaptercontains common code. - Class
PdoWriteAdapterimplements write for PDO connection. - Class
OdbcWriteAdapterimplements write for ODBC connection.
- Abstract class
- Interface
QueryBuilderused to generate SQL query for adapter.- Class
DefaultQueryFactoryis base implementation for MySQL/MariaDb compatible SQL dialects.
- Class
Development
Clone this repository and init the workspace with following command:
git clone https://github.com/keboola/db-writer-adapter
cd db-writer-adapter
docker-compose build
docker-compose run --rm dev composer install --no-scripts
Run the test suite using this command:
docker-compose run --rm dev composer tests
License
MIT licensed, see LICENSE file.
统计信息
- 总下载量: 598
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-23