keboola / php-datatypes
PHP datatypes for databases
Installs: 40 786
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 1
Open Issues: 4
Requires
- php: ^7.4|^8
Requires (Dev)
- dev-main
- 6.3.0
- 6.2.1
- 6.2.0
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.1.0
- 5.0.0
- 4.11.7
- 4.11.6
- 4.11.5
- 4.11.4
- 4.11.3
- 4.11.2
- 4.11.1
- 4.11.0
- 4.10.1
- 4.10.0
- 4.9.0
- 4.8.1
- 4.8.0
- 4.7.0
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.1
- 4.0.0
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.0.0
- 0.1.0
- 0.0.1
- dev-roman-improve-docker
- dev-add-ci-to-php-table-backend-utils
- dev-add-php-table-backend-utils
- dev-roman-split-php-table-backend-utils
- dev-add-bq-datatypes-more-types
- dev-mj-teradata-basetypes
- dev-mj-readme-add-tools
- dev-add-bq-datatypes
- dev-tf-refactor-actions-per-package
- dev-KBC-2942-add-php-table-backend-utils-to-the-monorepo
- dev-tf-test-package-split
- dev-master
- dev-jirka-exasol-fixes-after-integration-to-tabutils
- dev-erik-KBC-1572
- dev-KBC-641-add-metadata-constants
- dev-erik-KBC-491-synapse-datatype
- dev-zajca-synapse-fix
- dev-zajca-definition-interface
- dev-zajca-kbc-166-synapse
- dev-ondra-add-oracle-datatypes
- dev-piv-snflk-object-type
- dev-erik-test
- dev-default
- dev-mysql
This package is auto-updated.
Last update: 2023-01-26 15:07:57 UTC
README
Introduction
This library is used for datatype definitions, validation and sql statement generation. Each type (Mysql, Redshift, Snowflake, GenericStorage) also provides a base type mapping that can be used to map types between different storage providers.
Base Types
There are currently 7 base types: String
, Date
, Timestamp
, Integer
, Numeric
, Float
, and Boolean
.
Any type class that extends Keboola\Datatype\Definition\Common
should provide a mapping for it's types to the above set.
This will allow us to map data-types between storage providers.
Build
git clone https://github.com/keboola/php-datatypes
cd php-datatypes
docker-compose build
docker-compose run --rm dev composer install
Tests Execution
Run tests with following command.
docker-compose run --rm dev ./vendor/bin/phpunit
Coding Style
docker-compose run --rm dev ./vendor/bin/phpcs --standard=psr2 --ignore=vendor -n .
License
MIT licensed, see LICENSE file.