diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ea98dae..7b5bb4a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,6 +8,7 @@ on: env: CARGO_TERM_COLOR: always + SQLX_OFFLINE: true jobs: build: diff --git a/justfile b/justfile index a5608fa..3acd1e1 100644 --- a/justfile +++ b/justfile @@ -1,2 +1,5 @@ update: cargo +nightly update -Z unstable-options --breaking + +sqlx-cli: + cargo install sqlx-cli --no-default-features --features rustls,postgres diff --git a/server/.sqlx/query-0c6aaa059de80cfb1aefeb795631cd725e29ff8db208e3d6b0968700b517f6eb.json b/server/.sqlx/query-0c6aaa059de80cfb1aefeb795631cd725e29ff8db208e3d6b0968700b517f6eb.json new file mode 100644 index 0000000..703c321 --- /dev/null +++ b/server/.sqlx/query-0c6aaa059de80cfb1aefeb795631cd725e29ff8db208e3d6b0968700b517f6eb.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "insert into libraries (id, value) values ($1, $2) on conflict (id) do update set value = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Bytea" + ] + }, + "nullable": [] + }, + "hash": "0c6aaa059de80cfb1aefeb795631cd725e29ff8db208e3d6b0968700b517f6eb" +} diff --git a/server/.sqlx/query-a8767bbc45d1f4d6602622fcfbe9c26c4cc763657408b24ad33ba45dbe721d14.json b/server/.sqlx/query-a8767bbc45d1f4d6602622fcfbe9c26c4cc763657408b24ad33ba45dbe721d14.json new file mode 100644 index 0000000..09a44ce --- /dev/null +++ b/server/.sqlx/query-a8767bbc45d1f4d6602622fcfbe9c26c4cc763657408b24ad33ba45dbe721d14.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "select value from libraries where id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "value", + "type_info": "Bytea", + "origin": { + "Table": { + "table": "libraries", + "name": "value" + } + } + } + ], + "parameters": { + "Left": [ + "Uuid" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a8767bbc45d1f4d6602622fcfbe9c26c4cc763657408b24ad33ba45dbe721d14" +}