applyEdits | A journal's apply for foldkit-sync's editsJournal: one committed cell edit, written to its column with the sequence it committed at as the row's revision,… |
bind | Binds every Entity of an Entity.relate result to its table in one step, so a relation's target binding can be one that is declared after its owner. |
buildPage | |
checkConstraints | The CHECKs a binding's Entity implies, as clauses for a migration written in SQL, and the rules no CHECK holds, which only the server's writes do: |
checkFields | Every field the body reads has a column here, every operation it needs is one this compiler runs, and every order it may take (each Order.chosen alternative… |
collatedColumn | The column under the term's collation, and a cursor value made comparable to it; none when the column compares as it is (no collation, or binary on a… |
compileCall | One call of a primitive operator as SQL, by the binding's table, its arguments compiled and cast as in a body: what a conformance check selects to ask the… |
compileCheckPredicates | compilePredicates for a CHECK: its literals are inlined, so they are not cast. |
compileOrderBy | The body's ordering for one input, as this package's order terms: a chosen order resolved to the field or call the input names, a call compiled to its SQL… |
compilePredicates | Predicates with no body around them, as SQL fragments: an invariant's, say. entity is the Entity the row is, where a predicate goes through a relation. |
compileWhere | The body's predicates, as the SQL fragments this request needs. Each is separate: the caller conjoins them with whatever else applies, so a body cannot… |
computationSql | A computed assignment, as data, as the SQL that writes it: a field its column, a value a parameter, a call by the binding's SQL operators. What writer sets,… |
contextOverwrites | Why write cannot land through binding: each member it writes that is stored on the column of a member its Entity sets from the context. The Entity refuses… |
contextSharers | Each member stored on the column of a member Entity.sets names, that is not set itself: the server writes the context's value to that column, and a write of… |
cursorSelection | base and each term's key under an alias of its own, to select beside a row: an expression has no name, and two columns may share one. A key already in base,… |
databaseLayer | Provides a Drizzle database as the DrizzleDatabase service. Any Drizzle database qualifies; the cast is confined here because its builder is generic over… |
entity | |
entityChecks | The CHECKs an Entity implies, as Drizzle check()s for its table's own definition, so drizzle-kit writes them into the migration that makes it: |
idColumn | |
idCursor | A cursor naming the row a page ended on by its id, for an order whose key values JSON cannot carry: keyed as keyCursor's are, so an id beginning as a keyed… |
keyCursor | A cursor holding the order's key values at the row a page ended on, the id among them: where the page ended, whatever that row does after. None when a value… |
keysetWhere | (a CMP A) OR (a = A AND b CMP B) OR ... — the lexicographic predicate that keeps a page contiguous under a multi-column order. forward selects rows after… |
keysOf | The values a row selected with cursorSelection holds, in the terms' order. |
lockParents | Lock parentIds on table in ascending id order using SELECT ... FOR UPDATE. Returns the sorted ids that were locked. |
many | |
manyToMany | |
normalize | Maps rows a mutation returned (e.g. Drizzle returning) to entity patches, rewriting a one relation's foreign key to its ref key. fields is the set of… |
operatorProblems | As requireOperators, each problem a sentence, for a check that gathers them. |
operatorsFrom | |
orderByTerms | The ORDER BY for a traversal, nulls placed as the term says: backward reverses each term, its nulls with it. |
pollLive | A live source that polls from inside the subscriber's own request. Each tick reads the subscribed rows again through the entity's source as a read answers… |
projectsAny | Whether at least one requested field maps to a column, relation, or computed value. |
query | A RemoteServer.query source over a keyset-paginated table. The connection's cursor is the row identity; a requested cursor's ordering tuple is re-read… |
queryPlans | Each page the sources read for these inputs, a first and a later one, as the database plans it, for every order a body offers its reader. Run it in a test… |
reachedEntities | Every Entity a body's paths and exists reach, once each: the tables whose visible a request resolves for its reader before compiling (visibleOf). |
readCursor | What a cursor says: the key values a keyed one holds, checked against the order it pages (a client sends it, so nothing is trusted that is not one of these… |
reader | A pruned reader backed by an injected executor. Use it when the database is not an Effect service, or to test the projection without one. |
requireOperators | Refuses expressions needing an operation or operator the binding cannot run: in SQL, or in memory, where a predicate over the input alone is decided and a… |
revisionTrigger | The SQL that makes a database move binding's revision on every update that does not move it itself: a handler's, applyEdits', raw SQL. A guarded writer… |
rowChangeLog | The SQLite statements (D1's dialect) that keep a log of the rows each write to binding's table touched, in order, for rowLog to read: a table, and triggers… |
rowLog | The log rowChangeLog keeps for binding, read through DrizzleDatabase, at most batch entries a tick (default 500); the rest wait for the next. |
runStatement | A statement, failing as a RemoteServerError whose message is failed and whose cause is the driver's error. That error carries the SQL and its parameters: it… |
selectColumns | The column map for the requested scalar and relation fields. The primary key is always selected: normalization needs it even when the client did not ask for… |
shapeWindow | |
sortParentIds | Deduplicate and sort parent ids in deterministic ascending code-unit order. |
sortTerms | The order a client asked for, as order terms. sort names one of the orders the server offers, never a column: columns is the server's say in what each name… |
source | A RemoteServer.entity source backed by the DrizzleDatabase service. It selects the requested columns in one batch, then resolves each selected relation: a… |
toQueryPage | |
whereIds | A whole id batch as one IN (...) — the normalized-store advantage. |
withParentLock | Run body inside a Postgres transaction that first locks parentIds on table in ascending id order (SELECT ... FOR UPDATE), preventing deadlocks across… |
writer | |