CMS / foldkit-cms-drizzle

CmsServer

namespace · packages/cms-drizzle/src/index.ts:246

const CmsServer = { make }

In the guides

Members

CmsServer.make

function · packages/cms-drizzle/src/index.ts:247

make<User>(config: CmsServerConfig<User>): { sources: readonly EntitySource<Option.Option<User>, DrizzleDatabase>[]; queries: ReadonlyArray<QuerySource<Option.Option<User>, DrizzleDatabase>>; mutations: readonly MutationSource<Option.Option<User>, DrizzleDatabase>[]; due: (at: Date, options: { readonly as: (scheduledBy: string | null) => Option.Option<User>; }) => Effect.Effect<{ readonly entry: string; readonly error: string | null; }[], RemoteServerError, DrizzleDatabase>; import: (item: ImportItem<Option.Option<User>>) => Effect.Effect<{ entry: string; targetId: string; }, RemoteForbidden | RemoteServerError | MutationRefused, DrizzleDatabase>; bindings: { readonly Entry: EntityBinding<"CmsEntry", PgTableWithColumns<{ name: "cms_entries"; schema: undefined; columns: { id: PgBuildColumn<"cms_entries", SetIsPrimaryKey<PgTextBuilder<[string, ...string[]]>>, { name: string; tableName: "cms_entries"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; identity: undefined; generated: undefined; }>; type: PgBuildColumn<"cms_entries", SetNotNull<PgTextBuilder<[string, ...string[]]>>, { name: string; tableName: "cms_entries"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; identity: undefined; generated: undefined; }>; targetId: PgBuildColumn<"cms_entries", PgTex …;