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

x/typeorm/src/driver/DriverUtils.ts>DriverUtils

Forked from https://github.com/typeorm/typeorm
Latest
class DriverUtils
import { DriverUtils } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/driver/DriverUtils.ts";

Common driver utility functions.

Static Methods

private
parseConnectionUrl(url: string)

Extracts connection data from the connection url.

buildColumnAlias(
unnamed 0: Driver,
alias: string,
column: string,
): string

Builds column alias from given alias name and column name.

If alias length is greater than the limit (if any) allowed by the current driver, replaces it with a hashed string.

buildDriverOptions(options: any, buildOptions?: { useSid: boolean; }): any

Normalizes and builds a new driver options. Extracts settings from connection url and sets to a new options object.

isAutoSavable(driver: Driver): driver is AutoSavableDriver