mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-29 12:03:07 +02:00
check sqlite version
This commit is contained in:
parent
4d230a394c
commit
e8f7d99653
|
@ -5,6 +5,13 @@ import std.string: fromStringz, toStringz;
|
||||||
|
|
||||||
extern (C) immutable(char)* sqlite3_errstr(int); // missing from the std library
|
extern (C) immutable(char)* sqlite3_errstr(int); // missing from the std library
|
||||||
|
|
||||||
|
static this()
|
||||||
|
{
|
||||||
|
if (sqlite3_libversion_number() < 3006019) {
|
||||||
|
throw new SqliteException("sqlite 3.6.19 or newer is required");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private string ifromStringz(const(char)* cstr)
|
private string ifromStringz(const(char)* cstr)
|
||||||
{
|
{
|
||||||
return fromStringz(cstr).dup;
|
return fromStringz(cstr).dup;
|
||||||
|
|
Loading…
Reference in a new issue