[package]
name = "purwa-orm"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
repository.workspace = true
readme.workspace = true
documentation = "https://docs.rs/purwa-orm"
description = "SQLx migrations and pool helpers for Purwa; optional SeaORM bridge"
keywords = ["purwa", "sqlx", "postgres", "migrations"]
categories = ["database", "web-programming"]

[features]
default = []
sea-orm = ["dep:sea-orm"]

[dependencies]
purwa-core = { version = "0.1.0", path = "../purwa-core" }
sea-orm = { version = "1.1", optional = true, default-features = false, features = [
    "runtime-tokio-rustls",
    "sqlx-postgres",
] }
sqlx = { version = "0.8.6", default-features = false, features = [
    "runtime-tokio",
    "postgres",
    "migrate",
    "tls-rustls-ring",
] }
thiserror = "2.0.18"
tokio = { version = "1.52.1", features = ["macros", "rt-multi-thread"] }

[dev-dependencies]
sqlx = { version = "0.8.6", default-features = false, features = [
    "runtime-tokio",
    "postgres",
    "tls-rustls-ring",
] }
testcontainers = "0.25.0"
testcontainers-modules = { version = "0.13.0", features = ["postgres"] }
tokio = { version = "1.52.1", features = ["macros", "rt-multi-thread"] }
