keboola / php-datatypes
PHP datatypes for databases
Installs: 103 260
Dependents: 6
Suggesters: 0
Security: 0
Stars: 1
Watchers: 17
Forks: 1
Open Issues: 4
Requires
- php: ^8.1
Requires (Dev)
- dev-main
- 7.9.0
- 7.8.0
- 7.7.0
- 7.6.0
- 7.5.0
- 7.4.0
- 7.3.1
- 7.2.0
- 7.1.0
- 7.0.1
- 7.0.0
- 6.4.0
- 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-jirka-ct-1424-drop-fractional-seconds
- dev-odin-KAB-312
- dev-PST-1473-ondra
- dev-CT-933-add-release-development-branch-tag-to-able-to-require-in-other-lib-in-process-of-programming
- dev-martinj-ct-1361-default-value-for-null-conversion-in-bq
- dev-martinj-db-import-export-terraform-fix
- dev-martinj-fix-phpstan
- dev-zajca-big-256
- dev-zajca-ct-1642
- dev-zajca-ct-950-ignore-columns
- dev-zajca-fix-distinct-on-nonnative-tables-2
- dev-zajca-fix-wrong-tests
- dev-zajca-ct-1301
- dev-jirka-ct-1271-add-alter-command
- dev-jirka-ct-1331-add-protobuf-for-table-info-in-preview
- dev-jirka-1271-new-command
- dev-CT-1169-put-column-definition-endpoint
- dev-erik-metadata-backend
- dev-BIG-208-create-table-definition-sql-injection
- dev-jirka-big-193-convert-load-exception
- dev-martin-GCP-445
- dev-zajca-tag.php
- dev-adamvyborny-CM-727-php-datatypes-oracle
- dev-CT-905-dont-run-build-if-create-tag-on-master-branch
- dev-backup-cache
- dev-big-160-update-common
- dev-jirka-big-167-too-many-requests-exception
- dev-martin-build-ecr
- dev-zajca-big-185
- dev-zajca-big-171
- dev-zajca-big-169
- dev-big-153-runtime-options
- dev-zajca-big-170
- dev-zajca-ct-1128-1
- dev-zajca-ct-1118-no-bc
- dev-BIG-126-external-buckets
- dev-BIG-126-external-buckets-2
- dev-big-153-roman-improve-type-hint
- dev-big-160
- dev-revert-84-zajca-ct-1118
- dev-zajca-BIG-155-ASCII
- dev-zajca-BIG-157
- dev-zajca-big-142
- dev-zajca-ct-1118
- dev-zajca-new-err-code
- dev-zajca-fix-zero-length
- dev-zajca-kbc-1003
- dev-CM-569-ondra
- dev-disable-td
- dev-jirka-ct-1084-add-table-type-bq-td
- dev-jirka-ct-910-external-tables
- dev-jirka-ct-924-re-enable-exasol-start-stop
- dev-zajca-CT-666-snflk-null
- dev-php81
- dev-CT-950-ignore_timestamp
- dev-CT-843-null-import
- dev-ct-835-fixx-export-null
- dev-ct-843-fix-numeric-value-is-empty-string
- dev-roman-add-release-phase
- dev-roman-finish-release
- dev-PST-631_SNFLK-add-missing-types
- dev-add-ie-lib-repo
- dev-test-build
- dev-CT-844
- dev-roman-testing-layers
- dev-roman-depending-build
- dev-add-ci-to-php-table-backend-utils
- dev-add-php-table-backend-utils
- dev-odbc-test
- dev-roman-add-ie-lib
- dev-roman-add-insturction-about-adopt-repo
- dev-roman-add-workflows-ie-lib
- dev-roman-adopt-ie-lib
- dev-roman-fix-deprecating-warnings-in-table-utils
- dev-roman-improve-docker
- 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: 2024-11-25 11:44:01 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.