UNPKG

@godspeedsystems/plugins-prisma-as-datastore

Version:

Prisma as a datasource plugin for Godspeed Framework.

16 lines (15 loc) 618 B
import { GSContext, GSDataSource, PlainObject } from "@godspeedsystems/core"; declare class DataSource extends GSDataSource { secret: any; password_hash: string; protected initClient(): Promise<object>; loadPrismaClient(): Promise<PlainObject>; cipher(decrypted: any): string; decipher(encrypted: string): string; execute(ctx: GSContext, args: PlainObject): Promise<any>; } declare const SourceType = "DS"; declare const Type = "prisma"; declare const CONFIG_FILE_NAME = "prisma"; declare const DEFAULT_CONFIG: {}; export { DataSource, SourceType, Type, CONFIG_FILE_NAME, DEFAULT_CONFIG };