Commit Graph

190 Commits

Author SHA1 Message Date
Dimitri Fontaine
e374b51b41 Simplify code generation for before/after/finally sql blocks. 2013-10-11 12:07:38 +02:00
Dimitri Fontaine
38d5ad6829 Fix compilation warnings when not using before/after load constructs. 2013-10-11 11:56:12 +02:00
Dimitri Fontaine
1cf15b0f6f Add a NULL test case and fix some areas of the code to make it pass. 2013-10-11 11:20:35 +02:00
Dimitri Fontaine
3221ce6cc3 Add support for loading INLINE data in CSV commands. 2013-10-11 01:00:52 +02:00
Dimitri Fontaine
f22eeec123 Allow LOAD CSV command to accept BEFORE LOAD DO and AFTER LOAD DO sections. 2013-10-10 23:37:49 +02:00
Dimitri Fontaine
0397a20fb3 Add a --quiet option to the command line processing. 2013-10-10 20:59:28 +02:00
Dimitri Fontaine
5338854de1 Try not to setval() a sequence to 0, clamp the value to 1. 2013-10-09 11:24:52 +02:00
Dimitri Fontaine
dc55962389 Fix the #! script to have the same behaviour as the main binary executable. 2013-10-09 10:44:38 +02:00
Dimitri Fontaine
62c402b0e5 Improve the main command line facility to match the documentation. 2013-10-09 00:20:47 +02:00
Dimitri Fontaine
a8eb5beb73 New Documentation, intended to be delivered as a man page. 2013-10-09 00:20:24 +02:00
Dimitri Fontaine
cbc7b602d6 The with-pgsql-transaction macro should take care of *pg-settings*. 2013-10-09 00:19:52 +02:00
Dimitri Fontaine
91359060c3 Convert MySQL smallint and tinyint to PostgreSQL smallint. 2013-10-09 00:19:26 +02:00
Dimitri Fontaine
ceb839ba9d Fix the command line ordering when using a Manifest file for building the standalone binary. 2013-10-08 22:43:37 +02:00
Dimitri Fontaine
65035b1bc6 Allow for loading CSV files not using any field quoting. 2013-10-08 22:16:52 +02:00
Dimitri Fontaine
bab53d1cd0 Improve testing, load commands from files. 2013-10-08 21:48:43 +02:00
Dimitri Fontaine
0e79aca3bc Fix the processing of bad rows, needs a Postmodern fix too.
See https://github.com/marijnh/Postmodern/issues/39 for details.
2013-10-06 23:09:27 +02:00
Dimitri Fontaine
5a235de5c5 Add support for MySQL point datatype, where we need using astext(col). 2013-10-06 21:01:11 +02:00
Dimitri Fontaine
922aa22d64 Implement a MySQL list-views function to prepare for VIEWS support. 2013-10-06 18:44:46 +02:00
Dimitri Fontaine
446df213bd Filter out VIEWS from the current MySQL migration processing. 2013-10-06 18:09:49 +02:00
Dimitri Fontaine
236c9ffdf5 Fix the PostgreSQL Reset Sequences code. 2013-10-06 12:04:37 +02:00
Dimitri Fontaine
314ee9611a Fix MySQL default cast rules to include bigint auto_increment to bigserial. 2013-10-06 12:04:23 +02:00
Dimitri Fontaine
fe68fba3d3 Assorted MySQL migration bugfixes (reset sequence formating, etc). 2013-10-05 22:38:09 +02:00
Dimitri Fontaine
09a49f4771 MySQL also has a "timestamp" datatype, register default casts and handle the default value CURRENT_TIMESTAMP properly: without quoting. 2013-10-05 21:29:26 +02:00
Dimitri Fontaine
57725a72d1 Fix quoting of the table name in MySQL migration for a single table. 2013-10-05 21:05:20 +02:00
Dimitri Fontaine
0769e145b4 Inline functions used within per-row loops. 2013-10-05 18:22:47 +02:00
Dimitri Fontaine
ef6eb2bd3c Allow filtering the MySQL migration to a single table from the command language. 2013-10-05 18:02:42 +02:00
Dimitri Fontaine
c01b693f21 Force MySQL identifiers that are PostgreSQL reserved keywords to be quoted. 2013-10-05 17:02:57 +02:00
Dimitri Fontaine
c35468d437 Remove hard-coded value that somehow did find a way in, thanks to Hans Hbner. 2013-10-05 15:39:15 +02:00
Dimitri Fontaine
40e9c438fa Handle CL-POSTGRES::PROTOCOL-ERROR for batch retry. 2013-10-04 17:18:13 +02:00
Dimitri Fontaine
165f74b197 Add some test files. 2013-10-04 17:12:50 +02:00
Dimitri Fontaine
b12d71cfe0 Add a facility to better play with connection strings: with-database-uri. 2013-10-03 21:28:44 +02:00
Dimitri Fontaine
fc8c0556dd Don't make an index specific kernel when we don't have indexes to migrate at all 2013-10-03 21:09:45 +02:00
Dimitri Fontaine
005b33d99f Export more practical stuff in the main package, and make run-command smarter. 2013-10-03 21:00:16 +02:00
Dimitri Fontaine
b4c9ca0571 Fix a stupid loop initialisation variable (what should've been). 2013-10-03 19:01:48 +02:00
Dimitri Fontaine
79d9b3f0e3 Document how to build a self-contained binary image, and tweak main.lisp for that. 2013-10-03 18:21:48 +02:00
Dimitri Fontaine
001b33343d Add forgotten main.lisp file. 2013-10-03 18:12:30 +02:00
Dimitri Fontaine
2bf7c4df12 Assorted clean up to prepare a binary image. 2013-10-03 17:42:09 +02:00
Dimitri Fontaine
ab5613925b Implement a faster integer to ip code and inline it for real this time. 2013-10-01 23:52:19 +02:00
Dimitri Fontaine
2528d8ac21 Direct tests to use the ip4r database. 2013-10-01 23:51:49 +02:00
Dimitri Fontaine
e0cb525810 MySQL migration: Use table OIDs rather than table name for disambiguating index names. 2013-10-01 09:30:17 +02:00
Dimitri Fontaine
c7a28aa859 Add a default cast rule from "year" to "integer". 2013-10-01 09:29:42 +02:00
Dimitri Fontaine
94edae3662 Fix the previous commit... 2013-10-01 00:24:17 +02:00
Dimitri Fontaine
e175e7782a Fix mysql stream-table to be usable directly. 2013-10-01 00:15:29 +02:00
Dimitri Fontaine
ea5a373ad9 Fix loading examples to avoid loading with the index already there. 2013-10-01 00:11:54 +02:00
Dimitri Fontaine
6b3e5d6338 Some tries at optimisations. 2013-10-01 00:11:26 +02:00
Dimitri Fontaine
1fd0fb68f2 Get rid of the global null-as processing, which means nothing. 2013-10-01 00:11:13 +02:00
Dimitri Fontaine
2ddaba4284 Fix MySQL schema casting WRT identifers.
In MySQL schema cast, take care to downcase or quote the colum names
references in the index definitions, and replace non alphanumeric characters
with #\_ when downcasing.
2013-09-30 22:09:07 +02:00
Dimitri Fontaine
ccc153b9e1 Don't report a separation line when there's no finally section to separate... 2013-09-30 19:54:26 +02:00
Dimitri Fontaine
64589134c8 Temporary hack for debugging, error wasn't there anyway. 2013-09-30 19:48:42 +02:00
Dimitri Fontaine
d3991690cf Fix handling of CSV loading when not given fields nor columns lists. 2013-09-30 19:48:21 +02:00