Skip to main content
Module

x/kysely_deno_postgres_dialect/deps.ts>kysely.MssqlDialect

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

MS SQL Server dialect that uses the tedious library.

The constructor takes an instance of MssqlDialectConfig.

import * as Tedious from 'tedious'
import * as Tarn from 'tarn'

const dialect = new MssqlDialect({
  tarn: {
    ...Tarn,
    options: {
      min: 0,
      max: 10,
    },
  },
  tedious: {
    ...Tedious,
    connectionFactory: () => new Tedious.Connection({
      authentication: {
        options: {
          password: 'password',
          userName: 'username',
        },
        type: 'default',
      },
      options: {
        database: 'some_db',
        port: 1433,
        trustServerCertificate: true,
      },
      server: 'localhost',
    }),
  },
})

Constructors

new
MssqlDialect(config: MssqlDialectConfig)

Methods

Creates an adapter for the dialect.

Creates a driver for the dialect.

Creates a database introspector that can be used to get database metadata such as the table names and column names of those tables.

db never has any plugins installed. It's created using Kysely.withoutPlugins.

Creates a query compiler for the dialect.