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

x/acai_query/src/abstractions/builder/index.ts>default

A simple modular, scalable query builder that let you toggle strategies to easily, used and created by Açaí Framework
Latest
class default
implements queryInterface
Abstract
import { default } from "https://deno.land/x/acai_query@0.3.0/src/abstractions/builder/index.ts";

Properties

private
buildQueryPart: <ModelConfig = Record<string, string | number | boolean>>(
arg1: keyof ModelConfig | [keyof ModelConfig, QueryComparison | GenericModelContent, GenericModelContent][],
) => [string, string, ModelContent][]
protected
queryBuild: QueryPart
protected
tableName: string
delete: () => unknown
get: <ModelConfig = Record<string, string | number | boolean>>(fields?: (keyof ModelConfig | "*")[]) => Promise<ModelConfig[]>
insert: <ModelConfig = Record<string, string | number | boolean>>(fields: ModelConfig) => unknown
orWhere: () => Query
raw: () => unknown
table: (table: string) => unknown
update: <ModelConfig = Record<string, string | number | boolean>>(fields: ModelConfig) => unknown
where: () => Query

Methods

private
push(type: "and" | "or", subqueries: unknown[])

Static Properties

protected
adapter: QueryStrategy
protected
settings: Record<string, ModelContent>

Static Methods

table(table: string)
toggleAdapter(adapter: QueryStrategy, settings?: Record<string, ModelContent>)
toggleSettings(settings: Record<string, ModelContent>)