Skip to main content
Module

x/cookie_driver/mod.ts>CookieDB#select

A fast and correct cookiedb driver for deno
Go to Latest
method CookieDB.prototype.select
import { CookieDB } from "https://deno.land/x/cookie_driver@0.1.0/mod.ts";

Selects a number of documents from a table. Accepts an options argument that specifies the maximum amount of results, whether to display keys, and whether to join documents by foreign keys.

Examples

Example 1

await cookieDB.select('users', {
 name: 'starts_with($, "cookie")'
}, {
 maxResults: 5,
 showKeys: true
})

Parameters

table: string
query: Query | Query[]
optional
options: { maxResults?: number; showKeys?: boolean; expandKeys?: boolean; }

Returns

Promise<any[]>