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
- Change the connection so it only manages tables and the `sqlite3` db connection.
- Create `NoSQLiteTable` that manages a specific table.
- Refactor some API names on the `NoSQLiteTable` class.
- Update README.md to reflect the changes and better describe the library.
- Update tests to use new names.
- Bump version to `0.2 ...`
A thin wrapper above sqlite to use it as a nosql database.
7
+
A thin wrapper above sqlite using the [`JSON1`](https://www.sqlite.org/json1.html) apis turn it into a [`NOSQL`](https://en.wikipedia.org/wiki/NoSQL) database.
8
+
9
+
This library references and uses [`SQLitePCLRaw.bundle_e_sqlite3`](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlite3) version `2.1.2` and later witch ensures that the [`JSON1 APIS`](https://www.sqlite.org/json1.html) are present.
10
+
11
+
The library executes `Batteries.Init();` for you when a connection is first initialized.
8
12
9
13
## Getting Started
10
14
11
-
All you need is an instance of `NoSQLiteConnection`. The instance requires a `string` that is a fully qualified path to the database file and you can also optionally provide your own `JsonSerializerOptions` to configure the JSON serialization/deserialization.
15
+
Create an instance of `NoSQLiteConnection`.
16
+
```csharp
17
+
varconnection=newNoSQLiteConnection(
18
+
"path to database file", // Required
19
+
json_options) // Optional JsonSerializerOptions
20
+
```
12
21
13
-
`NoSQLiteConnection` creates and opens a connection when initialized so keep in mind that you will have to dispose it when you are done. Use the `Dispose` method of the `IDisposable interface`.
It works by taking advantage of the [JSON1](https://www.sqlite.org/json1.html) through the [SQLitePCLRaw.bundle_e_sqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlite3) nuget package that forces the correct version of sqlite to manipulate the documents, create indexes and more in the future!
0 commit comments