From 948162054e1830264e3e21610f9b4b427f0e002e Mon Sep 17 00:00:00 2001 From: Igal Klebanov Date: Fri, 22 Mar 2024 21:40:15 +0200 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 52fcf14..589a22b 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,14 @@ Create a Kysely instance. `src/kysely.ts`: ```ts +import { + CamelCasePlugin, // optional + Kysely, + PostgresAdapter, + PostgresIntrospector, + PostgresQueryCompiler +} from 'kysely' +import { KyselyTypeORMDialect } from 'kysely-typeorm' import type {Database} from './types/database' import {dataSource} from './typeorm' @@ -217,6 +225,6 @@ export const kysely = new Kysely({ typeORMDataSource: dataSource, }), // `CamelCasePlugin` is used to align with `typeorm-naming-strategies`'s `SnakeNamingStrategy`. - plugins: [new CamelCasePlugin()], + plugins: [new CamelCasePlugin()], // optional }) ```