From 391dc7660b8de20f99d855a68d30e7be0b03f018 Mon Sep 17 00:00:00 2001 From: Markus Ast Date: Fri, 7 Jun 2024 11:18:01 +0200 Subject: [PATCH] add sqlm and sqlm-sqlite placeholders --- Cargo.toml | 2 +- postgres/Cargo.toml | 4 ++-- sqlite/Cargo.toml | 10 ++++++++++ sqlite/src/lib.rs | 1 + sqlm/Cargo.toml | 10 ++++++++++ sqlm/README.md | 3 +++ sqlm/src/lib.rs | 1 + 7 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 sqlite/Cargo.toml create mode 100644 sqlite/src/lib.rs create mode 100644 sqlm/Cargo.toml create mode 100644 sqlm/README.md create mode 100644 sqlm/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index fe633a9..d5702f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,5 @@ resolver = "2" members = [ "postgres", - "postgres-macros", + "postgres-macros", "sqlite", "sqlm", ] diff --git a/postgres/Cargo.toml b/postgres/Cargo.toml index d519366..48830ba 100644 --- a/postgres/Cargo.toml +++ b/postgres/Cargo.toml @@ -3,7 +3,7 @@ name = "sqlm-postgres" version = "0.1.0" edition = "2021" authors = ["Markus Ast "] -description = "`sql!` to write compile-time checked database queries similar to how `format!` works" +description = "`sql!` macro to write compile-time checked database queries similar to how `format!` works" license = "MIT OR Apache-2.0" repository = "https://github.com/rkusa/sqlm" @@ -26,7 +26,7 @@ once_cell = "1.17" pgvector = { version = "0.3", features = ["postgres"], optional = true } rustls = { version = "0.23" } serde_json = { version = "1.0", optional = true } -sqlm-postgres-macros = { path = "../postgres-macros", default-features = false } +sqlm-postgres-macros = { path = "../postgres-macros", version = "0.1", default-features = false } time = { version = "0.3", optional = true } tokio-postgres = "0.7" tokio-postgres-rustls = "0.12" diff --git a/sqlite/Cargo.toml b/sqlite/Cargo.toml new file mode 100644 index 0000000..f73a9a2 --- /dev/null +++ b/sqlite/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "sqlm-sqlite" +version = "0.1.0" +edition = "2021" +authors = ["Markus Ast "] +description = "reserved" +license = "MIT OR Apache-2.0" +repository = "https://github.com/rkusa/sqlm" + +[dependencies] diff --git a/sqlite/src/lib.rs b/sqlite/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sqlite/src/lib.rs @@ -0,0 +1 @@ + diff --git a/sqlm/Cargo.toml b/sqlm/Cargo.toml new file mode 100644 index 0000000..bd5478a --- /dev/null +++ b/sqlm/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "sqlm" +version = "0.1.0" +edition = "2021" +authors = ["Markus Ast "] +description = "reserved" +license = "MIT OR Apache-2.0" +repository = "https://github.com/rkusa/sqlm" + +[dependencies] diff --git a/sqlm/README.md b/sqlm/README.md new file mode 100644 index 0000000..1437d9a --- /dev/null +++ b/sqlm/README.md @@ -0,0 +1,3 @@ +Check out the database-specific crates: + +- [`sqlm-posgres`](https://crates.io/crates/sqlm-postgres) diff --git a/sqlm/src/lib.rs b/sqlm/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sqlm/src/lib.rs @@ -0,0 +1 @@ +