Giter VIP home page Giter VIP logo

node-firebird-driver-native's People

Contributors

asfernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-firebird-driver-native's Issues

Does it work with FB2.5?

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?

Crash after re-creating native client

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?

Add properties to TransactionOptions

/** 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;
}

Can not install using npm/yarn. Python required

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\
...

Question about functionality

Are there any plans to implement this functionality:

  • support for extracting data from resutset by fields aliases
  • connection pool

Can not run example

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.