Изменены типы данных
This commit is contained in:
parent
e8f29b6130
commit
f749e6686d
2 changed files with 5 additions and 5 deletions
|
@ -27,8 +27,8 @@ public:
|
||||||
this(
|
this(
|
||||||
string database,
|
string database,
|
||||||
bool zstd = false,
|
bool zstd = false,
|
||||||
int busyTimeout = 3000,
|
size_t busyTimeout = 3000,
|
||||||
ubyte maxRetries = 3,
|
size_t maxRetries = 3,
|
||||||
size_t minSize = 256,
|
size_t minSize = 256,
|
||||||
size_t normalSize = 512,
|
size_t normalSize = 512,
|
||||||
size_t maxSize = 1024,
|
size_t maxSize = 1024,
|
||||||
|
|
|
@ -14,7 +14,7 @@ final class DBLite : Sqlite
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
string _dbPath;
|
string _dbPath;
|
||||||
ubyte _maxRetries;
|
size_t _maxRetries;
|
||||||
// _scheme
|
// _scheme
|
||||||
mixin(import("scheme.d"));
|
mixin(import("scheme.d"));
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
string msg;
|
string msg;
|
||||||
ubyte tryNo = _maxRetries;
|
size_t tryNo = _maxRetries;
|
||||||
|
|
||||||
while (tryNo) {
|
while (tryNo) {
|
||||||
try {
|
try {
|
||||||
|
@ -90,7 +90,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
this(string database, int busyTimeout, ubyte maxRetries)
|
this(string database, size_t busyTimeout, size_t maxRetries)
|
||||||
{
|
{
|
||||||
_dbPath = database;
|
_dbPath = database;
|
||||||
super(database);
|
super(database);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue