diff --git a/Cargo.lock b/Cargo.lock index cba97ec..1b278af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -280,6 +280,9 @@ name = "either" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +dependencies = [ + "serde", +] [[package]] name = "event-listener" @@ -1165,6 +1168,7 @@ dependencies = [ "percent-encoding", "rustls", "rustls-pemfile", + "serde", "sha2", "smallvec", "sqlformat", @@ -1185,9 +1189,12 @@ dependencies = [ "dotenvy", "either", "heck", + "hex", "once_cell", "proc-macro2", "quote", + "serde", + "serde_json", "sha2", "sqlx-core", "sqlx-rt", diff --git a/Cargo.toml b/Cargo.toml index b52e8ae..93cc738 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,11 @@ edition = "2021" [dependencies] axum = { version = "0.6", features = ["json"] } tokio = { version = "1", features = ["full"] } -sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "sqlite"] } +sqlx = { version = "0.6", features = [ + "runtime-tokio-rustls", + "sqlite", + "offline", +] } anyhow = "1.0" askama = "0.12" tracing = "0.1" diff --git a/sqlx-data.json b/sqlx-data.json index 93f7035..f8ff9e5 100644 --- a/sqlx-data.json +++ b/sqlx-data.json @@ -1,3 +1,23 @@ { - "db": "SQLite" + "db": "SQLite", + "70bad31245bf73f3288e71aaef6242dd61019cf217237172255910ebf74edea0": { + "describe": { + "columns": [], + "nullable": [], + "parameters": { + "Right": 0 + } + }, + "query": "CREATE TABLE IF NOT EXISTS anmeldungen (\n id INTEGER PRIMARY KEY NOT NULL,\n name TEXT NOT NULL,\n email TEXT NOT NULL,\n klasse TEXT NOT NULL\n )" + }, + "e57cf7b26d137121619d240db248ffecb9a7a17328da543a1c199970f8261142": { + "describe": { + "columns": [], + "nullable": [], + "parameters": { + "Right": 3 + } + }, + "query": "INSERT INTO anmeldungen (name, email, klasse) VALUES (?, ?, ?)" + } } \ No newline at end of file