feature #6: implement PostgresJson

add Article, Citien and User Entities
implement Article.findById()
This commit is contained in:
2019-07-30 23:18:10 +02:00
parent 358c3edb0e
commit ea835d8e9a
16 changed files with 246 additions and 44 deletions

View File

@@ -7,3 +7,15 @@ ktor {
modules = [ fr.dcproject.ApplicationKt.module ]
}
}
app {
envName = prod
}
db {
host = localhost
database = dc-project
username = dc-project
password = dc-project
port = 5432
}

View File

@@ -15,4 +15,6 @@ begin
end;
$$;
-- drop function if exists find_article_by_id(uuid, out json);
-- drop function if exists find_article_by_id(uuid, out json);
select find_article_by_id('12fed2f3-2a7d-434b-87e6-5a9895f9d12d')