mockgres 0.0.18

An in-memory database that replicates a reasonable subset of Postgres functionality to make unit tests that rely on a database to run.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "mockgres"
version = "0.0.18"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An in-memory database that replicates a reasonable subset of Postgres functionality to make unit tests that rely on a database to run."
readme = "README.md"
license = "MIT"
repository = "https://github.com/mockgres/mockgres"
resolver = "2"

[lib]
name = "mockgres"
path = "src/lib.rs"

[[bin]]
name = "mockgres"
path = "src/bin/mockgres.rs"

[[test]]
name = "advisory_lock"
path = "tests/advisory_lock.rs"

[[test]]
name = "alembic_foreign_keys"
path = "tests/alembic_foreign_keys.rs"

[[test]]
name = "alter_table"
path = "tests/alter_table.rs"

[[test]]
name = "app_flow"
path = "tests/app_flow.rs"

[[test]]
name = "binary_result_format"
path = "tests/binary_result_format.rs"

[[test]]
name = "casting"
path = "tests/casting.rs"

[[test]]
name = "common"
path = "tests/common.rs"

[[test]]
name = "composite_keys"
path = "tests/composite_keys.rs"

[[test]]
name = "create_insert_select"
path = "tests/create_insert_select.rs"

[[test]]
name = "cte_insert_delete"
path = "tests/cte_insert_delete.rs"

[[test]]
name = "cte_negative"
path = "tests/cte_negative.rs"

[[test]]
name = "cte_protocol"
path = "tests/cte_protocol.rs"

[[test]]
name = "cte_select"
path = "tests/cte_select.rs"

[[test]]
name = "cte_update_from"
path = "tests/cte_update_from.rs"

[[test]]
name = "database_support"
path = "tests/database_support.rs"

[[test]]
name = "drop_table"
path = "tests/drop_table.rs"

[[test]]
name = "empty_query"
path = "tests/empty_query.rs"

[[test]]
name = "for_update_skip_locked"
path = "tests/for_update_skip_locked.rs"

[[test]]
name = "foreign_keys"
path = "tests/foreign_keys.rs"

[[test]]
name = "freeze_reset"
path = "tests/freeze_reset.rs"

[[test]]
name = "functions"
path = "tests/functions.rs"

[[test]]
name = "in_subquery"
path = "tests/in_subquery.rs"

[[test]]
name = "index_ddl"
path = "tests/index_ddl.rs"

[[test]]
name = "inner_join_on"
path = "tests/inner_join_on.rs"

[[test]]
name = "insert_column_list"
path = "tests/insert_column_list.rs"

[[test]]
name = "insert_numeric_coercion"
path = "tests/insert_numeric_coercion.rs"

[[test]]
name = "insert_on_conflict_do_nothing"
path = "tests/insert_on_conflict_do_nothing.rs"

[[test]]
name = "integration_reddit"
path = "tests/integration_reddit.rs"

[[test]]
name = "integration_task_queue"
path = "tests/integration_task_queue.rs"

[[test]]
name = "joins"
path = "tests/joins.rs"

[[test]]
name = "json_type"
path = "tests/json_type.rs"

[[test]]
name = "multi_statement_extended"
path = "tests/multi_statement_extended.rs"

[[test]]
name = "multi_statement_simple"
path = "tests/multi_statement_simple.rs"

[[test]]
name = "nan_and_null_ordering"
path = "tests/nan_and_null_ordering.rs"

[[test]]
name = "on_delete_cascade"
path = "tests/on_delete_cascade.rs"

[[test]]
name = "order_by_nulls_default"
path = "tests/order_by_nulls_default.rs"

[[test]]
name = "order_expressions"
path = "tests/order_expressions.rs"

[[test]]
name = "pg_tables"
path = "tests/pg_tables.rs"

[[test]]
name = "pg_type"
path = "tests/pg_type.rs"

[[test]]
name = "prepared_statements"
path = "tests/prepared_statements.rs"

[[test]]
name = "read_committed"
path = "tests/read_committed.rs"

[[test]]
name = "returning"
path = "tests/returning.rs"

[[test]]
name = "schemas"
path = "tests/schemas.rs"

[[test]]
name = "select_expressions"
path = "tests/select_expressions.rs"

[[test]]
name = "select_literals"
path = "tests/select_literals.rs"

[[test]]
name = "select_where_order_limit"
path = "tests/select_where_order_limit.rs"

[[test]]
name = "show_set"
path = "tests/show_set.rs"

[[test]]
name = "text_and_bool"
path = "tests/text_and_bool.rs"

[[test]]
name = "timestamp_defaults"
path = "tests/timestamp_defaults.rs"

[[test]]
name = "timestamptz"
path = "tests/timestamptz.rs"

[[test]]
name = "transactions"
path = "tests/transactions.rs"

[[test]]
name = "types_defaults"
path = "tests/types_defaults.rs"

[[test]]
name = "unique_alter_table"
path = "tests/unique_alter_table.rs"

[[test]]
name = "unique_create_table"
path = "tests/unique_create_table.rs"

[[test]]
name = "unique_enforcement"
path = "tests/unique_enforcement.rs"

[[test]]
name = "unique_index_create"
path = "tests/unique_index_create.rs"

[[test]]
name = "update_delete"
path = "tests/update_delete.rs"

[[test]]
name = "update_expressions"
path = "tests/update_expressions.rs"

[[test]]
name = "update_from"
path = "tests/update_from.rs"

[[test]]
name = "update_rowcount"
path = "tests/update_rowcount.rs"

[[test]]
name = "upsert_do_nothing"
path = "tests/upsert_do_nothing.rs"

[[test]]
name = "upsert_do_update"
path = "tests/upsert_do_update.rs"

[[test]]
name = "version_function"
path = "tests/version_function.rs"

[[test]]
name = "where_projection_shape"
path = "tests/where_projection_shape.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.dashmap]
version = "5.5"

[dependencies.futures]
version = "0.3.31"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.pg_query]
version = "6.1.1"

[dependencies.pgwire]
version = "0.37.0"

[dependencies.postgres-types]
version = "0.2"
features = ["with-serde_json-1"]

[dependencies.serde_json]
version = "1.0"

[dependencies.time]
version = "0.3"
features = [
    "macros",
    "parsing",
    "formatting",
]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "io-util",
    "signal",
]

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dev-dependencies.fallible-iterator]
version = "0.2"

[dev-dependencies.postgres-protocol]
version = "0.6"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "io-util",
]

[dev-dependencies.tokio-postgres]
version = "0.7"
features = ["with-serde_json-1"]