How to use the node-firebird.attach function in node-firebird

To help you get started, we’ve selected a few node-firebird examples, based on popular ways it is used in public projects.

github steedos / object-server / packages / stimulsoft-report / assets / js / data_adapter / FirebirdAdapter.js View on Github external
var connect = function () {
            Firebird.attach(options, function (error, db1) {
                db = db1;
                if (error) onError(error.message);
                else onConnect();
            });
        }
github totaljs / node-sqlagent / firebird.js View on Github external
callback.call(self, err, null);
            return;
        }

        self.done = function() {
            var self = this;
            self.db.detach();
            return self;
        };

        self.db = db;
        self._prepare(callback);
    };

    if (!pooling) {
        database.attach(self.options, fn);
        return self;
    }

    if (pooling !== null) {
        pooling.get(fn);
        return self;
    }

    pooling = database.pool(self.options.pooling, self.options);
    pooling.get(fn);

    return self;
};

node-firebird

Pure JavaScript and Asynchronous Firebird client for Node.js.

MPL-2.0
Latest version published 11 months ago

Package Health Score

74 / 100
Full package analysis

Popular node-firebird functions

Similar packages