From 61f93796393e2b47a92a378ee60adf6272395358 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Tue, 23 Jul 2024 08:47:29 +0200 Subject: [PATCH] adding --- README.md | 7 ++++--- package.json | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 08c33c4..37d23d1 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Functions and Classes for handle sqlite in [Bun](https://bun.sh/). ### getOrCreateSqlite(options = {}) -Options are using default Parameters from [Bun](https://bun.sh/docs/api/sqlite). There -path can be set by .env +Options are using default Parameters from [Bun](https://bun.sh/docs/api/sqlite). Path +to sqlite can set in .env ``` NANO_SQLITE_PATH="./../storage/db.sqlite" @@ -16,7 +16,8 @@ NANO_SQLITE_PATH="./../storage/db.sqlite" or by parameter, ``` -const db = getOrCreateSqlite({ path: './../storage/db.sqlite' }) +const db = getOrCreateSqlite({ uri: './../storage/db.sqlite' }) +const db = getOrCreateSqlite({ uri: ':memory:' }) ``` Per Default WAL mode is enabled. To disable add parameter "wal", diff --git a/package.json b/package.json index d23642f..892e0ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nano/sqlite", - "version": "0.1.0", - "description": "Function for using Sqlite in Bun", + "version": "0.2.0", + "description": "Functions and Classes for handle sqlite in Bun", "repository": { "type": "git", "url": "git@git.node001.net:nano/sqlite.git"