All notable changes to the "ddlparse" module will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.10.0 - 2021-07-10
- Added supports for Python 3.9
- Fixed parsing of columns with NULL/NOT NULL constraint.
1.9.0 - 2020-11-04
-
Add supports Cloud Spanner data-type.
STRING
BYTES
-
Add supports MySQL data-type.
BINARY
VARBINARY
-
Add supports PostgreSQL data-type.
BYTEA
1.8.0 - 2020-08-22
- Add
DdlParseColumn.character_set
property. - Add supports for parsing MySQL FOREIGN KEY options MATCH, ON DELETE and ON UPDATE
1.7.0 - 2020-08-13
- Add
DdlParseColumn.default
property. - Add
DdlParseColumn.auto_increment
property. - Add
DdlParseColumn.encode
property. - Add
DdlParseColumn.distkey
property. - Add
DdlParseColumn.sortkey
property.
- Fix parse of column name with space character.
1.6.1 - 2020-08-08
- Fix parse Redshift
ENCODE
attribute.
1.6.0 - 2020-07-18
- Add property.
DdlParseColumn.is_unsigned
DdlParseColumn.is_zerofill
- Add supports for numeric type attributes of MySQL.
UNSIGNED
ZEROFILL
- Add supports MySQL data-type.
TINYINT
SMALLINT
MEDIUMINT
DEC
FIXED
- Minor fix.
1.5.0 - 2020-07-06
- Add supports for Python 3.8
- End of support for Python 3.4
- Fix parse for column-constraint.
- Minor fix.
1.4.0 - 2019-12-08
- Add supports to BigQuery
NUMERIC
data type.
BigQuery Data Type | Source Data Type | Precision | Scale | Database | Exapmle Source Data Type |
---|---|---|---|---|---|
INT64 | (NUMERIC|NUMBER|DECIMAL) | < 19 | = 0 | - | NUMERIC(18) |
FLOAT64 | (NUMERIC|NUMBER|DECIMAL) | < 19 | > 0 | - | NUMERIC(18, 1) |
NUMERIC | (NUMERIC|NUMBER|DECIMAL) | >= 19 | - | - | NUMERIC(19) |
NUMERIC | (NUMERIC|NUMBER|DECIMAL) | * | - | - | NUMBER(*, 0) |
INT64 | (NUMERIC|NUMBER|DECIMAL) | None | - | default | DECIMAL |
NUMERIC | (NUMERIC|NUMBER|DECIMAL) | None | - | DdlParse.DATABASE.oracle DdlParse.DATABASE.postgresql |
NUMBER NUMERIC |
- Fix parsing failure for include
(*)
format of OracleNUMBER
data type.
1.3.1 - 2019-12-05
- Fixed parsing failure for columns include dot at default values.
1.3.0 - 2019-06-15
- Add supports the parse of
COMMENT
statements. - Add
DdlParseColumn.comment
property. - Add
DdlParseColumn.description
property for theDdlParseColumn.comment
property alias. - Add supports column comments in BigQuery DDL.
1.2.3 - 2019-02-17
- Fix parse error for MySQL DDL with 'FOREIGN KEY'.
- Fix not completely parsed with block comments.
1.2.2 - 2019-02-02
- Add supports PostgreSQL data type.
UUID
- Fix FutureWarning of Python 3.7.
- Fix parse
DEFAULT
value.- Add parse regex of
DEFAULT
value.
- Add parse regex of
1.2.1 - 2019-01-27
- Add supports for Python 3.7.
- Pass Python 3.7 test.
- Add supports PostgreSQL data type.
CHARACTER VARYING
JSON
- Array type
- Fix parse
DEFAULT
value.- Add decimal point to
DEFAULT
parse character.
- Add decimal point to
1.2.0 - 2019-01-02
- Add
DdlParseTable.to_bigquery_ddl
function.- BigQuery DDL (CREATE TABLE) statement generate function.
- Add
DdlParseColumn.bigquery_legacy_data_type
property.- Get BigQuery Legacy SQL data property.
- Alias of
DdlParseColumn.bigquery_data_type
property.
- Add
DdlParseColumn.bigquery_standard_data_type
property.- Get BigQuery Standard SQL data property.
1.1.3 - 2018-08-02
- Add support inline comment.
- Add support constraint name with quotes.
- Add support Oracle Length Semantics for Character Datatypes.
1.1.2 - 2018-03-25
- Add support Oracle data type.
CLOB
,NCLOB
NUMBER
with no length & scale specification
- Minor fix.
1.1.1 - 2018-03-25
- Fix Postgres/Redshift parse of "::" syntax in field attribute.
1.1.0 - 2018-01-14
- Add
source_database
option. - Add
to_bigquery_fields
method to Columns dicttionary(DdlParseColumnDict
class).
- Fix BigQuery convert of Oracle data type.
- Oracle 'DATE' -> BigQuery 'DATETIME'
- Oracle 'NUMBER' -> BigQuery 'INTEGER' or 'FLOAT'
1.0.2 - 2018-01-09
- Minor enhancement.
ddlparse.py
: Exclude unused module.example.py
: Modified comment.README.md
: Minor fix.
1.0.1 - 2018-01-07
- Minor enhancement.
- Initial released.