Commit Graph

814 Commits

Author SHA1 Message Date
Pierre Ducroquet
894df76b36 Introduce a new rule specific for username string
This allows dots in username.
2015-02-04 23:22:38 +01:00
Dimitri Fontaine
7ccbb45763 Be smarter about MS SQL bit to boolean conversion, should fix #162.
This is a blind patch given that I couldn't CREATE TABLE as per the bug
report to try and see by myself what's happening. Better have some tests
going on though.
2015-02-03 13:39:09 +01:00
Dimitri Fontaine
100e942c22 Force quoting of some identifiers, per pg rules, fix #161.
PostgreSQL requires that an idenfitier begin with letters or underscore
only, so an identifier that begins with a digit must be quoted. In the
current coding pgloader will unecessarily quote some identifiers that
begin with a unicode accentuated letter, but that's only cosmetic and
isn't worth worrying about (famous last words).
2015-01-29 10:40:12 +01:00
Dimitri Fontaine
d02f5c3992 Allow quoting table names in pgsql uri, fix #163. 2015-01-29 10:10:40 +01:00
Dimitri Fontaine
3e5115c493 Fix MS SQL index names.
As MS SQL index names may contain dots, replace dots with underscores.
That should fix #158 once again.
2015-01-26 16:56:39 +01:00
Dimitri Fontaine
95961a42b8 Replace dots with underscores in MS SQL fk names.
That should help fixing #158 where MS SQL uses the following name for
one of its fkey: fk_dbo.track_dbo.artist_artistid. PostgreSQL refuses fk
names with dots in it.
2015-01-24 17:23:08 +01:00
Dimitri Fontaine
13faf3e4f8 Blind try at fixing #158.
The call to format-pgsql-create-fkey was passing the fkey cons rather
than just the fk definition structure as an argument.
2015-01-23 19:59:04 +01:00
Dimitri Fontaine
4e7f925a9b Typo fix in the docs. 2015-01-22 11:38:49 +01:00
Dimitri Fontaine
cefc636a6e Merge pull request #156 from seletz/seletz-fix-typo-in-manpage
Update pgloader.1.md
2015-01-22 11:15:13 +01:00
Stefan Eletzhofer
9efe68504f Update pgloader.1.md
Fixed a very minor formatting change in the man page markdown
source.
2015-01-22 11:10:22 +01:00
Dimitri Fontaine
28f6a87165 Interim release and forward porting from rel_3_2_stable.
Given the slashdot effect and some bad luck, the binary artefacts of the
3.2.0 release are not currently available, and anyway contain known bugs
that have been fixed meanwhile thanks to early adopters who did open
issues on github.

So we hastily publish the current master's branch version as a github
release with binary files.
2015-01-22 02:25:14 +01:00
Dimitri Fontaine
02ecd8866b Fix Makefile and bash multi-line escaping...
Travis is unhappy about the spelling of the command, so let's not try to
be cleverer here and accept a runaway line here. See #153 too.
2015-01-21 19:56:49 +01:00
Dimitri Fontaine
8ce967744c Add support for http_proxy environment variable to install quicklisp.
See #153.
2015-01-21 15:57:29 +01:00
Dimitri Fontaine
ce5a61face Catch PostgreSQL internal errors too, fixes #155. 2015-01-21 13:01:28 +01:00
Dimitri Fontaine
86fab763a8 Fix "typo" where SBCL's init and save hook were swapped... fix #153. 2015-01-20 10:06:10 +01:00
Dimitri Fontaine
425266798b Merge pull request #152 from zickzackv/patch-2
add note to install universal binaries of freetds
2015-01-19 12:14:31 +01:00
zickzackv
511fc40ee6 add note to install universal binaries of freetds
Otherwise cffi tries to load the 64-bit version of the library which fails
2015-01-19 09:10:02 +01:00
Dimitri Fontaine
388dc31cb7 Merge pull request #151 from zickzackv/patch-1
add missing conditional compilation for sbcl
2015-01-18 23:38:30 +01:00
zickzackv
5e1ebe0dd8 add missing conditional compilation for sbcl
Added missing #+sbcl for sb-ext:*muffled-warnings*.  prevented succesfully building the application with ccl
2015-01-18 22:48:35 +01:00
Dimitri Fontaine
d494fbd4ca Fix fixed and copy connection initialisation methods. 2015-01-16 10:06:51 +01:00
Dimitri Fontaine
30511b4d4d Master's branch is now 3.2.git-hash. 2015-01-16 09:56:25 +01:00
Dimitri Fontaine
2378d3390e Update web/download to 3.2.0 release. 2015-01-15 20:16:12 +01:00
Dimitri Fontaine
a3b68bb80a Random test load file cleanup. 2015-01-15 17:49:19 +01:00
Dimitri Fontaine
f2790fd136 Some more --self-upgrade failing tests. 2015-01-15 17:48:22 +01:00
Dimitri Fontaine
087d4d28cb Review website material, introduce pgloader cli operations. 2015-01-15 16:52:10 +01:00
Dimitri Fontaine
560c838d34 Improve documentation, readying for next release.
The docs now fully cover all supported source types, including COPY and
MSSQL, and expand some more on the command-line only operations for
pgloader.
2015-01-15 00:29:41 +01:00
Dimitri Fontaine
2dfb0269a4 Depend on current cl-csv master's version to fix #123.
The bug is related to the processing of empty-lines in the middle of
quoted text by cl-csv, which state machine has gotten quite complex to
be able to handle all the crazy different csv variants out there.

Testing shows the bug is fixed in pgloader by just updating cl-csv.
2015-01-14 23:39:01 +01:00
Dimitri Fontaine
290916b0f0 Attempt at fixing --self-upgrade.
The option currently only works within the same build environment where
the image was first build, as noted in #133. This is an attempt at
convincing ASDF not to load systems that pgloader depends on in order to
be able to load only the new pgloader definition.

While it looks sound in principle, I failed to have it work in the lab.
Given that previous to this patch nothing works at all, it's not a
regression, let's push it as is makes the code saner.

Also, it looks like asdf::*immutable-systems* is what we want here, but
that's asdf 3.1.x and we're not there yet.
2015-01-14 20:54:11 +01:00
Dimitri Fontaine
9f45b9864a Implement support for update and delete rules for MysQL FKeys, fixes #141. 2015-01-14 18:35:48 +01:00
Eric Jiang
47aa02d844 Add unix-timestamp-to-timestamptz transform. 2015-01-14 18:05:53 +01:00
Dimitri Fontaine
b403c40d30 Implement support for MySQL comments, fix #126.
Only table (BASE TABLE) and columns comments are supported now. I didn't
even try to see if more are possible and interesting to support.
2015-01-09 01:49:56 +01:00
Dimitri Fontaine
cd46b6cbed Clean up common code for sources.
Only move code around, creating a src/sources/common directory with
several files in there so as to split the too big src/sources.lisp.
2015-01-08 23:17:40 +01:00
Dimitri Fontaine
7fcee2617d Fix hooks.lisp to have SBCL extensions #+sbcl protected. 2015-01-08 09:30:24 +01:00
Dimitri Fontaine
5f520737e6 Improve loading of external libs, fixes #142.
Loading external libs at application startup time is not convenient as
it forces users to install freetds everywhere even when they don't need
it. This patch makes it so that freetds is only loaded when pgloader is
asked to load from a MS SQL database source.

Note that we could have done the same for SSL if it wasn't possibly used
to connect to PostgreSQL, which isn't optional in current pgloader
implementation.
2015-01-07 22:23:12 +01:00
Dimitri Fontaine
9da649d028 Typo fix. 2015-01-06 12:36:22 +01:00
Dimitri Fontaine
2caefb0836 Fix and improve new summary reporting. 2015-01-06 12:36:14 +01:00
Dimitri Fontaine
559e1c3348 Forgot to push the changes to the manpage. 2015-01-06 12:35:35 +01:00
Dimitri Fontaine
ad8fb0b2a4 Implement machine readable summary files, fixes #144.
It's now possible to have pgloader print out its summary in one of
several formats: human-readable (default), csv, copy or json. The
choice of format is made depending on the extension of the summary
filename picked on the command line with the option --summary.
2015-01-06 01:22:01 +01:00
Dimitri Fontaine
d9f5bff5e0 Cleanup some code location. 2015-01-06 01:18:54 +01:00
Dimitri Fontaine
a86369a03d Improve the CLI situation a bit.
Fix bugs related to parsing the new COPY type, and make it so that we
know how to parse options (and fields, and other type dependant things)
even when --type is missing, in care the source URL has the information.
2015-01-06 00:07:31 +01:00
Dimitri Fontaine
e1bc6425e2 Implement support for PostgreSQL COPY format, fix #145.
PostgreSQL COPY format is not really CSV but something way easier to
parse. Funnily enough, parsing it as CSV is not that easy, so we add
here a special simple parser for the COPY format.

It should be quite useful too try loading again reject data files from
pgloader after manual fixing, too. It's still missing some documentation
without any good excuse for that, will add soon.
2015-01-02 18:49:17 +01:00
Dimitri Fontaine
6d76bc57e3 Allow - from the command line to process from standard input.
Also augment the documentation with examples of bare stdin reading and
of advantages of the unix pipes to stream even remove archived content
down to PostgreSQL.
2014-12-27 21:20:40 +01:00
Dimitri Fontaine
f2bf5c4a62 Adjusting manpage text to fit github's markdown... 2014-12-27 17:09:37 +01:00
Dimitri Fontaine
44504542c9 Small fixes in the pgloader.1.md documentation. 2014-12-27 17:08:17 +01:00
Dimitri Fontaine
40f3c4f769 Improve HTTP handling of CSV and Fixed data sources.
In passing also allow --field to specify the whole field list, there's
no point in forcing the user to have as many --field switches on the
command line as they have columns in their data source file.
2014-12-27 17:02:19 +01:00
Dimitri Fontaine
25c39b05e2 Tidying up some more. 2014-12-27 00:30:10 +01:00
Dimitri Fontaine
e25ccdb531 Fix ixf default transform to use princ-to-string.
Also, simplify away the use of compile here.
2014-12-26 23:00:58 +01:00
Dimitri Fontaine
65b35cf4a1 Fix bug with db3 options handling. 2014-12-26 22:43:44 +01:00
Dimitri Fontaine
b3a09a20e3 Further simplifications from stassats. 2014-12-26 22:33:15 +01:00
Dimitri Fontaine
f922392341 Simplify some loop constructs, per stassats gripe. 2014-12-26 22:13:25 +01:00