datomic progress.

This commit is contained in:
BC
2018-08-09 23:04:10 -07:00
parent 913a44fb48
commit bf0542d535
5 changed files with 169 additions and 2 deletions

12
datomic-init/postgres-db.sql Executable file
View File

@@ -0,0 +1,12 @@
-- Database: datomic
-- DROP DATABASE datomic;
CREATE DATABASE datomic
WITH OWNER = postgres
TEMPLATE template0
ENCODING = 'UTF8'
TABLESPACE = pg_default
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8'
CONNECTION LIMIT = -1;

19
datomic-init/postgres-table.sql Executable file
View File

@@ -0,0 +1,19 @@
-- Table: datomic_kvs
-- DROP TABLE datomic_kvs;
CREATE TABLE datomic_kvs
(
id text NOT NULL,
rev integer,
map text,
val bytea,
CONSTRAINT pk_id PRIMARY KEY (id )
)
WITH (
OIDS=FALSE
);
ALTER TABLE datomic_kvs
OWNER TO postgres;
GRANT ALL ON TABLE datomic_kvs TO postgres;
GRANT ALL ON TABLE datomic_kvs TO public;

5
datomic-init/postgres-user.sql Executable file
View File

@@ -0,0 +1,5 @@
-- DROP ROLE :datomic
CREATE ROLE datomic LOGIN PASSWORD 'datomic';