EntityOperationsContext
Defined in: src/lib/db/entities/operations.ts:7
Properties
allowUnscopedRows?
optionalallowUnscopedRows:boolean
Defined in: src/lib/db/entities/operations.ts:25
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).
database
database:
Database
Defined in: src/lib/db/entities/operations.ts:8
entityCollection
entityCollection:
Collection<EntityModel>
Defined in: src/lib/db/entities/operations.ts:9
memoryEntityCollection
memoryEntityCollection:
Collection<MemoryEntityModel>
Defined in: src/lib/db/entities/operations.ts:10
userId?
optionaluserId:string
Defined in: src/lib/db/entities/operations.ts:16
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.