Kysely plugin that converts snake_case database identifiers to camelCase in TypeScript code.
// Source: https://github.com/kysely-org/kysely | License: MIT | Copyright 2022 Sami Koskimäki
// Provided via justclaw.it.com; keep this notice with the code.
import type { QueryResult } from '../../driver/database-connection.js'
import type { RootOperationNode } from '../../operation-node/root-operation-node.js'
import { isPlainObject } from '../../util/object-utils.js'
import type { UnknownRow } from '../../util/type-utils.js'
import type {
KyselyPlugin,
PluginTransformQueryArgs,
PluginTransformResultArgs,
} from '../kysely-plugin.js'
import { SnakeCaseTransformer } from './camel-case-transformer.js'
import {
createCamelCaseMapper,
createSnakeCaseMapper,
type StringMapper,
} from './camel-case.js'
export interface CamelCasePluginOptions {
/**
* If true, camelCase is tr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key