mirror of
https://github.com/hanzoai/better-sqlite3-multiple-ciphers.git
synced 2026-09-24 16:57:19 +00:00
Window test extension (#307)
* Export test extension for Windows * Enabled integrity extension tests Co-authored-by: Joshua Wise <[email protected]>
This commit is contained in:
committed by
Joshua Wise
co-authored by
Joshua Wise
parent
7eb8bcd8fa
commit
dfb977d74e
Vendored
+4
@@ -9,6 +9,10 @@ static void TestExtensionFunction(sqlite3_context* pCtx, int nVal, sqlite3_value
|
||||
sqlite3_result_double(pCtx, (double)nVal);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
|
||||
int sqlite3_extension_init(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines* pApi) {
|
||||
SQLITE_EXTENSION_INIT2(pApi)
|
||||
if (pzErrMsg != 0) *pzErrMsg = 0;
|
||||
|
||||
@@ -3,7 +3,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const Database = require('../.');
|
||||
|
||||
util.describeUnix('Database#loadExtension()', function () {
|
||||
describe('Database#loadExtension()', function () {
|
||||
let filepath;
|
||||
before(function () {
|
||||
const releaseFilepath = path.join(__dirname, '..', 'build', 'Release', 'test_extension.node');
|
||||
|
||||
@@ -167,7 +167,7 @@ describe('integrity checks', function () {
|
||||
});
|
||||
});
|
||||
|
||||
util.describeUnix('Database#loadExtension()', function () {
|
||||
describe('Database#loadExtension()', function () {
|
||||
let filepath;
|
||||
before(function () {
|
||||
const releaseFilepath = path.join(__dirname, '..', 'build', 'Release', 'test_extension.node');
|
||||
|
||||
Reference in New Issue
Block a user