Skip to main content
Go to Latest
class Model
Re-export
import { Model } from "https://deno.land/x/the@0.0.0.4.2/mod.ts";

Properties

protected
data: TheData[]
protected
DB: database
protected
fillable: string[]
protected
insertid: number
protected
model: string[]
protected
name: string
protected
nullable: string[]
protected
relationship: Record<string, relation>
protected
table: string
Item: Promise<any>

Methods

all()
clean(data: TheData)
cleans(data: TheData[])
create(data: TheData[])
del(where: TheData)
find(value: string | number, key?)
set(table: string)
update(where: TheData, data: TheData)
upsert(where: TheData[])
where(where: TheData)
with(Model: relation[])