Skip to main content
Version: 3.0 Alpha

API Reference

@zenstackhq/runtime​

class ZenStackClient​

/**
* ZenStack ORM client.
*/
export const ZenStackClient = function <Schema extends SchemaDef>(
this: any,
schema: Schema,
options: ClientOptions<Schema>,
);

/**
* ZenStack client options.
*/
export type ClientOptions<Schema extends SchemaDef> = {
/**
* Kysely dialect.
*/
dialect: Dialect;

/**
* Plugins.
*/
plugins?: RuntimePlugin<Schema>[];

/**
* Logging configuration.
*/
log?: KyselyConfig['log'];

// only required when using computed fields
/**
* Computed field definitions.
*/
computedFields: ComputedFieldsOptions<Schema>;
};
Comments
Feel free to ask questions, give feedback, or report issues.

Don't Spam


You can edit/delete your comments by going directly to the discussion, clicking on the 'comments' link below