import * as kyselyPostgrsJsDialect from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
Classes
AggregateFunctionBuilder with an alias. The result of calling AggregateFunctionBuilder.as. | |
Allows us to force consumers to do exactly one alteration to a column. | |
This builder can be used to create a | |
A plugin that converts snake_case identifiers in the database into camelCase in the javascript side. | |
This builder can be used to create a | |
Plugin that removes duplicate joins from queries. | |
A basic implementation of | |
A driver that does absolutely nothing. | |
Reads all migrations from a folder in node.js. | |
The result of an insert query. | |
The main Kysely class. | |
A class for running migrations. | |
MS SQL Server dialect that uses the tedious library. | |
MySQL dialect that uses the mysql2 library. | |
A QueryExecutor subclass that can be used when you don't have a QueryCompiler, ConnectionProvider or any other needed things to actually execute queries. | |
Transforms an operation node tree into another one. | |
Parses JSON strings in query results into JSON objects. | |
PostgreSQL dialect that uses the pg library. | |
Provides methods for building database schema. | |
SQLite dialect that uses the better-sqlite3 library. | |
Functions
Use for system-level logging, such as deprecation messages. Logs a message and ensures it won't be logged again. | |
Interfaces
A single connection to the database engine. | |
An expression with an | |
A type that holds an expression and an alias for it. | |
RawBuilder with an alias. The result of calling RawBuilder.as. | |
A single connection to the database engine. | |
An interface for getting the database metadata (names of the tables and columns etc.) | |
A Dialect is the glue between Kysely and the underlying database engine. | |
A | |
A Driver creates and releases DatabaseConnection | database connections and is also responsible for connection pooling (if the dialect supports pooling). | |
| |
Helpers for type safe SQL function calls. | |
All migration methods (Migrator.migrateTo | migrateTo, Migrator.migrateToLatest | migrateToLatest etc.) never throw but return this object instead. | |
Config for the MySQL dialect. | |
This interface is the subset of mysql2 driver's | |
Type for the NO_MIGRATIONS constant. Never create one of these. | |
Config for the PostgreSQL dialect. | |
This interface is the subset of pg driver's | |
This node is basically just a performance optimization over the normal ValueListNode.
The queries often contain large arrays of primitive values (for example in a | |
a | |
This interface abstracts away the details of how to compile a query into SQL
and execute it. Instead of passing around all those details, SelectQueryBuilder
and other classes that execute queries can just pass around and instance of
| |
An instance of this class can be used to create raw SQL snippets or queries. | |
This interface is the subset of better-sqlite3 driver's | |
Config for the SQLite dialect. | |
Type Aliases
Just like AnyColumn but with a | |
Just like AnyColumnWithTable but with a | |
Given a database type and a union of table names in that db, returns a union type with all possible column names. | |
Given a database type and a union of table names in that db, returns
a union type with all possible | |
Turns a SelectCallback into a selection object. | |
This type can be used to specify a different type for select, insert and update operations. | |
Evaluates to | |
A shortcut for defining database-generated columns. The type is the same for all selects, inserts and updates but the column is optional for inserts and updates. | |
A shortcut for defining columns that are only database-generated (like postgres GENERATED ALWAYS AS IDENTITY). No insert/update is allowed. | |
A helper type that allows inferring a select/insert/update/delete query's result type from a query builder or compiled query. | |
Given a table interface, extracts the insert type from all ColumnType types. | |
A shortcut for defining JSON columns, which are by default inserted/updated as stringified JSON strings. | |
Keys of | |
A type constant for marking a column as not null. Can be used with | |
Makes all properties of object type | |
Keys of | |
Like | |
Given a table interface, extracts the select type from all ColumnType types. | |
Turns a SelectExpression or a union of them into a selection object. | |
Represents a database row whose column names and their types are unknown. | |
Given a table interface, extracts the update type from all ColumnType types. | |
Keys of | |