Skip to main content
Module

x/aloedb/lib/cursor.ts>Cursor

Light, Embeddable, NoSQL database for Deno 🦕
Go to Latest
class Cursor
import { Cursor } from "https://deno.land/x/aloedb@0.1.0/lib/cursor.ts";

Constructors

new
Cursor(
documents: Schema[],
)

Type Parameters

optional
Schema extends Acceptable<Schema> = Document

Properties

private
readonly
config: DatabaseConfig

Database configuration.

private
readonly
documents: Schema[]

Documents storage.

private
methods: CursorMethods[]

Methods to execute.

private
readonly
query: SearchQuery<Schema>

Main search query.

Methods

private
execute(): number[]
private
filter_execute(): void
private
reverse_execute(): void
count(): Promise<number>
filter(query: any): this
getMany(): Promise<Schema[]>
getOne(): Promise<Schema | null>
limit(number: number): this
reverse(): this
skip(number: number): this
sort(query: any): this