[package]
edition = "2024"
rust-version = "1.85"
name = "ormer"
version = "0.2.9"
authors = ["fawdlstty<f@fawdlstty.com>"]
build = false
exclude = ["src/main.rs"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A minimalist ORM framework that supports SQLite, PostgreSQL, MySQL, and SqlServer"
homepage = "https://github.com/fawdlstty/ormer"
readme = "README.md"
keywords = [
"orm",
"database",
]
categories = []
license = "MIT"
repository = "https://github.com/fawdlstty/ormer"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
clickhouse = [
"sqlite",
"dep:clickhouse",
"dep:serde",
]
default = ["sqlite"]
duckdb = [
"sqlite",
"dep:duckdb",
]
full = [
"sqlite",
"postgresql",
"mysql",
"mssql",
"duckdb",
"clickhouse",
]
mssql = [
"dep:tiberius",
"dep:tokio-util",
]
mysql = ["dep:mysql_async"]
postgresql = [
"dep:tokio-postgres",
"dep:postgres-types",
"dep:bb8",
"dep:bb8-postgres",
]
sqlite = ["dep:turso"]
[lib]
name = "ormer"
path = "src/lib.rs"
doctest = false
[[test]]
name = "_test_common"
path = "tests/_test_common.rs"
[[test]]
name = "aggregate_test"
path = "tests/aggregate_test.rs"
harness = true
[[test]]
name = "aggregate_type_test"
path = "tests/aggregate_type_test.rs"
[[test]]
name = "array_capabilities_test"
path = "tests/array_capabilities_test.rs"
[[test]]
name = "auto_increment_test"
path = "tests/auto_increment_test.rs"
[[test]]
name = "batch_query_test"
path = "tests/batch_query_test.rs"
[[test]]
name = "between_test"
path = "tests/between_test.rs"
[[test]]
name = "capability_b6_b10_test"
path = "tests/capability_b6_b10_test.rs"
[[test]]
name = "collect_with_test"
path = "tests/collect_with_test.rs"
[[test]]
name = "composite_primary_key_test"
path = "tests/composite_primary_key_test.rs"
[[test]]
name = "compression_test"
path = "tests/compression_test.rs"
[[test]]
name = "connection_pool_simple_test"
path = "tests/connection_pool_simple_test.rs"
[[test]]
name = "connection_pool_test"
path = "tests/connection_pool_test.rs"
[[test]]
name = "create_table_test"
path = "tests/create_table_test.rs"
[[test]]
name = "cursor_pagination_test"
path = "tests/cursor_pagination_test.rs"
[[test]]
name = "data_type_enum_test"
path = "tests/data_type_enum_test.rs"
[[test]]
name = "db_first_test"
path = "tests/db_first_test.rs"
[[test]]
name = "db_value_test"
path = "tests/db_value_test.rs"
[[test]]
name = "decimal_types_test"
path = "tests/decimal_types_test.rs"
[[test]]
name = "derived_table_test"
path = "tests/derived_table_test.rs"
[[test]]
name = "direct_create_test"
path = "tests/direct_create_test.rs"
[[test]]
name = "distinct_test"
path = "tests/distinct_test.rs"
[[test]]
name = "drop_table_test"
path = "tests/drop_table_test.rs"
[[test]]
name = "duckdb_auto_increment_test"
path = "tests/duckdb_auto_increment_test.rs"
[[test]]
name = "duckdb_value_roundtrip_test"
path = "tests/duckdb_value_roundtrip_test.rs"
[[test]]
name = "duration_field_test"
path = "tests/duration_field_test.rs"
[[test]]
name = "enum_test"
path = "tests/enum_test.rs"
[[test]]
name = "exec_sql_test"
path = "tests/exec_sql_test.rs"
[[test]]
name = "exists_test"
path = "tests/exists_test.rs"
[[test]]
name = "expression_ast_test"
path = "tests/expression_ast_test.rs"
[[test]]
name = "filter_formatter_test"
path = "tests/filter_formatter_test.rs"
[[test]]
name = "filter_route_test"
path = "tests/filter_route_test.rs"
[[test]]
name = "find_by_id_test"
path = "tests/find_by_id_test.rs"
[[test]]
name = "foreign_key_sql_test"
path = "tests/foreign_key_sql_test.rs"
[[test]]
name = "foreign_key_test"
path = "tests/foreign_key_test.rs"
[[test]]
name = "graph_embed_test"
path = "tests/graph_embed_test.rs"
[[test]]
name = "group_by_test"
path = "tests/group_by_test.rs"
[[test]]
name = "grouped_select_e2e_test"
path = "tests/grouped_select_e2e_test.rs"
[[test]]
name = "hooks_demo_test"
path = "tests/hooks_demo_test.rs"
[[test]]
name = "hooks_test"
path = "tests/hooks_test.rs"
[[test]]
name = "hypertable_string_route_test"
path = "tests/hypertable_string_route_test.rs"
[[test]]
name = "ignore_insert_test"
path = "tests/ignore_insert_test.rs"
[[test]]
name = "ignore_select_test"
path = "tests/ignore_select_test.rs"
[[test]]
name = "in_statement_test"
path = "tests/in_statement_test.rs"
[[test]]
name = "insert_batch_test"
path = "tests/insert_batch_test.rs"
[[test]]
name = "insert_conflict_test"
path = "tests/insert_conflict_test.rs"
[[test]]
name = "join_test"
path = "tests/join_test.rs"
[[test]]
name = "json_array_dsl_test"
path = "tests/json_array_dsl_test.rs"
[[test]]
name = "lateral_join_test"
path = "tests/lateral_join_test.rs"
[[test]]
name = "like_test"
path = "tests/like_test.rs"
[[test]]
name = "main_insert_patterns_test"
path = "tests/main_insert_patterns_test.rs"
[[test]]
name = "main_usage_test"
path = "tests/main_usage_test.rs"
[[test]]
name = "map_to_complete_test"
path = "tests/map_to_complete_test.rs"
[[test]]
name = "migration_test"
path = "tests/migration_test.rs"
[[test]]
name = "model_schema_metadata_test"
path = "tests/model_schema_metadata_test.rs"
[[test]]
name = "mssql_conflict_capabilities_test"
path = "tests/mssql_conflict_capabilities_test.rs"
[[test]]
name = "mssql_range_test"
path = "tests/mssql_range_test.rs"
[[test]]
name = "mysql_conflict_capabilities_test"
path = "tests/mysql_conflict_capabilities_test.rs"
[[test]]
name = "new_backend_capabilities_test"
path = "tests/new_backend_capabilities_test.rs"
[[test]]
name = "new_features_test"
path = "tests/new_features_test.rs"
[[test]]
name = "optimistic_lock_test"
path = "tests/optimistic_lock_test.rs"
[[test]]
name = "partial_index_capabilities_test"
path = "tests/partial_index_capabilities_test.rs"
[[test]]
name = "partial_insert_test"
path = "tests/partial_insert_test.rs"
[[test]]
name = "polymorphic_enum_test"
path = "tests/polymorphic_enum_test.rs"
[[test]]
name = "pool_validation_test"
path = "tests/pool_validation_test.rs"
[[test]]
name = "postgresql_array_test"
path = "tests/postgresql_array_test.rs"
[[test]]
name = "postgresql_enum_to_sql_test"
path = "tests/postgresql_enum_to_sql_test.rs"
[[test]]
name = "postgresql_null_params_test"
path = "tests/postgresql_null_params_test.rs"
[[test]]
name = "print_sql_test"
path = "tests/print_sql_test.rs"
[[test]]
name = "query_dialect_gates_test"
path = "tests/query_dialect_gates_test.rs"
[[test]]
name = "range_flexible_test"
path = "tests/range_flexible_test.rs"
[[test]]
name = "range_test"
path = "tests/range_test.rs"
[[test]]
name = "raw_expr_test"
path = "tests/raw_expr_test.rs"
[[test]]
name = "raw_sql_test"
path = "tests/raw_sql_test.rs"
[[test]]
name = "relations_test"
path = "tests/relations_test.rs"
[[test]]
name = "replicated_dynamic_cte_test"
path = "tests/replicated_dynamic_cte_test.rs"
[[test]]
name = "required_binary_test"
path = "tests/required_binary_test.rs"
[[test]]
name = "returning_capabilities_test"
path = "tests/returning_capabilities_test.rs"
[[test]]
name = "schema_table_name_test"
path = "tests/schema_table_name_test.rs"
[[test]]
name = "schema_validation_test"
path = "tests/schema_validation_test.rs"
[[test]]
name = "set_model_test"
path = "tests/set_model_test.rs"
[[test]]
name = "simple_transaction_test"
path = "tests/simple_transaction_test.rs"
[[test]]
name = "special_field_test"
path = "tests/special_field_test.rs"
[[test]]
name = "sql_trace_test"
path = "tests/sql_trace_test.rs"
[[test]]
name = "static_json_dsl_test"
path = "tests/static_json_dsl_test.rs"
[[test]]
name = "step_by_step_test"
path = "tests/step_by_step_test.rs"
[[test]]
name = "stream_connection_leak_test"
path = "tests/stream_connection_leak_test.rs"
[[test]]
name = "stream_error_handling_test"
path = "tests/stream_error_handling_test.rs"
[[test]]
name = "stream_resource_cleanup_test"
path = "tests/stream_resource_cleanup_test.rs"
[[test]]
name = "stream_test"
path = "tests/stream_test.rs"
[[test]]
name = "subquery_e2e_test"
path = "tests/subquery_e2e_test.rs"
[[test]]
name = "subquery_test"
path = "tests/subquery_test.rs"
[[test]]
name = "syntax_validation"
path = "tests/syntax_validation.rs"
[[test]]
name = "table_options_test"
path = "tests/table_options_test.rs"
[[test]]
name = "temporal_types_test"
path = "tests/temporal_types_test.rs"
[[test]]
name = "trace_error_format_test"
path = "tests/trace_error_format_test.rs"
[[test]]
name = "transaction_capabilities_test"
path = "tests/transaction_capabilities_test.rs"
[[test]]
name = "transaction_test"
path = "tests/transaction_test.rs"
[[test]]
name = "tuple_wrapper_test"
path = "tests/tuple_wrapper_test.rs"
[[test]]
name = "typed_column_types_test"
path = "tests/typed_column_types_test.rs"
[[test]]
name = "union_test"
path = "tests/union_test.rs"
[[test]]
name = "upsert_patterns_test"
path = "tests/upsert_patterns_test.rs"
[[test]]
name = "upsert_test"
path = "tests/upsert_test.rs"
[[test]]
name = "uuid_types_test"
path = "tests/uuid_types_test.rs"
[[test]]
name = "validate_table_test"
path = "tests/validate_table_test.rs"
[dependencies.async-trait]
version = "0.1.92"
[dependencies.bb8]
version = "0.9.1"
optional = true
[dependencies.bb8-postgres]
version = "0.9.0"
optional = true
[dependencies.bigdecimal]
version = "0.4"
[dependencies.byteorder]
version = "1.5"
[dependencies.bytes]
version = "1.12.1"
[dependencies.chrono]
version = "0.4.45"
features = ["serde"]
[dependencies.clickhouse]
version = "~0.15.2"
features = [
"lz4",
"chrono",
"uuid",
]
optional = true
default-features = false
[dependencies.duckdb]
version = "~1.10505.0"
features = [
"bundled",
"chrono",
"serde_json",
"uuid",
"rust_decimal",
]
optional = true
default-features = false
[dependencies.futures]
version = "0.3.34"
[dependencies.mysql_async]
version = "0.37.0"
features = [
"rust_decimal",
"bigdecimal",
]
optional = true
[dependencies.ormer-derive]
version = "0.2.9"
[dependencies.paste]
version = "1.0"
[dependencies.postgres-types]
version = "0.2"
features = ["with-uuid-1"]
optional = true
[dependencies.rust_decimal]
version = "1.42.1"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0.151"
[dependencies.tiberius]
version = "0.12.3"
features = [
"tds73",
"chrono",
"rust_decimal",
"bigdecimal",
]
optional = true
[dependencies.tokio]
version = "1.53.1"
features = ["full"]
[dependencies.tokio-postgres]
version = "0.7"
features = [
"array-impls",
"with-chrono-0_4",
"with-uuid-1",
]
optional = true
[dependencies.tokio-util]
version = "0.7.19"
features = ["compat"]
optional = true
[dependencies.turso]
version = "0.7.2"
optional = true
[dependencies.uuid]
version = "1.26.0"
features = ["serde"]
[dev-dependencies.paste]
version = "1.0"