mirror of
https://github.com/dimitri/pgloader.git
synced 2026-02-13 10:21:41 +01:00
Review default SQLite options.
This commit is contained in:
parent
bf1ab9acd7
commit
52e3371be8
@ -1587,6 +1587,9 @@ Path or HTTP URL to a SQLite file, might be a \fB\.zip\fR file\.
|
||||
.IP
|
||||
When loading from a \fBSQLite\fR database, the following options are supported:
|
||||
.
|
||||
.IP
|
||||
When loading from a \fBSQLite\fR database, the following options are supported, and the default \fIWITH\fR clause is: \fIno truncate\fR, \fIcreate tables\fR, \fIinclude drop\fR, \fIcreate indexes\fR, \fIreset sequences\fR, \fIdowncase identifiers\fR, \fIencoding \'utf\-8\'\fR\.
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fIinclude drop\fR
|
||||
.
|
||||
|
||||
@ -1299,6 +1299,11 @@ The `sqlite` command accepts the following clauses and options:
|
||||
When loading from a `SQLite` database, the following options are
|
||||
supported:
|
||||
|
||||
When loading from a `SQLite` database, the following options are
|
||||
supported, and the default *WITH* clause is: *no truncate*, *create
|
||||
tables*, *include drop*, *create indexes*, *reset sequences*, *downcase
|
||||
identifiers*, *encoding 'utf-8'*.
|
||||
|
||||
- *include drop*
|
||||
|
||||
When this option is listed, pgloader drop in the PostgreSQL
|
||||
|
||||
@ -246,13 +246,13 @@
|
||||
(defmethod copy-database ((sqlite copy-sqlite)
|
||||
&key
|
||||
state-before
|
||||
truncate
|
||||
data-only
|
||||
schema-only
|
||||
create-tables
|
||||
include-drop
|
||||
create-indexes
|
||||
reset-sequences
|
||||
(truncate nil)
|
||||
(create-tables t)
|
||||
(include-drop t)
|
||||
(create-indexes t)
|
||||
(reset-sequences t)
|
||||
only-tables
|
||||
including
|
||||
excluding
|
||||
|
||||
@ -2,6 +2,6 @@ load database
|
||||
from 'sqlite/sqlite.db'
|
||||
into postgresql:///pgloader
|
||||
|
||||
with include drop, create tables, create indexes, reset sequences
|
||||
-- with include drop, create tables, create indexes, reset sequences
|
||||
|
||||
set work_mem to '16MB', maintenance_work_mem to '512 MB';
|
||||
Loading…
x
Reference in New Issue
Block a user