Skip to main content
Latest
class database
import { database } from "https://deno.land/x/the@0.0.1.0.3/src/DB.ts";

Constructors

new
database(
table: string,
fillable?: string[],
col?: string,
)

Properties

protected
__where: Record<string, any>
protected
enable: boolean | null
protected
field: any
protected
limit: number
protected
offset: number
protected
param: string[]
protected
placeholder: any[]
protected
query: string
rows: any

Methods

bindwhere(data: any, join?: "AND" | "OR")
create(data: TheData[])
delete(where: TheData)
exe()
find(where: TheData, limit?)
findQ(value: any, key?)
first(): Promise<_model>
get(n?: number)
insert(data: TheData[])
InsertQ(data: TheData[])
LimitQ(limit: number)
OffsetQ(Offset: number)
raw(sql: string, bind?)
rawsql(sql: string)
SelSet(col?: string[])
upsert(data: TheData[])
UpsertQ(data: TheData[])
where(where: TheData)
WhereCustomQ(where: any[], type?: "AND" | "OR")
WhereQ(where: TheData, type?: "AND" | "OR")