Skip to main content

Module script

Module script 

Source
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.