Skip to main content
Module

x/kysely_deno_postgres_dialect/deps.ts>kysely.CamelCasePluginOptions

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.CamelCasePluginOptions
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/deps.ts";
const { CamelCasePluginOptions } = kysely;

Properties

optional
upperCase: boolean

If true, camelCase is transformed into upper case SNAKE_CASE. For example fooBar => FOO_BAR and FOO_BAR => fooBar

Defaults to false.

optional
underscoreBeforeDigits: boolean

If true, an underscore is added before each digit when converting camelCase to snake_case. For example foo12Bar => foo_12_bar and foo_12_bar => foo12Bar

Defaults to false.

optional
underscoreBetweenUppercaseLetters: boolean

If true, an underscore is added between consecutive upper case letters when converting from camelCase to snake_case. For example fooBAR => foo_b_a_r and foo_b_a_r => fooBAR.

Defaults to false.

optional
maintainNestedObjectKeys: boolean

If true, nested object's keys will not be converted to camel case.

Defaults to false.