-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
*.o | ||
*.so | ||
ogr_fdw_info | ||
results/ | ||
sql/* | ||
expected/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name,age,value | ||
Peter,34,10.2 | ||
John,77,3.4 | ||
Paul,45,19.2 | ||
Matthew,35,18.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CREATE EXTENSION ogr_fdw; | ||
CREATE SERVER myserver | ||
FOREIGN DATA WRAPPER ogr_fdw | ||
OPTIONS ( | ||
datasource '/Users/pramsey/Code/pgsql-ogr-fdw/data', | ||
format 'ESRI Shapefile' ); | ||
CREATE FOREIGN TABLE pt_two ( | ||
fid integer, | ||
geom bytea, | ||
name varchar, | ||
age integer, | ||
height real, | ||
birthdate date ) | ||
SERVER myserver | ||
OPTIONS ( layer 'pt_two' ); | ||
SELECT * FROM pt_two WHERE fid = 1; | ||
fid | geom | name | age | height | birthdate | ||
-----+----------------------------------------------+------+-----+--------+------------ | ||
1 | \x010100000054e943acd697e2bfc0895ee54a46cf3f | Paul | 33 | 5.84 | 03-25-1971 | ||
(1 row) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore |