You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,21 @@ While it can run any query asychronously, it currently only supports the followi
26
26
27
27
## Queries
28
28
29
+
### Base Options
30
+
`{ file?: string, table?: string }`
31
+
32
+
Any query can be run with the `file` option, which represents the relative path to a database file. The database will be accessed dynamically during the query and will only remain open until its resolution. This is ideal for avoiding the clutter of synchronously accessing a database when only a single query needs to be run.
33
+
34
+
```javascript
35
+
// No need to call db.open('./database.db') or db.close(). This query will handle that itself!
0 commit comments