You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,19 +167,19 @@ SQLite `NULL` affinity always can be transparent converted for a nullable column
167
167
-**database** as *string*, **required**, no default
168
168
169
169
SQLite database path.
170
-
170
+
171
171
-**updatable** as *boolean*, optional, default *true*
172
172
173
173
This option allow or disallow write operations on SQLite database file.
174
-
174
+
175
175
-**truncatable** as *boolean*, optional, default *true*
176
176
177
177
Allows foreign tables to be truncated using the `TRUNCATE` command.
178
-
178
+
179
179
-**keep_connections** as *boolean*, optional, default *true*
180
-
180
+
181
181
Allows to keep connections to SQLite while there is no SQL operations between PostgreSQL and SQLite.
182
-
182
+
183
183
-**batch_size** as *integer*, optional, default *1*
184
184
185
185
Specifies the number of rows which should be inserted in a single `INSERT` operation. This setting can be overridden for individual tables.
@@ -203,17 +203,17 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL
203
203
SQLite table name. Use if not equal to name of foreign table in PostgreSQL. Also see about [identifier case handling](#identifier-case-handling).
204
204
205
205
-**truncatable** as *boolean*, optional, default from the same `CREATE SERVER` option
206
-
206
+
207
207
See `CREATE SERVER` options section for details.
208
208
209
209
-**batch_size** as *integer*, optional, default from the same `CREATE SERVER` option
210
210
211
211
See `CREATE SERVER` options section for details.
212
-
212
+
213
213
-**updatable** as *boolean*, optional, default *true*
214
214
215
215
This option can allow or disallow write operations on a SQLite table independed of the same server option.
216
-
216
+
217
217
`sqlite_fdw` accepts the following column-level options via the
218
218
`CREATE FOREIGN TABLE` command:
219
219
@@ -225,7 +225,7 @@ In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL
225
225
226
226
Set preferred SQLite affinity for some PostgreSQL data types can be stored in different ways
227
227
in SQLite (mixed affinity case). Updated and inserted values will have this affinity. Default preferred SQLite affinity for `timestamp` and `uuid` PostgreSQL data types is `text`.
228
-
228
+
229
229
- Use `INT` value for SQLite column (epoch Unix Time) to be treated/visualized as `timestamp` in PostgreSQL.
230
230
- Use `BLOB` value for SQLite column to be treated/visualized as `uuid` in PostgreSQL 14+.
231
231
@@ -327,7 +327,7 @@ with names composed from ASCII base latin letters *only*.
327
327
CREATETABLET_dia (
328
328
"Ä"INTEGER,
329
329
"ä"NUMERIC
330
-
);
330
+
);
331
331
```
332
332
333
333
For SQLite there is no difference between
@@ -340,7 +340,7 @@ For SQLite there is no difference between
340
340
```
341
341
For PostgreSQL the query with comment `№4` is independend query to table `T`, not to table `t` as other queries.
342
342
Please note this table name composed from ASCII base latin letters *only*. This is not applicable for other
343
-
alphabet systems or mixed names. This is because `toLower` operation in PostgreSQL is Unicode opration but
343
+
alphabet systems or mixed names. This is because `toLower` operation in PostgreSQL is Unicode opration but
344
344
ASCII only operation in SQLite, hence other characters will not be changed.
345
345
346
346
```sql
@@ -586,6 +586,8 @@ You can execute test by test.sh directly.
586
586
The version of PostgreSQL is detected automatically by $(VERSION) variable in Makefile.
587
587
The corresponding sql and expected directory will be used to compare the result. For example, for Postgres 15.0, you can execute "test.sh" directly, and the sql/15.0 and expected/15.0 will be used to compare automatically.
588
588
589
+
Test data directory is `/tmp/sqlite_fdw_test`. If you have `/tmp` mounted as `tmpfs` the tests will be up to 800% faster.
0 commit comments