Skip to content

Commit

Permalink
Release 0.1.9: use codegen database as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
finnhodgkin committed Oct 2, 2024
1 parent 7e6c5dc commit 566655f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
DATABASE_URL=dburl # Optional - only used if you want to generate purescript types for postgres enums
GRAPHQL_URL=http://localhost:8080/v1/graphql
TEST_DATABASE_URL=dburl
TEST_GRAPHQL_URL=http://localhost:8082/v1/graphql
CODEGEN_DATABASE_URL=dburl
GRAPHQL_SECRET=secret
ROLES_YAML=path/to/roles.yaml
OUTSIDE_TYPES_YAML=path/to/outside_types.yaml,path/to/outside_types2.yaml
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-purs-gql"
version = "0.1.8"
version = "0.1.9"
edition = "2021"
default-run = "pursgql"
repository = "https://github.com/OxfordAbstracts/purescript-graphql-schema-gen"
Expand Down
15 changes: 0 additions & 15 deletions TODO.md

This file was deleted.

4 changes: 2 additions & 2 deletions src/main_check_needs_migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async fn main() -> Result<()> {
.fetch_one(&pool)
.await?;

let test_db = std::env::var("TEST_DATABASE_URL")
.expect("TEST_DATABASE_URL must be set so we can use it as a codegen base.");
let test_db = std::env::var("CODEGEN_DATABASE_URL")
.expect("CODEGEN_DATABASE_URL must be set so we can use it as a codegen base.");
let hasura_migrations_dir =
std::env::var("HASURA_MIGRATIONS_DIR").expect("HASURA_MIGRATIONS_DIR must be set.");
let test_pool = PgPoolOptions::new()
Expand Down

0 comments on commit 566655f

Please sign in to comment.