From c8697a4d84f33df6353bb9d9882eff521baffcea Mon Sep 17 00:00:00 2001 From: core Date: Thu, 2 Feb 2023 21:39:46 -0500 Subject: [PATCH] database connectivity --- .idea/.gitignore | 8 ++++++++ .idea/dataSources.xml | 12 ++++++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/sqldialects.xml | 7 +++++++ .idea/trifid.iml | 12 ++++++++++++ .idea/vcs.xml | 7 +++++++ trifid-api/build.rs | 5 +++++ trifid-api/migrations/20230203003134_create_orgs.sql | 1 + 9 files changed, 66 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/dataSources.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/sqldialects.xml create mode 100644 .idea/trifid.iml create mode 100644 .idea/vcs.xml create mode 100644 trifid-api/build.rs create mode 100644 trifid-api/migrations/20230203003134_create_orgs.sql diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..70b1501 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://localhost:5432/postgres + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..3ce3588 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..cc16ce7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml new file mode 100644 index 0000000..088a480 --- /dev/null +++ b/.idea/sqldialects.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/trifid.iml b/.idea/trifid.iml new file mode 100644 index 0000000..1324adf --- /dev/null +++ b/.idea/trifid.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..04303aa --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/trifid-api/build.rs b/trifid-api/build.rs new file mode 100644 index 0000000..7609593 --- /dev/null +++ b/trifid-api/build.rs @@ -0,0 +1,5 @@ +// generated by `sqlx migrate build-script` +fn main() { + // trigger recompilation when a new migration is added + println!("cargo:rerun-if-changed=migrations"); +} \ No newline at end of file diff --git a/trifid-api/migrations/20230203003134_create_orgs.sql b/trifid-api/migrations/20230203003134_create_orgs.sql new file mode 100644 index 0000000..8ddc1d3 --- /dev/null +++ b/trifid-api/migrations/20230203003134_create_orgs.sql @@ -0,0 +1 @@ +-- Add migration script here