Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
dbuser postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfliegner committed May 28, 2024
1 parent 3d692ed commit 4a1090a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"recommendations": [
"mtxr.sqltools-driver-pg",
"mtxr.sqltools",
"julialang.language-julia"
]
}
4 changes: 2 additions & 2 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[deps.TimeZones]]
deps = ["Dates", "Downloads", "InlineStrings", "Mocking", "Printf", "Scratch", "TZJData", "Unicode", "p7zip_jll"]
git-tree-sha1 = "6505890535a2b2e5145522ac77bddeda85c250c4"
git-tree-sha1 = "a6ae8d7a27940c33624f8c7bde5528de21ba730d"
uuid = "f269a46b-ccf7-5d73-abea-4c690281aa53"
version = "1.16.1"
version = "1.17.0"
weakdeps = ["RecipesBase"]

[deps.TimeZones.extensions]
Expand Down
8 changes: 2 additions & 6 deletions bitemporal_testcase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@
"source": [
"using SearchLight\n",
"using SearchLightPostgreSQL\n",
"if !haskey(ENV, \"GENIE_ENV\")\n",
" ENV[\"GENIE_ENV\"] = \"dev\"\n",
" ENV[\"SEARCHLIGHT_USERNAME\"] = \"asa\"\n",
" ENV[\"SEARCHLIGHT_PASSWORD\"] = \"asa\"\n",
"end\n",
"run(`psql -f sqlsnippets/droptables.sql -d postgres`)\n",
"SearchLight.connect(SearchLight.Configuration.load())\n",
"SearchLight.query(\"DROP SCHEMA public CASCADE\")\n",
"SearchLight.query(\"CREATE SCHEMA public\")\n",
"SearchLight.Migrations.create_migrations_table()\n",
"BitemporalPostgres.up()"
]
Expand Down
3 changes: 2 additions & 1 deletion dbinit.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
run(`psql -f sqlsnippets/droptables.sql`)
using SearchLight
using SearchLightPostgreSQL
SearchLight.connect(SearchLight.Configuration.load())
SearchLight.query("DROP SCHEMA public CASCADE")
SearchLight.query("CREATE SCHEMA public")
SearchLight.Migrations.create_migrations_table()
SearchLight.Migrations.up()
17 changes: 0 additions & 17 deletions sqlsnippets/droptables.sql

This file was deleted.

1 change: 0 additions & 1 deletion workflowtest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
include("init.jl")
using Logging, SearchLight
using SearchLightPostgreSQL
# run(`psql -f sqlsnippets/droptables.sql`)
SearchLight.connect(SearchLight.Configuration.load())
setfield!(SearchLight.config, :log_queries, false)
setfield!(SearchLight.config, :log_level, Logging.Error)
Expand Down

0 comments on commit 4a1090a

Please sign in to comment.