1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! This module defines the lifecycle of everything that happens in a document.
//! A document is a row that has the following:
//! - `Thing`: name of the table and ID of the record
//! - `current`: value after the transaction
//! - `initial`: value before the transaction
//! - `id`: traditionally an integer but can be an object or collection such as an array
pub use *;
// The entry point for a document to be processed
// The point at which a document is processed
// The point at which a document is processed
// Processes a CREATE statement for this document
// Processes a DELETE statement for this document
// Processes a INSERT statement for this document
// Processes a RELATE statement for this document
// Processes a SELECT statement for this document
// Processes a UPDATE statement for this document
// Checks whether the query can access this document
// Modifies and updates the fields in this document
// Processes any change feeds relevant for this document
// Checks whether the WHERE clauses matches this document
// Ensures records adhere to the table schema
// Attempts to store the edge data for this document
// Checks whether the specified document actually exists
// Removes all content and field data for this document
// Processes any table events relevant for this document
// Processes any schema-defined fields for this document
// Attempts to store the index data for this document
// Processes any live queries relevant for this document
// Merges any field changes for an INSERT statement
// Pulls the projected expressions from the document
// Deletes this document, and any edges or indexes
// Resets internal fields which were set for this document
// Writes the document content to the storage engine
// Processes any foreign tables relevant for this document