New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bun-sqlite-key-value

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-sqlite-key-value - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

test/filesystem.test.ts

2

package.json
{
"name": "bun-sqlite-key-value",
"description": "A key-value store with SQLite that uses bun:sqlite and v8 as a fast Json replacement.",
"version": "1.1.1",
"version": "1.1.2",
"author": "Gerold Penz<gerold@gp-softwaretechnik.at>",

@@ -6,0 +6,0 @@ "module": "src/index.ts",

# Bun SQLite Key Value
A key-value store with SQLite that uses bun:sqlite and v8 as a fast Json replacement.
A key-value store with SQLite that uses bun:sqlite and v8 as a fast JSON replacement.

@@ -17,3 +17,4 @@ The ideas for the implementation come from

Using this cache is dead simple: simply create a new BunSQLiteCache instance and you're set
Using this key value store is dead simple:
simply create a new BunSQLiteKeyValue instance and you're set

@@ -31,1 +32,28 @@ ```typescript

## Documentation
### Open Database
`const store = new BunSQLiteKeyValue([filename], [options])`
- `filename`
The full path of the SQLite database to open.
Pass an empty string (`""`) or `":memory:"` or undefined for an in-memory database.
- `options`
Defaults to `{readwrite: true, create: true}`.
If a number, then it's treated as `SQLITE_OPEN_*` constant flags.
#### Example
```typescript
import { BunSQLiteKeyValue } from "bun-sqlite-key-value";
import {join} from "path"
const store = new BunSQLiteKeyValue();
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc