really add sqlx offline functionality
This commit is contained in:
parent
64f1ad6c72
commit
e372769477
|
@ -280,6 +280,9 @@ name = "either"
|
||||||
version = "1.8.1"
|
version = "1.8.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
|
checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "event-listener"
|
name = "event-listener"
|
||||||
|
@ -1165,6 +1168,7 @@ dependencies = [
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"rustls",
|
"rustls",
|
||||||
"rustls-pemfile",
|
"rustls-pemfile",
|
||||||
|
"serde",
|
||||||
"sha2",
|
"sha2",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"sqlformat",
|
"sqlformat",
|
||||||
|
@ -1185,9 +1189,12 @@ dependencies = [
|
||||||
"dotenvy",
|
"dotenvy",
|
||||||
"either",
|
"either",
|
||||||
"heck",
|
"heck",
|
||||||
|
"hex",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
"sqlx-core",
|
"sqlx-core",
|
||||||
"sqlx-rt",
|
"sqlx-rt",
|
||||||
|
|
|
@ -8,7 +8,11 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { version = "0.6", features = ["json"] }
|
axum = { version = "0.6", features = ["json"] }
|
||||||
tokio = { version = "1", features = ["full"] }
|
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"
|
anyhow = "1.0"
|
||||||
askama = "0.12"
|
askama = "0.12"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|
|
@ -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 (?, ?, ?)"
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue