diff options
author | Arun Isaac | 2021-12-20 16:24:54 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-20 16:24:54 +0530 |
commit | f6109d54a74de1094f5334c63d44f7c90ff501b4 (patch) | |
tree | bd2b108c7326de36e06f24ec3bd1e6ec09b451e1 /dump.scm | |
parent | 4149f907ead360d417236768c9c0fdb2692babeb (diff) | |
download | gn-transform-databases-f6109d54a74de1094f5334c63d44f7c90ff501b4.tar.gz |
Capture full column type.
Capture full column type instead of just whether it is an integer.
* dump.scm (dump-data-table): Capture full column type in <column>
object.
* dump/table.scm (<column>)[int?]: Delete member.
[type]: New member.
Export column-type instead of column-int?.
Diffstat (limited to 'dump.scm')
-rwxr-xr-x | dump.scm | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -510,8 +510,7 @@ is a <table> object." (set-table-columns table (sql-map (lambda (row) (make-column (assoc-ref row "Field") - (or (string-prefix? "int" (assoc-ref row "Type")) - (string-prefix? "smallint" (assoc-ref row "Type"))))) + (assoc-ref row "Type"))) db (format #f "SHOW COLUMNS FROM ~a" (table-name table))))) (sql-map (lambda (row) |