twine_sql_store

Crates.iotwine_sql_store
lib.rstwine_sql_store
version0.1.3
created_at2025-03-14 00:10:48.950821+00
updated_at2025-04-18 23:17:52.11781+00
descriptionTwine protocol rust library sql store
homepage
repositoryhttps://github.com/twine-protocol/twine-rs
max_upload_size
id1591651
size125,124
Jasper (wellcaffeinated)

documentation

README

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.

Commit count: 429

cargo fmt