[package]
name = "db-cores"
version = "0.1.0"
edition = "2021"

description = "Database core utilities"
license = "MIT"
repository = "https://github.com/Kaifang-123/db-cores"
documentation = "https://docs.rs/db-cores"
homepage = "https://github.com/Kaifang-123/db-cores"
readme = "README"

keywords = ["database", "orm", "sql"]
categories = ["database"]
[workspace]
members = [
    "db_proc_macro"
]
resolver = "2"


[features]
default = ["postgres"]
postgres = ["dep:sqlx", "sqlx/postgres"]
mysql = ["dep:sqlx", "sqlx/mysql"]
sqlite = ["dep:sqlx", "sqlx/sqlite"]

[dependencies]
db_proc_macro = { path = "./db_proc_macro", version = "0.1.0"  }
rust_decimal = "1.37.2"
base64 = "0.22.1"
anyhow = "1.0.97"
nanoid = "0.4.0"
encoding_rs = "0.8.35"
sqlparser = "0.59.0"
sql-builder = "3.1.1"
postgresql_embedded = "0.20.0"
syn = { version = "2.0.106", features = ["full", "extra-traits"] }
serde_json = "1.0.140"
serde = { version = "1.0.218", features = ["derive"] }
regex = "1.12.2"
strum_macros = "0.27.2"

sqlx = { version = "0.8.6", optional = true, features = [
    "runtime-tokio",
    "tls-native-tls",
    "chrono",
    "macros",
    "uuid",
    "json",
    "migrate",
    "rust_decimal",
] }

rand = { version = "0.9.2", features = ["std"] }
chrono = { version = "0.4.42", features = ["serde"] }
tokio = { version = "1.48.0", features= [
    "process",
    "macros",
    "rt-multi-thread",
    "time",
    "fs",
    "io-util",
] }

[workspace.dependencies]
db_proc_macro = { path = "db_proc_macro", version = "0.1.0" }
