EntityOperationsContext
Defined in: src/lib/db/entities/operations.ts:28
Properties
allowUnscopedRows?
optionalallowUnscopedRows:boolean
Defined in: src/lib/db/entities/operations.ts:46
When true, getMemoriesByEntityNamesOp admits rows with
user_id = null alongside the strict userId match. Set this on
LokiJS (web) adapters where the v31 unsafeExecuteSql backfill
is a no-op — pre-v31 rows otherwise become invisible to the W5
lane until backfillMemoryEntityUserIdsOp runs. Default false
(server / SQLite, where the migration backfill is authoritative).
canWrite()?
optionalcanWrite: () =>Promise<boolean>
Defined in: src/lib/db/entities/operations.ts:47
Returns
Promise<boolean>
database
database:
Database
Defined in: src/lib/db/entities/operations.ts:29
entityCollection
entityCollection:
Collection<EntityModel>
Defined in: src/lib/db/entities/operations.ts:30
memoryEntityCollection
memoryEntityCollection:
Collection<MemoryEntityModel>
Defined in: src/lib/db/entities/operations.ts:31
userId?
optionaluserId:string
Defined in: src/lib/db/entities/operations.ts:37
Optional user-scope. When provided, linkMemoryEntitiesOp stamps
user_id on new memory_entity rows and getMemoriesByEntityNamesOp
filters lookups by it. Leave undefined for single-user clients.