Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drizzle/sql.ts>SQL

Deno port of the drizzle-orm library
Latest
namespace SQL
import { SQL } from "https://deno.land/x/drizzle@v0.23.85/sql.ts";
class SQL
implements SQLWrapper
import { SQL } from "https://deno.land/x/drizzle@v0.23.85/sql.ts";

Constructors

new
SQL(queryChunks: SQLChunk[])

Type Parameters

optional
T = unknown

Properties

private
mapInlineParam
private
shouldInlineParams
_: { brand: "SQL"; type: T; }
readonly
queryChunks: SQLChunk[]

Methods

append(query: SQL): this
as(alias: string): SQL.Aliased<T>
deprecated
as<TData>(): SQL<TData>
deprecated
as<TData>(alias: string): SQL.Aliased<TData>
inlineParams(): this
mapWith<TDecoder extends DriverValueDecoder<any, any> | DriverValueDecoder<any, any>["mapFromDriverValue"]>(decoder: TDecoder): SQL<GetDecoderResult<TDecoder>>