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

Properties

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

Methods

all()
create(data: TheData[])
del(where: Where[])
filter(data: TheData[])
find(value: string, key?)
set(table: string)
update(where: Where[], data: TheData[])
where(where: Where[])
with(Model: relation[])