Skip to main content
Module

x/textdb/mod.ts>TextDB

Use Textdb from Deno
Latest
class TextDB
import { TextDB } from "https://deno.land/x/textdb@0.1.2/mod.ts";

TextDB class. Put and get text data using TextDB.

Constructors

new
TextDB(pageID: string)

TextDB constructor

Properties

readonly
endpoint: string

DB api endpoint

Methods

clear(): Promise<boolean>

clear saved data

get(): Promise<string | undefined>

get data from TextDB it returns undefined when the connection failed

put(data: string): Promise<boolean>

put data into TextDB the saved data is replaced, not appended