Skip to content

Commit 60de3f4

Browse files
authored
Merge pull request #59 from aminroosta/readme
Add package managers section to readme
2 parents 5910571 + ff0c837 commit 60de3f4

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main() {
7878
```
7979

8080
Prepared Statements
81-
=====
81+
----
8282
It is possible to retain and reuse statments this will keep the query plan and in case of an complex query or many uses might increase the performance significantly.
8383

8484
```c++
@@ -121,7 +121,7 @@ It is possible to retain and reuse statments this will keep the query plan and i
121121
```
122122
123123
Shared Connections
124-
=====
124+
----
125125
If you need the handle to the database connection to execute sqlite3 commands directly you can get a managed shared_ptr to it, so it will not close as long as you have a referenc to it.
126126
127127
Take this example on how to deal with a database backup using SQLITEs own functions in a save and modern way.
@@ -151,7 +151,7 @@ Take this example on how to deal with a database backup using SQLITEs own functi
151151
```
152152

153153
Transactions
154-
=====
154+
----
155155
You can use transactions with `begin;`, `commit;` and `rollback;` commands.
156156

157157
```c++
@@ -176,7 +176,7 @@ You can use transactions with `begin;`, `commit;` and `rollback;` commands.
176176
```
177177

178178
Blob
179-
=====
179+
----
180180
Use `std::vector<T>` to store and retrieve blob data.
181181
`T` could be `char,short,int,long,long long, float or double`.
182182

@@ -194,7 +194,7 @@ Use `std::vector<T>` to store and retrieve blob data.
194194
```
195195
196196
NULL values
197-
=====
197+
----
198198
If you have databases where some rows may be null, you can use `std::unique_ptr<T>` to retain the NULL values between C++ variables and the database.
199199
200200
```c++
@@ -225,7 +225,7 @@ db << "select age,name,img from tbl where id = 2"
225225
```
226226

227227
NULL values (DEPRICATED)
228-
=====
228+
----
229229
**Note: this option is deprecated and will be removed in future versions.**
230230
You can enable boost support by defining _MODERN_SQLITE_BOOST_OPTIONAL_SUPPORT before importing sqlite_modern_cpp header.
231231

@@ -281,7 +281,7 @@ You can enable boost support by defining _MODERN_SQLITE_BOOST_OPTIONAL_SUPPORT b
281281
```
282282
283283
Errors
284-
=====
284+
----
285285
286286
On error, the library throws an error class indicating the type of error. The error classes are derived from the SQLITE3 error names, so if the error code is SQLITE_CONSTRAINT, the error class thrown is sqlite::exceptions::constraint. Note that all errors are derived from sqlite::sqlite_exception and that itself is derived from std::runtime_exception.
287287
@@ -304,12 +304,12 @@ On error, the library throws an error class indicating the type of error. The er
304304
```
305305

306306
NDK support
307-
======
307+
----
308308
Just Make sure you are using the full path of your database file :
309309
`sqlite::database db("/data/data/com.your.package/dbfile.db")`.
310310

311311
Building and Installing
312-
=====
312+
----
313313

314314
The usual way works for installing:
315315

@@ -320,6 +320,13 @@ The usual way works for installing:
320320

321321
Note, there's nothing to make, so you there's no need to run configure and you can simply point your compiler at the hdr/ directory.
322322

323+
Package managers
324+
----
325+
Pull requests are wellcome :wink:
326+
- [AUR](https://aur.archlinux.org/packages/sqlite_modern_cpp/) Arch Linux
327+
- maintainer [Nissar Chababy](https://github.com/funilrys)
328+
- Nuget (TODO [nuget.org](https://www.nuget.org/))
329+
- Conan (TODO [conan.io](https://conan.io/))
323330

324331
##License
325332

0 commit comments

Comments
 (0)