All Projects → OwOland → deno-keyv

OwOland / deno-keyv

Licence: MIT License
A simple, easy to use key-value database wrapper for Deno

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to deno-keyv

D2sqlite3
A small wrapper around SQLite for the D programming language
Stars: ✭ 67 (+318.75%)
Mutual labels:  wrapper, sqlite
Rusqlite
Ergonomic bindings to SQLite for Rust
Stars: ✭ 1,008 (+6200%)
Mutual labels:  wrapper, sqlite
elixir-queue
Queue data structure for Elixir-lang
Stars: ✭ 18 (+12.5%)
Mutual labels:  wrapper
django-db-benchmark
Comparing Database performance with Django ORM
Stars: ✭ 17 (+6.25%)
Mutual labels:  sqlite
sqlite-generate
Tool for generating demo SQLite databases
Stars: ✭ 20 (+25%)
Mutual labels:  sqlite
tailspin
Site generator and design system in one
Stars: ✭ 19 (+18.75%)
Mutual labels:  deno
acinerella
FFmpeg wrapper library for audio/video decoding
Stars: ✭ 18 (+12.5%)
Mutual labels:  wrapper
pastebin-csharp
API client for Pastebin in C#
Stars: ✭ 25 (+56.25%)
Mutual labels:  wrapper
kopo-cli
🐶 A Deno registry browser in the terminal
Stars: ✭ 15 (-6.25%)
Mutual labels:  deno
gpgme
GPGme bindings for Rust
Stars: ✭ 55 (+243.75%)
Mutual labels:  wrapper
Jikan4java
Kotlin wrapper for Jikan, an myanimelist api
Stars: ✭ 27 (+68.75%)
Mutual labels:  wrapper
deno notify
Send desktop notifications on all platforms in Deno
Stars: ✭ 27 (+68.75%)
Mutual labels:  deno
Dis-Snek
A Python API wrapper for Discord
Stars: ✭ 71 (+343.75%)
Mutual labels:  wrapper
dvm
A lightweight, and powerful Deno Version Manager for Linux/macOS.
Stars: ✭ 21 (+31.25%)
Mutual labels:  deno
doa
A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Stars: ✭ 20 (+25%)
Mutual labels:  deno
run exclusive
⚡🔒 Wait queue for function execution 🔒 ⚡
Stars: ✭ 22 (+37.5%)
Mutual labels:  deno
node-latex
🧾 A utility for running LaTeX subprocesses in Node.
Stars: ✭ 31 (+93.75%)
Mutual labels:  wrapper
SoundCloud-API
SoundCloud API wrapped into a bunch of classes. Built with Retrofit2 and RxJava2.
Stars: ✭ 63 (+293.75%)
Mutual labels:  wrapper
Scrython
A python wrapper for the Scryfall API
Stars: ✭ 87 (+443.75%)
Mutual labels:  wrapper
python-lsm-db
Python bindings for the SQLite4 LSM database.
Stars: ✭ 115 (+618.75%)
Mutual labels:  sqlite

Deno Keyv

Keyv is a simple and lightweight, easy to use database wrapper made for the Javascript runtime envoirement, Deno. The wrapper is designed for quick setup and fast results.

Why Keyv?

  • Simple and easy to use.
  • Very fast results
  • Data doesnt disappear after restarts
  • Beginner Friendly
  • Supports dot notation. And much more!

Usage

  • Stable import { DB } from "https://deno.land/x/mod.ts";
  • Main import { DB } from "https://raw.githubusercontent.com/OwOland/deno-keyv/main/mod.ts"; Main may contain bugs

Examples

// ================USE THE FOLLOWING FOR SQLITE=======================
import { DB } from "https://deno.land/x/keyv/mod.ts";

// Need to make a new file called `db.sqlite` in your folder.
// The second value is the name of the database.. You can name is anything you want
const db = new DB("db.sqlite", "userinfo");

// Important line to write before doing any operations!
db.init();

// ================USE THE FOLLOWING FOR PostgreSQL=======================
import {PostgresProvider} from "https://deno.land/x/keyv/mod.ts";

const db = new PostgresProvider("userinfo", "username", "database", "hostname", "password");
await db.init();



// Set an object in the database.
//            Key           Value
await db.set("user", { name: "Alex" });
// Data -> 'user': { 'name': 'Alex' }

await db.set("user.gender", "male");
// Data -> 'user': { 'name': 'Alex', 'gender': 'male' }

await db.set("user.age", 33);
// Data -> 'user': { 'name': 'Alex', 'gender': 'male', 'age': 33}

// Getting the data from the database
const data = await db.get("user");
console.log(data);
// Output -> { 'name': 'Alex', 'gender': 'male', 'age': 33}

const age = await db.get("user.age");
console.log(age);
// Output -> 33

Docs

View Documentation Here

Support

If you need help regarding the wrapper, feel free to open a issue or ask in the Help discussions category on github. You can also DM me on discord Tejas#9134.

Contributing

Pull Requests are always welcome. Just make sure to open a issue and inform us what you are working so that we can confirm if we want it in the repository or not.

  • We use deno fmt for formatting our files. We recommend you use it too if you wish to contribute.
  • Please do not add any more third party modules to the library without confirming with us first.

Made with by Tejas Agarwal MIT License. Copyright 2021 All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].