asfernandes / node-firebird-driver-native Goto Github PK
View Code? Open in Web Editor NEWFirebird high-level native client for Node.js / TypeScript
License: MIT License
Firebird high-level native client for Node.js / TypeScript
License: MIT License
As JavaScript numbers (floating point) may not be suitable for all cases, we should add an option to allow numeric parameters as strings.
Hi,
I see a call to fb_get_master_interface proc:
static void getMaster(const Nan::FunctionCallbackInfo<v8::Value>& info)
...
typedef fb::IMaster* (*Func)();
Func func = (Func) GetProcAddress(handle, "fb_get_master_interface");
Is this proc available only starting with FB3 version?
If I run your example like this
test()
.then(() => console.log("Finish..."))
.then(test)
.then(() => console.log("Finish..."))
.catch(console.error);
I get error Error: connection shutdown
So it should be?
/** TransactionIsolation enum */
export enum TransactionIsolation {
CONSISTENCY = 'CONSISTENCY',
READ_COMMITTED = 'READ_COMMITTED',
SNAPSHOT = 'SNAPSHOT'
}
/** TransactionOptions interface. */
export interface TransactionOptions {
isolation?: TransactionIsolation;
readCommittedMode?: 'NO_RECORD_VERSION' | 'RECORD_VERSION';
accessMode?: 'READ_ONLY' | 'READ_WRITE';
waitMode?: 'NO_WAIT' | 'WAIT';
noAutoUndo?: boolean;
ignoreLimbo?: boolean;
restartRequests?: boolean;
autoCommit?: boolean;
}
There is an error during installation process. Seems that Python library required.
yarn add node-firebird-driver-native
...
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Golden\NS\lib
ode_modules
ode-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Golden\NS\lib
ode_modules
ode-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Golden\NS\lib
ode_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\
...
Currently it's not supported to fetch or pass BLOBs as input parameters.
Hi,
Does this code connect with firebird 1.5 ?
Regards.
It would be nice to support Firebird events.
Are there any plans to implement this functionality:
After installation, I tried to run your example and got an error:
TypeError: Cannot read property 'getDispatcherSync' of undefined
at new ClientImpl (C:\Users\sywka\Desktop\gdmn\gdmn-db\node_modules\node-firebird-driver-native\dist\lib\client.js:27:39)
at Object.createNativeClient (C:\Users\sywka\Desktop\gdmn\gdmn-db\node_modules\node-firebird-driver-native\dist\lib\client.js:19:12)
at test (C:\Users\sywka\Desktop\gdmn\gdmn-db\dist\index.js:18:50)
at Object. (C:\Users\sywka\Desktop\gdmn\gdmn-db\dist\index.js:37:1)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
Installed as follows:
npm install --global --production windows-build-tools
npm install --global node-gyp
npm install --save node-firebird-driver-native
What could be the problem?
And can you commit test folder with the other examples?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.