immigrant-generator-postgres 0.2.0

Immigrant migrations generator for postgres SQL dialect
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
!!!TEST naming convention modifiers, table should be named as in schema
scalar foo = sql"INTEGER";

#pgnc(as_is)
table bar {
	foo;
};
!!!RESULT
-- updated: naming convention modifiers, table should be named as in schema --
CREATE DOMAIN foo AS INTEGER;
CREATE TABLE bar (
	foo foo NOT NULL
);
-- updated: cleanup schema changes --
DROP TABLE bar;
DROP DOMAIN foo;