[package]
edition = "2021"
name = "evento-sql"
version = "2.0.0-alpha.28"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQL database implementations for evento event sourcing library."
documentation = "https://docs.rs/evento-sql"
readme = "README.md"
keywords = [
"event-sourcing",
"cqrs",
"ddd",
"events",
"eventstore",
]
categories = [
"database",
"asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/timayz/evento"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
accord = [
"dep:evento-accord",
"sqlx/runtime-tokio",
"sqlx/migrate",
]
default = [
"sqlite",
"mysql",
"postgres",
]
mysql = [
"evento-core/rw",
"sea-query/backend-mysql",
"sea-query-sqlx/sqlx-mysql",
"sqlx/mysql",
"sqlx/mysql-rsa",
]
postgres = [
"evento-core/rw",
"sea-query/backend-postgres",
"sea-query-sqlx/sqlx-postgres",
"sqlx/postgres",
]
sqlite = [
"evento-core/rw",
"sea-query/backend-sqlite",
"sea-query-sqlx/sqlx-sqlite",
"sqlx/sqlite",
]
[lib]
name = "evento_sql"
path = "src/lib.rs"
[[test]]
name = "mysql"
path = "tests/mysql.rs"
[[test]]
name = "pool"
path = "tests/pool.rs"
[[test]]
name = "postgres"
path = "tests/postgres.rs"
[[test]]
name = "sql_journal"
path = "tests/sql_journal.rs"
required-features = [
"accord",
"sqlite",
]
[[test]]
name = "sql_journal_mysql"
path = "tests/sql_journal_mysql.rs"
required-features = [
"accord",
"mysql",
]
[[test]]
name = "sql_journal_postgres"
path = "tests/sql_journal_postgres.rs"
required-features = [
"accord",
"postgres",
]
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.bitcode]
version = "0.6"
[dependencies.evento-accord]
version = "2.0.0-alpha.28"
optional = true
[dependencies.evento-core]
version = "2.0.0-alpha.28"
[dependencies.sea-query]
version = "1.0.1"
features = [
"derive",
"audit",
]
default-features = false
[dependencies.sea-query-sqlx]
version = "0.9.1"
features = ["runtime-tokio"]
[dependencies.sqlx]
version = "0.9"
[dependencies.tokio]
version = "1.52"
features = ["full"]
[dependencies.ulid]
version = "3.0"
features = ["serde"]
[dev-dependencies.sqlx_migrator]
version = "0.19"
[dev-dependencies.tempfile]
version = "3.27"
[dev-dependencies.tokio]
version = "1.52"
features = ["full"]
[lints.rust]
missing_docs = "warn"
[lints.rustdoc]
broken_intra_doc_links = "deny"