Merge: SQLite: update and simplify wrapper
authorJean Privat <jean@pryen.org>
Tue, 17 May 2016 01:22:59 +0000 (21:22 -0400)
committerJean Privat <jean@pryen.org>
Tue, 17 May 2016 01:22:59 +0000 (21:22 -0400)
commit6b330286b504b58172ec825ce53665f223221bed
tree652464446a16d7652d45a23a3222a3bada4bac1b
parentf42e3f22d31eb8a8fd58c33991d0db68f83fa043
parent3e2064fde6591275c1d3b01fb606d98b657327f4
Merge: SQLite: update and simplify wrapper

This PR updates the SQLite wrapper so it is easier to understand and maintain, and as a bonus it is now compatible with the interpreter.

The C code and native layer now uses only `NativeString`, and the calls `to_cstring` and `NativeString::to_s` are moved to the Nit code and nity layer. The error code on opening a database is kept on the C side and retrieved only as needed. This removes a lot of callbacks which simplifies the code and makes the module compatible with the interpreter.

Pull-Request: #2092
Reviewed-by: Jean Privat <jean@pryen.org>
lib/sqlite3/sqlite3.nit