95b9c7f7f5
* Pre: rename begin_transaction to begin_tx_application. * Take an EXCLUSIVE transaction when bootstrapping, and an IMMEDIATE transaction when writing. This avoids the remote possibility of another write sneaking in the door while we're preparing to write, avoids us needing to upgrade locks, etc. After a BEGIN IMMEDIATE, no other database connection will be able to write to the database or do a BEGIN IMMEDIATE or BEGIN EXCLUSIVE. Other processes can continue to read from the database, however. An exclusive transaction causes EXCLUSIVE locks to be acquired on all databases. After a BEGIN EXCLUSIVE, no other database connection except for read_uncommitted connections will be able to read the database and no other connection without exception will be able to write the database until the transaction is complete. * Hacky implementation of atomic multi-tx. * Hold the last report, returning the InProgress from each operation. * Rewrite transact in terms of InProgress. * Test rollback. * Remove unused imports. * Don't use Rc for transaction reports. * Pre: break out USER0 as a part boundary constant. * Export TX0 and USER0 from mentat_db. This is for testing. * Review comments: commenting. * Test tempid allocation and rollback.
70 lines
1.3 KiB
TOML
70 lines
1.3 KiB
TOML
[package]
|
|
authors = [
|
|
"Richard Newman <rnewman@twinql.com>",
|
|
"Nicholas Alexander <nalexander@mozilla.com>",
|
|
"Victor Porof <vporof@mozilla.com>",
|
|
"Jordan Santell <jsantell@mozilla.com>",
|
|
"Joe Walker <jwalker@mozilla.com>",
|
|
"Emily Toop <etoop@mozilla.com>",
|
|
]
|
|
name = "mentat"
|
|
version = "0.4.0"
|
|
build = "build/version.rs"
|
|
|
|
[workspace]
|
|
members = ["tools/cli"]
|
|
|
|
[build-dependencies]
|
|
rustc_version = "0.1.7"
|
|
|
|
[dependencies]
|
|
chrono = "0.4"
|
|
error-chain = { git = "https://github.com/rnewman/error-chain", branch = "rnewman/sync" }
|
|
time = "0.1"
|
|
|
|
[dependencies.rusqlite]
|
|
version = "0.12"
|
|
# System sqlite might be very old.
|
|
features = ["bundled", "limits"]
|
|
|
|
[dependencies.edn]
|
|
path = "edn"
|
|
|
|
[dependencies.mentat_parser_utils]
|
|
path = "parser-utils"
|
|
|
|
[dependencies.mentat_core]
|
|
path = "core"
|
|
|
|
[dependencies.mentat_sql]
|
|
path = "sql"
|
|
|
|
[dependencies.mentat_db]
|
|
path = "db"
|
|
|
|
[dependencies.mentat_query]
|
|
path = "query"
|
|
|
|
[dependencies.mentat_query_algebrizer]
|
|
path = "query-algebrizer"
|
|
|
|
[dependencies.mentat_query_parser]
|
|
path = "query-parser"
|
|
|
|
[dependencies.mentat_query_projector]
|
|
path = "query-projector"
|
|
|
|
[dependencies.mentat_query_sql]
|
|
path = "query-sql"
|
|
|
|
[dependencies.mentat_query_translator]
|
|
path = "query-translator"
|
|
|
|
[dependencies.mentat_tx]
|
|
path = "tx"
|
|
|
|
[dependencies.mentat_tx_parser]
|
|
path = "tx-parser"
|
|
|
|
[profile.release]
|
|
debug = true
|