mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
sqlite version
This commit is contained in:
parent
1888de8728
commit
23940aa324
@ -142,7 +142,13 @@ const driver = {
|
|||||||
return createBulkInsertStreamBase(this, stream, pool, name, options);
|
return createBulkInsertStreamBase(this, stream, pool, name, options);
|
||||||
},
|
},
|
||||||
async getVersion(pool) {
|
async getVersion(pool) {
|
||||||
return { version: 'SQLite 3' };
|
const { rows } = await this.query(pool, 'select sqlite_version() as version');
|
||||||
|
const { version } = rows[0];
|
||||||
|
|
||||||
|
return {
|
||||||
|
version,
|
||||||
|
versionText: `SQLite ${version}`,
|
||||||
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user