From b31ccded6f26b5d46f21cb2fb81aaeea321d7a07 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Mon, 18 Nov 2013 10:09:21 +0100 Subject: [PATCH] Implement per-column MySQL CAST rules. --- README.md | 4 ---- pgloader.1.md | 9 ++++++++- src/parser.lisp | 31 ++++++++++++++++++++++--------- src/sources/mysql-cast-rules.lisp | 13 ++++++++++--- test/parse/hans.goeuro.load | 2 +- 5 files changed, 41 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 233fc5c..ff6650f 100644 --- a/README.md +++ b/README.md @@ -136,10 +136,6 @@ Some notes about what I intend to be working on next. - error reporting (done) - add input line number to log file? -### transformation and casts - - - add per-column support for cast rules in the system - ### data output - PostgreSQL COPY Text format output for any supported input diff --git a/pgloader.1.md b/pgloader.1.md index d0f03b8..42ad612 100644 --- a/pgloader.1.md +++ b/pgloader.1.md @@ -860,9 +860,16 @@ The `database` command accepts the following clauses and options: The cast clause allows to specify custom casting rules, either to overload the default casting rules or to amend them with special cases. - A casting rule is expected to follow the form: + A casting rule is expected to follow one of the forms: type [ ... ] to [