1- # SQLiter User Library
1+ # SQLager User Library
22
33A simple and reasonably safe sqlite library. The design goal is to make a simple library that manages
4- access to sqlite and keep the lifecycle in check. Where the base SQLiter library is intended for
4+ access to sqlite and keep the lifecycle in check. Where the base SQLiter library is intended for
55other libraries to use and gives pretty direct access to the sqlite C API, this library intends to
66be the opposite.
77
8- The basic design is that the library doesn't let you hold onto sqlite resources. Most interaction
8+ The basic design is that the library doesn't let you hold onto sqlite resources. Most interaction
99is through lambda functions.
1010
1111## Usage
1212
1313Access to sqlite is provided by a [ Database] ( src/commonMain/kotlin/co/touchlab/sqliter/user/Database.kt )
14- instance. You initialize a Database by passing a SQLiter DatabaseManager. You can use other
14+ instance. You initialize a Database by passing a SQLiter DatabaseManager. You can use other
1515libraries and this library together with the same DatabaseManager.
1616
17- As with other sqlite libraries, you can close the Database instance, or hold onto it for the
17+ As with other sqlite libraries, you can close the Database instance, or hold onto it for the
1818duration of the process.
1919
2020Database objects give you [ DatabaseInstance] ( src/commonMain/kotlin/co/touchlab/sqliter/user/DatabaseInstance.kt ) .
2121This is where you call database interaction methods.
2222
23- There are 4 basic interactions with sqlite. Insert, Update/Delete, Execute, and Select. If
24- parameters need binding, you do that by way of a lambda. The 'this' for the lambda is a
23+ There are 4 basic interactions with sqlite. Insert, Update/Delete, Execute, and Select. If
24+ parameters need binding, you do that by way of a lambda. The 'this' for the lambda is a
2525[ Binder] ( src/commonMain/kotlin/co/touchlab/sqliter/user/Binder.kt ) instance.
2626
2727``` kotlin
@@ -31,8 +31,8 @@ instance.insert("insert into test(num, str)values(?,?)"){
3131}
3232```
3333
34- The binding types are null, long, string, double, and bytes (AKA BLOB). You can bind by number or
35- string index. You can also omit the index and the library will count and automatically index
34+ The binding types are null, long, string, double, and bytes (AKA BLOB). You can bind by number or
35+ string index. You can also omit the index and the library will count and automatically index
3636parameters (mixing auto and explicit numeric will probably not end well, however).
3737
3838Selects do not return a result set. This is to avoid leaking sqlite statements.
@@ -64,4 +64,4 @@ instance.transaction {
6464 }
6565 }
6666}
67- ```
67+ ```
0 commit comments