Expand description
Running a file of statements, and the atomic block.
Cutting a file into its statements is super::script_split; this module
takes the pieces it produced and runs them.
§What escapes an atomic block
A statement that defines an object confirms itself on this server, so a block cannot undo it. Such a statement therefore always produces a notice of escape: the caller asked for all or nothing, and this part is neither.
Re-exports§
pub use super::script_split::split;pub use super::script_split::validate_delimiter;pub use super::script_split::Piece;pub use super::script_split::Statements;
Structs§
- Run
- Everything running one statement of a file takes.
Constants§
- BEGIN_
BLOCK - The statement that opens an atomic block.
- CONFIRM_
BLOCK - The statement that confirms an atomic block.
- FILE_
COLUMNS - The columns a run of a file announces, one record per statement.
- UNDO_
BLOCK - The statement that undoes an atomic block.
Functions§
- confirm_
changes - Confirms changes this invocation already sent, so they outlive the process.
- escape_
notice - The notice one escaping statement produces.
- escapes_
block - Whether a statement escapes an atomic block.
- gate_
block - Admits every statement of a block and declares the ones that escape it.
- one_
of_ many - Runs one statement of a file or a block and says what it did.
- run_
block - Runs statements together, so they are confirmed or undone as one.
- run_
file - Runs a file of statements, stopping at the first one that fails.
- stream_
file - Runs a file of statements, writing each record as its statement finishes.