{"name":"knex","version":"0.16.1-next2","description":"A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser","main":"knex.js","types":"types/knex.d.ts","engines":{"node":">=6"},"dependencies":{"@babel/polyfill":"^7.0.0","bluebird":"^3.5.3","chalk":"2.4.1","commander":"^2.19.0","debug":"4.1.0","inherits":"~2.0.3","interpret":"^1.1.0","liftoff":"2.5.0","lodash":"^4.17.11","minimist":"1.2.0","mkdirp":"^0.5.1","pg-connection-string":"2.0.0","tarn":"^1.1.4","tildify":"1.2.0","uuid":"^3.3.2","v8flags":"^3.1.1"},"lint-staged":{"*.{js,json}":["prettier --write","git add"]},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0","@types/node":"*","JSONStream":"^1.3.5","async":"^2.6.1","babel-eslint":"^10.0.1","babel-plugin-add-module-exports":"^1.0.0","chai":"^4.2.0","chai-subset-in-order":"^2.1.2","coveralls":"^3.0.2","cross-env":"^5.2.0","eslint":"5.9.0","eslint-config-prettier":"^3.3.0","eslint-plugin-import":"^2.14.0","husky":"^1.2.0","jake":"^8.0.19","json-loader":"^0.5.7","lint-staged":"^8.1.0","mocha":"^5.2.0","mock-fs":"^4.7.0","mssql":"^5.0.0-alpha.1","mysql":"^2.16.0","mysql2":"^1.6.4","nyc":"^13.1.0","pg":"^7.7.1","pg-query-stream":"^1.1.2","prettier":"^1.15.3","rimraf":"^2.6.2","sinon":"^7.1.1","sinon-chai":"^3.3.0","source-map-support":"^0.5.9","sqlite3":"^4.0.4","tap-spec":"^5.0.0","tape":"^4.9.1","through":"^2.3.8","toxiproxy-node-client":"^2.0.6"},"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","debug_test":"node --inspect-brk ./node_modules/.bin/_mocha -- --exit -t 0 test/index.js","babel":"rimraf ./lib && babel src --out-dir lib --copy-files","coveralls":"nyc report --reporter=text-lcov | coveralls","dev":"rimraf ./lib && babel -w src --out-dir lib --copy-files","lint":"eslint '{src,test}/**/*.js'","plaintest":"mocha --exit -t 10000 -b -R spec test/index.js && npm run tape","prepublish":"npm run babel","pre_test":"npm run lint","bin_test":"cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile","tape":"node test/tape/index.js | tap-spec","debug_tape":"node --inspect-brk test/tape/index.js","test":"npm run pre_test && nyc mocha --exit --check-leaks --globals __core-js_shared__ -t 10000 -R spec test/index.js && npm run tape && npm run bin_test","oracledb:test":"docker rmi -f --no-prune knex-test-oracledb && docker build -f scripts/oracle-tests-Dockerfile --tag knex-test-oracledb . && docker run --rm -i -t -e KNEX_TEST_TIMEOUT=$KNEX_TEST_TIMEOUT -e NODE_VER=$NODE_VER knex-test-oracledb","mssql:init":"docker-compose -f scripts/mssql-docker-compose.yml up --no-start && docker-compose -f scripts/mssql-docker-compose.yml start","postmssql:init":"node scripts/wait-for-mssql-server.js && npm run mssql:logs || (npm run mssql:logs;false)","mssql:logs":"docker-compose -f scripts/mssql-docker-compose.yml logs","mssql:test":"DB=mssql npm test","mssql:destroy":"docker-compose -f scripts/mssql-docker-compose.yml stop","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/index.js":"./lib/util/noop.js","./lib/bin/cli.js":"./lib/util/noop.js","./lib/seed/index.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"}},"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- 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.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.integer('user_id').unsigned().references('users.id');\n})\n\n// Then query the table...\n.then(function() {\n  return knex.insert({user_name: 'Tim'}).into('users');\n})\n\n// ...and using the insert id, insert into the other table.\n.then(function(rows) {\n  return knex.table('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","gitHead":"ac6423f3b36439722a58fd78ace57933733be064","bugs":{"url":"https://github.com/tgriesser/knex/issues"},"_id":"knex@0.16.1-next2","_npmVersion":"6.4.1","_nodeVersion":"8.10.0","_npmUser":{"name":"elhigu","email":"mikael.lepisto@vincit.com"},"dist":{"integrity":"sha512-uyNGPx8gNMnM4QhzjNrO36V0PLVea7MP8gF2MtTJPphGcEZRdFcgskvE942Sl/C+TzB2onOit2pE+Eel+cQAWw==","shasum":"0ade7f1ba5dbd5236ca6e8af9e37176ad3810138","tarball":"http://registry-npm.ywwl.com/knex/download/knex-0.16.1-next2.tgz","fileCount":231,"unpackedSize":871455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcB4N7CRA9TVsSAnZWagAACwwQAIcNJYb4+jRlyKKbsOor\neJUUQYaK9vzRhNwFDAqbgiu/ktxLu+r2oSNTmZ2Qp8343DX6J1JIhaM9AeHs\n3q2xBszuJ51K2iPHNCZ0k+/0tmYaJVfJIyzDKsZIcUN9t39TjF1zqp8uPy/+\ntcZ4ijWeaMQVIwWua0Jp5Wg5zFdmEE5oOGqiWMJz9jdiq5k4IntzbReRvLy2\nzli4GSC8uUkkMJW345h2rcgomTecbCZaqwYhXKjLAXQq06MuR4WL/KqgFLE7\ndG2vkgvG1Zl67pqAze8LPVmakUNOFMDqDZkrvtLLBcnkfW/Y/8bHxSP/HI0E\ncB1hwx1IM0U5KSteJXjwxxidcadzviYa8UmvcWfVK3jsTPuknkQDXLE+HdGs\nVXGeKtegt7udIEvSjk1Hn/3dXeNsZEKxm6NhTpCcdo24QDfTf4/zh8kY5m/b\n1Hsv/FZG+AqDmYhZ9cx+GOzT+sYK9MjJ7dIeQoHbN3nyjOsE4ANW0cfvlLI1\nGjfbQ+hlbjlsRzfCXfcVVzq0YHjXOfIHsTnJDkK2nDT80lK/5f0x7q3bVV81\nMuvdHxYQQMA+mbU8XCq2GdQeOpVfSNNJuA3gR8MXpNZ73YrhheWAMvQyBiRs\ncV/W/u5qOp3Sg64RyFYr0OSzi3lWZJg+kDlWXiuSl6PNxc/KmQZ2XQX7Xd4t\nUJg8\r\n=ETKn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3mOQ+rpJMxDhrq9bZ1BkeRNO0e/ZwjZYZsx4Ylxw5vAiBPXRB7i9D0GDcJSet5CFOIfgT2MPezMq1mHbXddtEQxA=="}],"size":208180,"noattachment":false,"key":"/knex/-/knex-0.16.1-next2.tgz"},"maintainers":[{"email":"mikael.lepisto@vincit.com","name":"elhigu"},{"email":"github.erisds@gmail.com","name":"erisds"},{"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":"wubzz94@hotmail.com","name":"wubzz"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knex_0.16.1-next2_1543996282991_0.8742651658873983"},"_hasShrinkwrap":false,"publish_time":1543996283258,"_cnpm_publish_time":1543996283258,"dist-tags":{"beta":"0.21.5-next1","latest":"3.3.0","next":"2.5.1","oracle-fix":"0.16.6-oracle-fix"}}