{"name":"knex","version":"0.17.0-next2","description":"A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser","main":"knex.js","types":"types/index.d.ts","engines":{"node":">=6"},"dependencies":{"@babel/polyfill":"^7.4.4","@types/bluebird":"^3.5.26","bluebird":"^3.5.4","colorette":"1.0.7","commander":"^2.20.0","debug":"4.1.1","getopts":"2.2.3","inherits":"~2.0.3","interpret":"^1.2.0","liftoff":"3.1.0","lodash":"^4.17.11","mkdirp":"^0.5.1","pg-connection-string":"2.0.0","tarn":"^1.1.5","tildify":"1.2.0","uuid":"^3.3.2","v8flags":"^3.1.3"},"lint-staged":{"*.{js,json}":["prettier --write","git add"]},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","@types/node":"^10.14.6","JSONStream":"^1.3.5","async":"^2.6.2","babel-eslint":"^10.0.1","babel-plugin-add-module-exports":"^1.0.2","chai":"^4.2.0","chai-subset-in-order":"^2.1.3","cli-testlab":"^1.4.0","coveralls":"^3.0.3","cross-env":"^5.2.0","dtslint":"^0.7.1","eslint":"5.16.0","eslint-config-prettier":"^4.2.0","eslint-plugin-import":"^2.17.2","husky":"^1.3.1","jake":"^8.1.1","json-loader":"^0.5.7","lint-staged":"^8.1.6","mocha":"^6.1.4","mock-fs":"^4.9.0","mssql":"^5.1.0","mysql":"^2.17.1","mysql2":"^1.6.5","nyc":"^14.1.1","pg":"^7.11.0","pg-query-stream":"^2.0.0","prettier":"^1.17.0","rimraf":"^2.6.3","sinon":"^7.3.2","sinon-chai":"^3.3.0","source-map-support":"^0.5.12","sqlite3":"^4.0.8","tap-spec":"^5.0.0","tape":"^4.10.1","typescript":"^3.4.5","through":"^2.3.8","toxiproxy-node-client":"^2.0.6","webpack-cli":"^3.3.1"},"buildDependencies":["@babel/cli","babel-plugin-add-module-exports","@babel/preset-env","rimraf"],"scripts":{"format":"prettier --write \"{src,bin,scripts,test}/**/*.js\"","build":"npm run babel","babel":"rimraf ./lib && babel src --out-dir lib --copy-files","debug:test":"mocha --inspect-brk --exit -t 0 test/index.js","debug:tape":"node --inspect-brk test/tape/index.js","coveralls":"nyc report --reporter=text-lcov | coveralls","dev":"rimraf ./lib && babel -w src --out-dir lib --copy-files","lint":"eslint '{src,test}/**/*.js'","lint:types":"dtslint types","plaintest":"mocha --exit -t 10000 test/index.js && npm run test:tape && npm run test:cli","plaintest:sqlite":"cross-env DB=sqlite3 npm run plaintest","prepare":"npm run babel","prepublishOnly":"npm run babel","pretest":"npm run lint && npm run lint:types && npm run babel","test":"nyc mocha --exit --check-leaks --globals __core-js_shared__ -t 10000 test/index.js && npm run test:tape && npm run test:cli","test:tape":"node test/tape/index.js | tap-spec","test:cli":"cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile","db:start":"docker-compose -f scripts/docker-compose.yml up --build -d mysql oracledbxe postgres mssql; docker-compose -f scripts/docker-compose.yml up initmssqlknexdb waitmysql waitpostgres waitoracledbxe","db:stop":"docker-compose -f scripts/docker-compose.yml down","stress:init":"docker-compose -f scripts/stress-test/docker-compose.yml up --no-start && docker-compose -f scripts/stress-test/docker-compose.yml start","stress:test":"node scripts/stress-test/knex-stress-test.js |  grep -A 5 -B 60 -- '- STATS '","stress:destroy":"docker-compose -f scripts/stress-test/docker-compose.yml stop"},"bin":{"knex":"./bin/cli.js"},"repository":{"type":"git","url":"git://github.com/tgriesser/knex.git"},"homepage":"https://knexjs.org","keywords":["sql","query","postgresql","mysql","sqlite3","oracle","mssql"],"author":{"name":"Tim Griesser","url":"https://github.com/tgriesser"},"browser":{"./lib/migrate/Migrator.js":"./lib/util/noop.js","./lib/bin/cli.js":"./lib/util/noop.js","./lib/seed/Seeder.js":"./lib/util/noop.js","mssql":false,"mssql/lib/base":false,"tedious":false,"mysql":false,"mysql2":false,"pg":false,"pg-query-stream":false,"oracle":false,"sqlite3":false,"oracledb":false},"react-native":{"./lib/migrate":"./lib/util/noop.js","./lib/seed":"./lib/util/noop.js"},"license":"MIT","tonicExampleFilename":"scripts/runkit-example.js","nyc":{"check-coverage":true,"lines":84,"statements":82,"functions":83,"branches":69},"husky":{"hooks":{"pre-commit":"lint-staged"}},"gitHead":"a6c6cd2d4f4385523e4da67d8015a54270839d23","readme":"# [knex.js](http://knexjs.org)\n\n[![npm version](http://img.shields.io/npm/v/knex.svg)](https://npmjs.org/package/knex)\n[![Build Status](https://travis-ci.org/tgriesser/knex.svg?branch=master)](https://travis-ci.org/tgriesser/knex)\n[![Coverage Status](https://coveralls.io/repos/tgriesser/knex/badge.svg?branch=master)](https://coveralls.io/r/tgriesser/knex?branch=master)\n[![Dependencies Status](https://david-dm.org/tgriesser/knex.svg)](https://david-dm.org/tgriesser/knex)\n[![Gitter chat](https://badges.gitter.im/tgriesser/knex.svg)](https://gitter.im/tgriesser/knex)\n[![Language Grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/tgriesser/knex.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tgriesser/knex/context:javascript)\n\n> **A SQL query builder that is _flexible_, _portable_, and _fun_ to use!**\n\nA batteries-included, multi-dialect (MSSQL, MySQL, PostgreSQL, SQLite3, Oracle (including Oracle Wallet Authentication)) query builder for\nNode.js, featuring:\n\n- [transactions](http://knexjs.org/#Transactions)\n- [connection pooling](http://knexjs.org/#Installation-pooling)\n- [streaming queries](http://knexjs.org/#Interfaces-Streams)\n- both a [promise](http://knexjs.org/#Interfaces-Promises) and [callback](http://knexjs.org/#Interfaces-Callbacks) API\n- a [thorough test suite](https://travis-ci.org/tgriesser/knex)\n- the ability to [run in the Browser](http://knexjs.org/#Installation-browser)\n\nNode.js versions 6+ are supported.\n\n[Read the full documentation to get started!](http://knexjs.org)  \n[Or check out our Recipes wiki to search for solutions to some specific problems](https://github.com/tgriesser/knex/wiki/Recipes)  \nIf upgrading from older version, see [Upgrading instructions](https://github.com/tgriesser/knex/blob/master/UPGRADING.md)\n\nFor support and questions, join the `#bookshelf` channel on freenode IRC\n\nFor an Object Relational Mapper, see:\n\n- http://bookshelfjs.org\n- https://github.com/Vincit/objection.js\n\nTo see the SQL that Knex will generate for a given query, see: [Knex Query Lab](http://michaelavila.com/knex-querylab/)\n\n## Examples\n\nWe have several examples [on the website](http://knexjs.org). Here is the first one to get you started:\n\n```js\nconst knex = require('knex')({\n  dialect: 'sqlite3',\n  connection: {\n    filename: './data.db',\n  },\n});\n\n// Create a table\nknex.schema\n  .createTable('users', function(table) {\n    table.increments('id');\n    table.string('user_name');\n  })\n\n  // ...and another\n  .createTable('accounts', function(table) {\n    table.increments('id');\n    table.string('account_name');\n    table\n      .integer('user_id')\n      .unsigned()\n      .references('users.id');\n  })\n\n  // Then query the table...\n  .then(function() {\n    return knex('users').insert({ user_name: 'Tim' });\n  })\n\n  // ...and using the insert id, insert into the other table.\n  .then(function(rows) {\n    return knex('accounts').insert({ account_name: 'knex', user_id: rows[0] });\n  })\n\n  // Query both of the rows.\n  .then(function() {\n    return knex('users')\n      .join('accounts', 'users.id', 'accounts.user_id')\n      .select('users.user_name as user', 'accounts.account_name as account');\n  })\n\n  // .map over the results\n  .map(function(row) {\n    console.log(row);\n  })\n\n  // Finally, add a .catch handler for the promise chain\n  .catch(function(e) {\n    console.error(e);\n  });\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/tgriesser/knex/issues"},"_id":"knex@0.17.0-next2","_nodeVersion":"11.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-0y7Hw8rWsLE6YKXztQzApod6FV0cnLRCLsYJ6Qp+OWfVnWbE8wwL2Uc+wF/9Wz6Z2Bkq0NZsOEwE+df1BPsPhQ==","shasum":"b1583caa26e5a5cd59a48eaade53d8ec5d0bbefe","tarball":"http://registry-npm.ywwl.com/knex/download/knex-0.17.0-next2.tgz","fileCount":227,"unpackedSize":919832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3chRCRA9TVsSAnZWagAAt1EP/1UETsX8R/DpadnbHeFA\nSIlF74d8Adf20kbdVOxzIyGoTfgYAnVVe0KRjScsIO9yur5IPP7CwXg956ca\nJ9NXZAQeK4MZSKwIkbEVNa9e7lKH+NJRAzNH8QCnWTvEncO8Dc4yXLAuLHu3\nocSZPPt9xABp0o7oL4GteFfo4croIx64cv6BJEhW7pzr1aaN2yrMNgFdLoPM\n3aKXA/woqY+39n66Yt2xazjPJZ4Fd3x1H4l5wG5nBdoKq5buMoTx2p29hztq\nSRRCA/m1W/DtAOWTuPga8hnY81oj9qLwgNNVtX2Pf1u4FL4owFIvyNBNmfhn\n4Q3mgZdPaiRMzlFUgoy0yTXnB1uX74IKRnq8vvcCPWH3bAVc4mCKV45KvARy\nblw/FOLKmqwvXIe1kxMbpblqtbCvx/b3GJgS4XKUVfcAdFNLxumxBryaN3zO\nXWwHp7qB0zkpBN0aEgDS/psteX5EArGXq7IoSWGRZ+5z6JGwaG7D0jeXed85\nCKZaHCcAVA0C6YACsicfQaBxpsQi6vOtSHAfhC3T6D1Mt5IUHZIF4YnhbTev\nvj0jFSNpTFGumBA8thclco8m/zNMnZflDRKwd6DZVaUJ0k9+k4BFhhTkAbaV\nKVuf6KndtMPbJVcUesXCr/QZpfYlpC3RhiUB7VcoLciexsE/Fh426Dborz+f\n6/HG\r\n=3zb2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4NTjzCRoX8/PKc1Oz5SHwkBn0lQ0sLTsc36+s6w6mQgIhAI2VAvrSfcLP6Dgcd7RVOICLSJ7aWGEeOV+kBBP9kjZe"}],"size":218690,"noattachment":false,"key":"/knex/-/knex-0.17.0-next2.tgz"},"maintainers":[{"email":"mikael.lepisto@vincit.com","name":"elhigu"},{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"iselwin@gmail.com","name":"kibertoad"},{"email":"katharina.irrgang@googlemail.com","name":"kirrg001"},{"email":"rhys.vdw@gmail.com","name":"rhys-vdw"},{"email":"tgriesser10@gmail.com","name":"tgriesser"},{"email":"me@traviswebb.com","name":"tjwebb"},{"email":"tyler@sleekcode.net","name":"tkellen"},{"email":"simonliden94@gmail.com","name":"wubzz"}],"_npmUser":{"name":"kibertoad","email":"iselwin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knex_0.17.0-next2_1558038608784_0.2399528821966619"},"_hasShrinkwrap":false,"publish_time":1558038609129,"_cnpm_publish_time":1558038609129,"dist-tags":{"beta":"0.21.5-next1","latest":"3.3.0","next":"2.5.1","oracle-fix":"0.16.6-oracle-fix"}}