
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
limber-firebird-knex
Advanced tools
var knex = require('knex')({
client: require('limber-firebird-knex'),
connection: {
host: "127.0.0.1",
port: 3050,
user: "SYSDBA",
password: "masterkey",
database: __dirname + '/data.fdb'
}
});
// Create a table
knex.schema.createTable('users', function(table) {
table.increments('id');
table.string('user_name');
})
// ...and another
.createTable('accounts', function(table) {
table.increments('id');
table.string('account_name');
table.integer('user_id').unsigned().references('users.id');
})
// Then query the table...
.then(function() {
return knex.insert({id: 1, user_name: 'Tim'}).into('users');
})
// ...and using the insert id, insert into the other table.
.then(function() {
return knex.table('accounts').insert({id: 101, account_name: 'knex', user_id: 1});
})
// Query both of the rows.
.then(function() {
return knex('users')
.join('accounts', 'users.id', 'accounts.user_id')
.select('users.user_name as user_name', 'accounts.account_name as account');
})
// .map over the results
.map(function(row) {
console.log(row);
})
.then(function() {
knex.destroy();
})
// Finally, add a .catch handler for the promise chain
.catch(function(e) {
console.error(e);
});
FAQs
Knex dialect for FirebirdSQL RDBMS
We found that limber-firebird-knex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.