storeit_sql_builder

Crates.iostoreit_sql_builder
lib.rsstoreit_sql_builder
version0.1.7
created_at2025-08-20 08:23:08.631344+00
updated_at2025-08-28 08:37:40.004704+00
descriptionSQL builder for storeit with pluggable placeholder styles and optional RETURNING support
homepage
repositoryhttps://github.com/dahankzter/storeit-rs/
max_upload_size
id1802997
size68,824
Henrik Johansson (dahankzter)

documentation

README

storeit_sql_builder

Crates.io Docs.rs

Minimal SQL builder helpers for storeit that leverage metadata generated by #[derive(Entity)].

Highlights:

  • Builds SELECT/INSERT/UPDATE/DELETE strings from compile-time metadata
  • Pluggable placeholder style via features: tokio_postgres => $1, others => ?
  • Optional RETURNING support for libsql via libsql_returning

Examples:

use storeit_sql_builder as b;

// For an entity with table = "users" and columns id, email
let sel = b::select_by_id::<MyEntity>("id");
let ins = b::insert::<MyEntity>("id");

See the workspace README and the tests for more examples.

MSRV: 1.70 License: MIT OR Apache-2.0

Commit count: 26

cargo fmt