Skip to content

Commit

Permalink
Add data into table order
Browse files Browse the repository at this point in the history
  • Loading branch information
Primetalk committed Mar 11, 2024
1 parent 3bbd078 commit 0d1bf08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ontology-quill/src/main/resources/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ CREATE TABLE IF NOT EXISTS person (
last_name text NOT NULL,
age integer NOT NULL
);

CREATE TABLE IF NOT EXISTS order (
id integer NOT NULL,
"date" date NOT NULL
);

INSERT INTO order
VALUES (1, '2024-03-11'::date);
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import ru.primetalk.typed.ontology.dbquill.parser.TupleConverter

object Order extends TableBuilder:
object id extends column[Int]
val id1 = id
type Id = id1.type
type Id = id.type
object date extends column[LocalDateTime]
type Date = date.type
type TableSchema = Id #: Date #: EmptySchema
Expand Down

0 comments on commit 0d1bf08

Please sign in to comment.