From 37246fdf1e6fc28a484b749456f4ebab85cd49a0 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Sun, 29 Oct 2023 06:29:26 +0100 Subject: [PATCH] docs: fix API usage in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 745218b..8a63e34 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ TypeORM is officially supported, however, there is currently a parsing issue wit ```typescript import {open} from 'react-native-quick-sqlite' -const db = open('myDb.sqlite') +const db = open({ name: 'myDb.sqlite' }); // The db object now contains the following methods: @@ -57,7 +57,7 @@ The basic query is **synchronous**, it will block rendering on large operations, import { open } from 'react-native-quick-sqlite'; try { - const db = open('myDb.sqlite'); + const db = open({ name: 'myDb.sqlite' }); let { rows } = db.execute('SELECT somevalue FROM sometable');