@agastyagaur/gogaur-sdk
v1.0.4
Published
SDK for interacting with godb database
Readme
Gogaur SDK
A simple SDK for interacting with gogaur database.
Installation
npm install @agastyagaur/gogaur-sdkUsage
import { GogaurSDK } from '@agastyagaur/gogaur-sdk';
const kvstore = new GogaurSDK('http://localhost:8080');
// Set a value
await kvstore.set('key', 'value');
// Get a value
const result = await kvstore.get('key');
// Delete a value
const deleteResult = await kvstore.delete('key');API
new GogaurSDK(baseURL: string)
Creates a new instance of the SDK.
set(key: string, value: string): Promise<GodbResponse>
Sets a key-value pair in the store.
get(key: string): Promise<GodbResponse>
Retrieves a value by key from the store.
delete(key: string): Promise<GodbResponse>
Deletes a value by key from the store.
