Dimitri Fontaine
3ddcc959ac
Improve tests and add test cases.
2013-11-26 16:48:45 +01:00
Dimitri Fontaine
2019b918f0
Implement support for matching several files in a single archive clause.
2013-11-26 16:47:37 +01:00
Dimitri Fontaine
98a7eb12a5
Error out when asked to load a non-existing file.
2013-11-26 11:56:34 +01:00
Dimitri Fontaine
de1afc7416
Fix CSV and FIXED parsing to run the BEFORE section before doing PostgreSQL introspection.
2013-11-26 11:51:42 +01:00
Dimitri Fontaine
32d91d7054
Return a non-zero error code to the OS when something unexpected did happen.
2013-11-25 11:25:57 +01:00
Dimitri Fontaine
e4b50d2315
An archive always need a before state to be able to report about its extract step.
2013-11-24 17:09:56 +01:00
Dimitri Fontaine
451861cfd5
Don't query PostgreSQL for the OIDs of an empty list of tables.
2013-11-24 16:43:59 +01:00
Dimitri Fontaine
81f5f95e1d
Get rid of the local Postmodern patch, use a bare local git clone.
...
Issue https://github.com/marijnh/Postmodern/issues/39 is now fixed!
After next Quicklisp release, we should be able to remove the whole special
treatment of Postmodern in pgloader.
2013-11-23 23:06:52 +01:00
Dimitri Fontaine
ea4e74e545
Improve parsing of list separating commas wrt to whitespacing.
2013-11-23 21:49:08 +01:00
Dimitri Fontaine
c482015248
Arrange to error out when given non-existing file names in the command line.
2013-11-23 21:36:22 +01:00
Dimitri Fontaine
4bc4cc53a7
Add support for connecting to PostgreSQL with Unix Domain Sockets, fixing #15 .
2013-11-22 17:19:48 +01:00
Dimitri Fontaine
fdfcb8dde9
Fix the byte-vector-to-bytea transform function (handle nil, better type declaration).
2013-11-22 17:18:09 +01:00
Dimitri Fontaine
2a344ab7ce
Add a usage line in the --help output.
2013-11-22 11:23:15 +01:00
Dimitri Fontaine
78b42cc4ae
Properly handle blob formats, converting then to PostgreSQL bytea input.
2013-11-22 11:01:20 +01:00
Dimitri Fontaine
74cabeb6f5
Change MySQL list-tables function not to include views.
2013-11-22 10:55:38 +01:00
Dimitri Fontaine
6a6684bd8b
Desultory improve the SQLite importer.
2013-11-21 21:34:02 +01:00
Dimitri Fontaine
1419a1f65d
Default --logfile to pgloader.log within --root-dir.
2013-11-21 14:28:11 +01:00
Dimitri Fontaine
516bb28ec0
Fix using TMPDIR from the environment when running from the binary image.
2013-11-21 13:06:16 +01:00
Dimitri Fontaine
d70ed07b12
If --lofgile is relative, expand it into --root-dir.
2013-11-21 12:56:54 +01:00
Dimitri Fontaine
febbc03459
Review some log messages and levels.
2013-11-21 11:37:47 +01:00
Dimitri Fontaine
d52240a95e
Review the --root-dir patches for better default management.
...
Also ensure the directory we're given actually exists on disk, creating it
if necessary, and bail out early in case for whatever reason it's not
possible to create the directory.
2013-11-21 11:27:54 +01:00
Cédric Villemain
17ef2f1933
A word was missing in comment
2013-11-21 11:00:02 +01:00
Cédric Villemain
081f6be0b4
Add new command line parameter for root-dir
...
This variable replaces reject-root-path and is used to set the root working
directory.
It defaults to /tmp/pgloader/ like previously.
Also set the logfile according to the root-dir.
TODO: tmpdir is not handled in comand-line. Is it really wanted to have more
command line parameters ?
2013-11-21 11:00:02 +01:00
Cédric Villemain
8984a0a810
Rename reject-root-path to root-dir
...
Prepare the variable to be a parameter
2013-11-21 11:00:01 +01:00
Cédric Villemain
197ce706b8
Set date to NULL when year is 0000
...
And remove other now useles checks
2013-11-21 11:00:01 +01:00
Dimitri Fontaine
941747e36a
Cleanup in the census places test.
2013-11-21 10:54:57 +01:00
Dimitri Fontaine
ee857e7523
While at it, provide a proper right-trim transforms function.
2013-11-18 11:55:26 +01:00
Dimitri Fontaine
8d8e0b041a
Allow filename matching expressions in the FIXED command, and support it in archives.
2013-11-18 11:38:50 +01:00
Dimitri Fontaine
fdcaab9470
Fix missing query text terminator in docs.
2013-11-18 10:40:38 +01:00
Dimitri Fontaine
fb54d19357
Review some default casting rules, in particular add tinyint(1) to boolean.
2013-11-18 10:28:38 +01:00
Dimitri Fontaine
b31ccded6f
Implement per-column MySQL CAST rules.
2013-11-18 10:12:43 +01:00
Dimitri Fontaine
8ce0288b63
Remove the TODO entry about typemod expression in casting rules.
2013-11-17 22:41:27 +01:00
Dimitri Fontaine
8fa7a86013
Implement typemod and default guards in the MySQL CAST clause.
2013-11-17 22:33:06 +01:00
Dimitri Fontaine
0d3c6f4a2c
Add comments in transforms.lisp.
2013-11-17 22:10:45 +01:00
Dimitri Fontaine
ed6ba23bcb
Add a default MySQL casting rule for char(n) to varchar(n), and tests.
2013-11-17 19:22:49 +01:00
Dimitri Fontaine
d295001a2a
Review the main function to better handle per-filename-argument errors.
2013-11-17 19:02:26 +01:00
Dimitri Fontaine
acff88848b
Error out early when given a non-existing archive file to extract.
2013-11-17 19:01:58 +01:00
Dimitri Fontaine
c809d93b05
New feature, bump the version number.
2013-11-16 21:41:42 +01:00
Dimitri Fontaine
718ac80560
Implement a Materiaze Views option for MySQL.
2013-11-16 21:41:07 +01:00
Dimitri Fontaine
eb468f92fd
Review critical log levels and use FATAL and PANIC as in PostgreSQL.
2013-11-16 21:34:50 +01:00
Dimitri Fontaine
a6c5bc9811
Fix formating of default values in MySQL cast rules.
2013-11-16 21:33:51 +01:00
Dimitri Fontaine
cefd19d704
Improve handling of unhandled conditions, avoid entering the interactive debugger.
2013-11-15 18:03:06 +01:00
Dimitri Fontaine
bccd691ecc
Make it release candidate 1.
2013-11-14 00:01:45 +01:00
Dimitri Fontaine
d99b859c3f
Improve and fix COPY error handling, transactions, connections, and GUCs.
2013-11-13 23:54:41 +01:00
Dimitri Fontaine
6fb3de7043
Improve error management in MySQL copy-database preparatory code.
2013-11-13 22:46:17 +01:00
Dimitri Fontaine
c16a56690a
Fix handling of errors in utility threads (create index and such).
2013-11-13 22:36:29 +01:00
Dimitri Fontaine
00d3886ba6
Fix the goeuro local only test case.
2013-11-13 22:35:45 +01:00
Dimitri Fontaine
79fd109644
Fix zero-dates-to-null to work with datetime and date string.
2013-11-13 22:35:30 +01:00
Dimitri Fontaine
27f485b4d6
Default make target is now building pgloader self-contained binary.
2013-11-13 21:45:33 +01:00
Dimitri Fontaine
a41ce12023
Transform dates with just day of month set to "00" to NIL.
2013-11-13 21:45:11 +01:00