-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from wsporto/postgres
Postgres
- Loading branch information
Showing
64 changed files
with
8,914 additions
and
439 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
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
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,50 @@ | ||
CREATE TABLE mytable1 ( | ||
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
value INTEGER | ||
); | ||
|
||
CREATE TABLE mytable2 ( | ||
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
name TEXT, | ||
descr TEXT | ||
); | ||
|
||
CREATE TABLE mytable3 ( | ||
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
double_value real, | ||
name TEXT NOT NULL | ||
); | ||
|
||
CREATE TABLE mytable4 ( | ||
id TEXT PRIMARY KEY, | ||
name TEXT, | ||
year INTEGER | ||
); | ||
|
||
CREATE TABLE mytable5 ( | ||
id INTEGER PRIMARY KEY, | ||
name TEXT, | ||
year INTEGER | ||
); | ||
|
||
CREATE TABLE all_types ( | ||
bool_column BOOL, | ||
bytea_column BYTEA, | ||
char_column CHAR(1), | ||
name_column NAME, | ||
int8_column INT8, | ||
int2_column INT2, | ||
int4_column INT4, | ||
text_column TEXT, | ||
varchar_column VARCHAR(255), | ||
date_column DATE, | ||
bit_column BIT(1), | ||
numeric_column NUMERIC, | ||
uuid_column UUID, | ||
float4_column FLOAT4, | ||
float8_column FLOAT8, | ||
timestamp_column timestamp, | ||
timestamp_not_null_column timestamp NOT NULL, | ||
timestamptz_column timestamptz, | ||
timestamptz_not_null_column timestamptz NOT NULL | ||
); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.