4 releases

new 0.1.3 Apr 18, 2025
0.1.2 Mar 26, 2025
0.1.1 Mar 21, 2025
0.1.0 Mar 14, 2025

#13 in #twine

Download history 80/week @ 2025-03-08 90/week @ 2025-03-15 214/week @ 2025-03-22 26/week @ 2025-03-29 2/week @ 2025-04-05

412 downloads per month

MIT license

260KB
6.5K SLoC

twine_sql_store

Crates.io Version docs.rs (with version)

A twine_lib::store::Store implementation that saves twine data to an SQL database. The sql support must be enabled through feature flags.

Currently supported via feature flags:

  • sqlite
  • mysql

Database setup

Sqlite

For sqlite, one can either use the crate::sqlite::SCHEMA string for sql that sets up the tables, or call [crate::sqlite::SqliteStore::create_tables()]

Mysql

See the file [./schemas/mysql/001_init-mysql.sql] for a schema to use with your mysql database.

Dependencies

~24–42MB
~772K SLoC