Skip to content

Commit cff5412

Browse files
authored
Update README.md
1 parent 55aca62 commit cff5412

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SQLite Foreign Data Wrapper for PostgreSQL
22
This PostgreSQL extension is a Foreign Data Wrapper for [SQLite][1].
3+
34
The current version can work with PostgreSQL 9.6, 10, 11 and 12.
45

56
## Installation
@@ -40,10 +41,15 @@ CREATE SERVER sqlite_server FOREIGN DATA WRAPPER sqlite_fdw OPTIONS (database '/
4041

4142

4243
### Create foreign table
44+
Please specify `table` option if SQLite table name is different from foreign table name.
4345
<pre>
4446
CREATE FOREIGN TABLE t1(a integer, b text) SERVER sqlite_server OPTIONS (table 't1_sqlite');
4547
</pre>
4648

49+
If you want to update tables, please add `OPTIONS (key 'true')` to a primary key or unique key like the following:
50+
<pre>
51+
CREATE FOREIGN TABLE t1(a integer OPTIONS (key 'true'), b text) SERVER sqlite_server OPTIONS (table 't1_sqlite');
52+
</pre>
4753
### Import foreign schema
4854
<pre>
4955
IMPORT FOREIGN SCHEMA public FROM SERVER sqlite_server INTO public;

0 commit comments

Comments
 (0)