mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 23:07:00 +02:00
108 lines
4.0 KiB
Plaintext
108 lines
4.0 KiB
Plaintext
In this directory you'll find out some pgloader usage examples.
|
||
|
||
To use them, please first create a pgloader database, then for each example
|
||
the tables it needs, then issue the pgloader command:
|
||
|
||
$ createdb --encoding=utf-8 pgloader
|
||
$ cd examples
|
||
$ psql pgloader < simple/simple.sql
|
||
$ ../pgloader.py -Tvc pgloader.conf simple
|
||
|
||
If you want to load data from all examples, create tables for all of them
|
||
first, then run pgloader without argument.
|
||
|
||
The provided examples are:
|
||
|
||
. simple
|
||
|
||
This dataset shows basic case, with trailing separator and data
|
||
reordering.
|
||
|
||
. xzero
|
||
|
||
Same as simple but using \0 as the null marker ( |