Download the PHP package keboola/db-extractor-adapter without Composer
On this page you can find all versions of the php package keboola/db-extractor-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download keboola/db-extractor-adapter
More information about keboola/db-extractor-adapter
Files in keboola/db-extractor-adapter
Download keboola/db-extractor-adapter
More information about keboola/db-extractor-adapter
Files in keboola/db-extractor-adapter
Vendor keboola
Package db-extractor-adapter
Short Description Set of connection adapters for DB extractors.
License MIT
Package db-extractor-adapter
Short Description Set of connection adapters for DB extractors.
License MIT
Please rate this library. Is it a good library?
Informations about the package db-extractor-adapter
DB extractor adapter
This library contains a common interface for connecting to and data extracting from, various sources:
- It is intended for use with db-extractor-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
DbConnectionis an abstraction that represents a connection to the database.- Abstract class
BaseDbConnectioncontains common code and retry mechanisms. - Class
PdoDbConnectionimplements connection using PDO extension. - Class
OdbcDbConnectionimplements connection using ODBC extension.
- Abstract class
- Interface
QueryResultis an abstraction that represents query result - rows returned from database.- Class
PdoQueryResultrepresents result from PDO connection. - Class
OdbcQueryResultrepresents result from ODBC connection.
- Class
- Interface
ExportAdapteris an abstraction which defines how the data is to be extracted.- Based on
ExportConfig,ExportResultis generated. The rows are written to the specified CSV file. - By implementing this interface, it is possible to add support for CLI tools for export.
- Abstract class
BaseExportAdaptercontains common code. - Class
PdoExportAdapterimplements export for PDO connection. - Class
OdbcExportAdapterimplements export for ODBC connection. - Class
FallbackExportAdapterallows you to use multiple adapters. If one fails, then fallback adapter is used.
- Based on
- Interface
QueryFactoryused to generate SQL query fromExportConfig. It is used if query is not set in the config.- Class
DefaultQueryFactoryis base implementation for MySQL/MariaDb compatible SQL dialects.
- Class
- Class
QueryResultCsvWriterused to write rows from theQueryResultto the specified CSV file.
Development
Clone this repository and init the workspace with following command:
Run the test suite using this command:
License
MIT licensed, see LICENSE file.
All versions of db-extractor-adapter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-iconv Version *
keboola/common-exceptions Version ^1.0
keboola/csv Version ^3.2
keboola/db-extractor-config Version ^1.15
keboola/db-extractor-table-format Version ^3.7
keboola/retry Version ^0.5
keboola/ssh-tunnel Version ^2.2
psr/log Version ^1.1
ext-iconv Version *
keboola/common-exceptions Version ^1.0
keboola/csv Version ^3.2
keboola/db-extractor-config Version ^1.15
keboola/db-extractor-table-format Version ^3.7
keboola/retry Version ^0.5
keboola/ssh-tunnel Version ^2.2
psr/log Version ^1.1
The package keboola/db-extractor-adapter contains the following files
Loading the files please wait ...