ContentStore
Defined in: packages/core/src/cms.ts:805
Content storage abstraction providing CRUD operations for collections. Handles serialization, hashing, and database operations for content data.
Example
Section titled “Example”const contentStore = yield* ContentStore;
// Insert datayield* contentStore.insert("post-1", "posts", postData);
// Retrieve by IDconst post = yield* contentStore.getById("posts", "post-1", PostSchema);
// Get all itemsconst allPosts = yield* contentStore.getAll("posts", PostSchema);Extends
Section titled “Extends”TagClassShape<"ContentStore", {getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; },this>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ContentStore(
_):ContentStore
Defined in: node_modules/effect/dist/dts/Context.d.ts:109
Parameters
Section titled “Parameters”never
Returns
Section titled “Returns”ContentStore
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().constructor
Properties
Section titled “Properties”[TagTypeId]
Section titled “[TagTypeId]”
readonly[TagTypeId]: typeofTagTypeId
Defined in: node_modules/effect/dist/dts/Context.d.ts:100
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[TagTypeId]
Id:
"ContentStore"
Defined in: node_modules/effect/dist/dts/Context.d.ts:99
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().Id
readonlyType:object
Defined in: node_modules/effect/dist/dts/Context.d.ts:101
getAll()
Section titled “getAll()”getAll: <
T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
getById()
Section titled “getById()”getById: <
T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<Option<T["Type"]>, ContentStoreError>
insert()
Section titled “insert()”insert: <
T>(id,collection,data) =>Effect<void,ContentStoreError,never>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
collection
Section titled “collection”string
T["Type"]
Returns
Section titled “Returns”Effect<void, ContentStoreError, never>
query()
Section titled “query()”query: <
T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().Type
readonlystatic_op:"Tag"
Defined in: node_modules/effect/dist/dts/Context.d.ts:33
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >()._op
[ChannelTypeId]
Section titled “[ChannelTypeId]”
readonlystatic[ChannelTypeId]:VarianceStruct<never,unknown,never,unknown, {getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; },unknown,ContentStore>
Defined in: node_modules/effect/dist/dts/Channel.d.ts:108
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[ChannelTypeId]
[EffectTypeId]
Section titled “[EffectTypeId]”
readonlystatic[EffectTypeId]:VarianceStruct<{getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; },never,ContentStore>
Defined in: node_modules/effect/dist/dts/Effect.d.ts:195
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[EffectTypeId]
[ignoreSymbol]?
Section titled “[ignoreSymbol]?”
staticoptional[ignoreSymbol]:TagUnifyIgnore
Defined in: node_modules/effect/dist/dts/Context.d.ts:46
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[ignoreSymbol]
[SinkTypeId]
Section titled “[SinkTypeId]”
readonlystatic[SinkTypeId]:VarianceStruct<{getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; },unknown,never,never,ContentStore>
Defined in: node_modules/effect/dist/dts/Sink.d.ts:82
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[SinkTypeId]
[STMTypeId]
Section titled “[STMTypeId]”
readonlystatic[STMTypeId]:object
Defined in: node_modules/effect/dist/dts/STM.d.ts:136
readonly_A:Covariant<{getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; }>
readonly_E:Covariant<never>
readonly_R:Covariant<ContentStore>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[STMTypeId]
[StreamTypeId]
Section titled “[StreamTypeId]”
readonlystatic[StreamTypeId]:VarianceStruct<{getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; },never,ContentStore>
Defined in: node_modules/effect/dist/dts/Stream.d.ts:111
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[StreamTypeId]
[TagTypeId]
Section titled “[TagTypeId]”
readonlystatic[TagTypeId]:object
Defined in: node_modules/effect/dist/dts/Context.d.ts:36
_Identifier
Section titled “_Identifier”
readonly_Identifier:Invariant<ContentStore>
_Service
Section titled “_Service”
readonly_Service:Invariant<{getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; }>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[TagTypeId]
[typeSymbol]?
Section titled “[typeSymbol]?”
staticoptional[typeSymbol]:unknown
Defined in: node_modules/effect/dist/dts/Context.d.ts:44
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[typeSymbol]
[unifySymbol]?
Section titled “[unifySymbol]?”
staticoptional[unifySymbol]:TagUnify<TagClass<ContentStore,"ContentStore", {getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; }>>
Defined in: node_modules/effect/dist/dts/Context.d.ts:45
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[unifySymbol]
Identifier
Section titled “Identifier”
readonlystaticIdentifier:ContentStore
Defined in: node_modules/effect/dist/dts/Context.d.ts:35
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().Identifier
readonlystatickey:"ContentStore"
Defined in: node_modules/effect/dist/dts/Context.d.ts:110
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().key
Service
Section titled “Service”
readonlystaticService:object
Defined in: node_modules/effect/dist/dts/Context.d.ts:34
getAll()
Section titled “getAll()”getAll: <
T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
getById()
Section titled “getById()”getById: <
T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<Option<T["Type"]>, ContentStoreError>
insert()
Section titled “insert()”insert: <
T>(id,collection,data) =>Effect<void,ContentStoreError,never>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
collection
Section titled “collection”string
T["Type"]
Returns
Section titled “Returns”Effect<void, ContentStoreError, never>
query()
Section titled “query()”query: <
T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().Service
stack?
Section titled “stack?”
readonlystaticoptionalstack:string
Defined in: node_modules/effect/dist/dts/Context.d.ts:42
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().stack
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”
static[iterator]():EffectGenerator<Tag<ContentStore, {getAll: <T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>;getById: <T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>;insert: <T>(id,collection,data) =>Effect<void,ContentStoreError,never>;query: <T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>; }>>
Defined in: node_modules/effect/dist/dts/Effect.d.ts:137
Returns
Section titled “Returns”EffectGenerator<Tag<ContentStore, { getAll: <T>(collection, schema) => Effect<readonly T["Type"][], ContentStoreError>; getById: <T>(collection, id, schema) => Effect<Option<T["Type"]>, ContentStoreError>; insert: <T>(id, collection, data) => Effect<void, ContentStoreError, never>; query: <T>(sql, schema) => Effect<readonly T["Type"][], ContentStoreError>; }>>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[iterator]
[NodeInspectSymbol]()
Section titled “[NodeInspectSymbol]()”
static[NodeInspectSymbol]():unknown
Defined in: node_modules/effect/dist/dts/Inspectable.d.ts:22
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().[NodeInspectSymbol]
context()
Section titled “context()”
staticcontext(self):Context<ContentStore>
Defined in: node_modules/effect/dist/dts/Context.d.ts:41
Parameters
Section titled “Parameters”getAll
Section titled “getAll”<T>(collection, schema) => Effect<readonly T["Type"][], ContentStoreError>
getById
Section titled “getById”<T>(collection, id, schema) => Effect<Option<T["Type"]>, ContentStoreError>
insert
Section titled “insert”<T>(id, collection, data) => Effect<void, ContentStoreError, never>
<T>(sql, schema) => Effect<readonly T["Type"][], ContentStoreError>
Returns
Section titled “Returns”Context<ContentStore>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().context
staticof(self):object
Defined in: node_modules/effect/dist/dts/Context.d.ts:40
Parameters
Section titled “Parameters”getAll
Section titled “getAll”<T>(collection, schema) => Effect<readonly T["Type"][], ContentStoreError>
getById
Section titled “getById”<T>(collection, id, schema) => Effect<Option<T["Type"]>, ContentStoreError>
insert
Section titled “insert”<T>(id, collection, data) => Effect<void, ContentStoreError, never>
<T>(sql, schema) => Effect<readonly T["Type"][], ContentStoreError>
Returns
Section titled “Returns”object
getAll()
Section titled “getAll()”getAll: <
T>(collection,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
getById()
Section titled “getById()”getById: <
T>(collection,id,schema) =>Effect<Option<T["Type"]>,ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends AnySchema
Parameters
Section titled “Parameters”collection
Section titled “collection”string
string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<Option<T["Type"]>, ContentStoreError>
insert()
Section titled “insert()”insert: <
T>(id,collection,data) =>Effect<void,ContentStoreError,never>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
collection
Section titled “collection”string
T["Type"]
Returns
Section titled “Returns”Effect<void, ContentStoreError, never>
query()
Section titled “query()”query: <
T>(sql,schema) =>Effect<readonlyT["Type"][],ContentStoreError>
Type Parameters
Section titled “Type Parameters”T extends Struct<any>
Parameters
Section titled “Parameters”string
schema
Section titled “schema”T
Returns
Section titled “Returns”Effect<readonly T["Type"][], ContentStoreError>
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().of
pipe()
Section titled “pipe()”Call Signature
Section titled “Call Signature”
staticpipe<A>(this):A
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:10
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”A
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B>(this,ab):B
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:11
Type Parameters
Section titled “Type Parameters”A
B = never
Parameters
Section titled “Parameters”A
(_) => B
Returns
Section titled “Returns”B
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C>(this,ab,bc):C
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:12
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
Returns
Section titled “Returns”C
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D>(this,ab,bc,cd):D
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:13
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
Returns
Section titled “Returns”D
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E>(this,ab,bc,cd,de):E
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:14
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
Returns
Section titled “Returns”E
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F>(this,ab,bc,cd,de,ef):F
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:15
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
Returns
Section titled “Returns”F
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G>(this,ab,bc,cd,de,ef,fg):G
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:16
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
Returns
Section titled “Returns”G
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H>(this,ab,bc,cd,de,ef,fg,gh):H
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:17
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
Returns
Section titled “Returns”H
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I>(this,ab,bc,cd,de,ef,fg,gh,hi):I
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:18
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
Returns
Section titled “Returns”I
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J>(this,ab,bc,cd,de,ef,fg,gh,hi,ij):J
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:19
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
Returns
Section titled “Returns”J
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk):K
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:20
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
Returns
Section titled “Returns”K
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl):L
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:21
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
Returns
Section titled “Returns”L
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm):M
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:22
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
Returns
Section titled “Returns”M
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn):N
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:23
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
Returns
Section titled “Returns”N
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no):O
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:24
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
Returns
Section titled “Returns”O
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op):P
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:25
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
Returns
Section titled “Returns”P
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq):Q
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:26
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
Returns
Section titled “Returns”Q
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq,qr):R
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:27
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
R = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
(_) => R
Returns
Section titled “Returns”R
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq,qr,rs):S
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:28
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
R = never
S = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
(_) => R
(_) => S
Returns
Section titled “Returns”S
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq,qr,rs,st):T
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:29
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
R = never
S = never
T = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
(_) => R
(_) => S
(_) => T
Returns
Section titled “Returns”T
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq,qr,rs,st,tu):U
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:30
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
R = never
S = never
T = never
U = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
(_) => R
(_) => S
(_) => T
(_) => U
Returns
Section titled “Returns”U
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
Call Signature
Section titled “Call Signature”
staticpipe<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U>(this,ab,bc,cd,de,ef,fg,gh,hi,ij,jk,kl,lm,mn,no,op,pq,qr,rs,st,tu):U
Defined in: node_modules/effect/dist/dts/Pipeable.d.ts:31
Type Parameters
Section titled “Type Parameters”A
B = never
C = never
D = never
E = never
F = never
G = never
H = never
I = never
J = never
K = never
L = never
M = never
N = never
O = never
P = never
Q = never
R = never
S = never
T = never
U = never
Parameters
Section titled “Parameters”A
(_) => B
(_) => C
(_) => D
(_) => E
(_) => F
(_) => G
(_) => H
(_) => I
(_) => J
(_) => K
(_) => L
(_) => M
(_) => N
(_) => O
(_) => P
(_) => Q
(_) => R
(_) => S
(_) => T
(_) => U
Returns
Section titled “Returns”U
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().pipe
toJSON()
Section titled “toJSON()”
statictoJSON():unknown
Defined in: node_modules/effect/dist/dts/Inspectable.d.ts:21
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().toJSON
toString()
Section titled “toString()”
statictoString():string
Defined in: node_modules/effect/dist/dts/Inspectable.d.ts:20
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Context.Tag("ContentStore")< ContentStore, { query: <T extends Schema.Struct<any>>( sql: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; insert: <T extends Schema.Struct<any>>( id: string, collection: string, data: T["Type"], ) => Effect.Effect<void, ContentStoreError, never>; getById: <T extends AnySchema>( collection: string, id: string, schema: T, ) => Effect.Effect<Option.Option<T["Type"]>, ContentStoreError>; getAll: <T extends AnySchema>( collection: string, schema: T, ) => Effect.Effect<readonly T["Type"][], ContentStoreError>; } >().toString