Releases: andrewdku/node-sqlite-kv
Releases · andrewdku/node-sqlite-kv
v1.1.0
23 Mar 22:23
Compare
Sorry, something went wrong.
No results found
Added setnx() method
Fixed npm included files
v1.0.0
23 Mar 12:31
Compare
Sorry, something went wrong.
No results found
undefined is now returned if a value doesn't exist, instead of null
Added KVSync#size(), KVSync#keys(), and KVSync#values() methods
Added open option to KVSyncProps
Added the option to set a custom table name (overriding the default of kv)
Fixed issues with the database's open/closed state
Renamed journalModes to JournalModes
Renamed KVSyncOptions to KVSyncProps
v0.4.0
06 Feb 22:27
Compare
Sorry, something went wrong.
No results found
Ability to manually open/close the database
journalModes turned into an enum (as const object) rather than an array
Refined KVSync-specific errors and error messages
Updated default journal mode (WAL for persistent KVs, DELETE for in-memory)
Fixes for transactions not properly working
v0.3.1
02 Feb 19:48
Compare
Sorry, something went wrong.
No results found
Fixed transactions not working properly
KVSync#set() no longer accepts undefined values (use KVSync#delete())
v0.3.0
02 Feb 19:06
Compare
Sorry, something went wrong.
No results found
Fixed issues with KVSync#set() not accepting falsy values
Fixed transaction instance not fully mirroring KVSync
Updated error messages
Updated JSDoc
v0.2.2
01 Feb 16:47
Compare
Sorry, something went wrong.
No results found
Fix errors regarding nonexistent database files
v0.2.1
01 Feb 14:55
Compare
Sorry, something went wrong.
No results found
Added transactions via KVSync#transaction()
Updated KV options & added journal modes
v0.1.0
01 Feb 11:27
Compare
Sorry, something went wrong.
No results found
Usage example:
import { KVSync } from "node-sqlite-kv" ;
const kv = new KVSync ( ":memory:" ) ;
kv . set ( "key" , "value" ) ;
kv . get ( "key" ) ; // value
kv . all ( ) ; // [{ key: "key", value: "value" }]
kv . delete ( "key" ) ;
kv . clear ( ) ;