123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {
- "name": "sqlite3",
- "description": "Asynchronous, non-blocking SQLite3 bindings",
- "version": "2.2.3",
- "homepage": "http://github.com/mapbox/node-sqlite3",
- "author": {
- "name": "MapBox",
- "url": "https://mapbox.com/"
- },
- "binary": {
- "module_name": "node_sqlite3",
- "module_path": "./lib/binding/{node_abi}-{platform}-{arch}",
- "remote_path": "./{configuration}",
- "package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
- "host": "https://node-sqlite3.s3.amazonaws.com"
- },
- "contributors": [
- {
- "name": "Konstantin Käfer",
- "email": "mail@kkaefer.com"
- },
- {
- "name": "Dane Springmeyer",
- "email": "dane@mapbox.com"
- },
- {
- "name": "Will White",
- "email": "will@mapbox.com"
- },
- {
- "name": "Orlando Vazquez",
- "email": "ovazquez@gmail.com"
- },
- {
- "name": "Artem Kustikov",
- "email": "kustikoff@gmail.com"
- },
- {
- "name": "Eric Fredricksen",
- "email": "efredricksen@gmail.com"
- },
- {
- "name": "John Wright",
- "email": "mrjjwright@gmail.com"
- },
- {
- "name": "Ryan Dahl",
- "email": "ry@tinyclouds.org"
- },
- {
- "name": "Tom MacWright",
- "email": "tom@mapbox.com"
- },
- {
- "name": "Carter Thaxton",
- "email": "carter.thaxton@gmail.com"
- },
- {
- "name": "Audrius Kažukauskas",
- "email": "audrius@neutrino.lt"
- },
- {
- "name": "Johannes Schauer",
- "email": "josch@pyneo.org"
- },
- {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net"
- },
- {
- "name": "AJ ONeal",
- "email": "coolaj86@gmail.com"
- },
- {
- "name": "Mithgol"
- }
- ],
- "repository": {
- "type": "git",
- "url": "git://github.com/mapbox/node-sqlite3.git"
- },
- "dependencies": {
- "node-pre-gyp": "0.5.x"
- },
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">= 0.8.0 < 0.11.0"
- },
- "scripts": {
- "install": "node-pre-gyp install --fallback-to-build",
- "pretest": "node test/support/createdb.js",
- "test": "mocha -R spec --timeout 200000"
- },
- "licenses": [
- {
- "type": "BSD"
- }
- ],
- "main": "./lib/sqlite3",
- "readme": "Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings for [Node.js](http://nodejs.org/).\n\n[![NPM](https://nodei.co/npm/sqlite3.png)](https://nodei.co/npm/sqlite3/)\n\n[![Build Status](https://travis-ci.org/mapbox/node-sqlite3.png?branch=master)](https://travis-ci.org/mapbox/node-sqlite3)\n[![npm package version](https://badge.fury.io/js/sqlite3.png)](https://npmjs.org/package/sqlite3)\n\n## Depends\n\n - Node.js v0.10.x or v0.8.x\n\nBinaries for most Node versions and platforms are provided by default via [node-pre-gyp](https://github.com/springmeyer/node-pre-gyp).\n\nAlso works with [node-webkit](https://github.com/rogerwang/node-webkit) and sqlcipher.\n\n# Usage\n\n**Note:** the module must be [installed](#installing) before use.\n\n``` js\nvar sqlite3 = require('sqlite3').verbose();\nvar db = new sqlite3.Database(':memory:');\n\ndb.serialize(function() {\n db.run(\"CREATE TABLE lorem (info TEXT)\");\n\n var stmt = db.prepare(\"INSERT INTO lorem VALUES (?)\");\n for (var i = 0; i < 10; i++) {\n stmt.run(\"Ipsum \" + i);\n }\n stmt.finalize();\n\n db.each(\"SELECT rowid AS id, info FROM lorem\", function(err, row) {\n console.log(row.id + \": \" + row.info);\n });\n});\n\ndb.close();\n```\n\n# Features\n\n - Straightforward query and parameter binding interface\n - Full Buffer/Blob support\n - Extensive [debugging support](https://github.com/mapbox/node-sqlite3/wiki/Debugging)\n - [Query serialization](https://github.com/mapbox/node-sqlite3/wiki/Control-Flow) API\n - [Extension support](https://github.com/mapbox/node-sqlite3/wiki/Extensions)\n - Big test suite\n - Written in modern C++ and tested for memory leaks\n\n\n# API\n\nSee the [API documentation](https://github.com/mapbox/node-sqlite3/wiki) in the wiki.\n\n\n# Installing\n\nYou can use [`npm`](https://github.com/isaacs/npm) to download and install:\n\n* The latest `sqlite3` package: `npm install sqlite3`\n\n* GitHub's `master` branch: `npm install https://github.com/mapbox/node-sqlite3/tarball/master`\n\nIn both cases the module is automatically built with npm's internal version of `node-gyp`,\nand thus your system must meet [node-gyp's requirements](https://github.com/TooTallNate/node-gyp#installation).\n\nIt is also possible to make your own build of `sqlite3` from its source instead of its npm package ([see below](#building-from-the-source)).\n\nIt is possible to use the installed package in [node-webkit](https://github.com/rogerwang/node-webkit) instead of the vanilla Node.js. See [Building for node-webkit](#building-for-node-webkit) for details.\n\n## Source install\n\nUnless building via `npm install` (which uses its own `node-gyp`) you will need `node-gyp` installed globally:\n\n npm install node-gyp -g\n\nThe sqlite3 module depends only on libsqlite3. However, by default, an internal/bundled copy of sqlite will be built and statically linked, so an externally installed sqlite3 is not required.\n\nIf you wish to install against an external sqlite then you need to pass the `--sqlite` argument to `node-gyp`, `npm install` or the `configure` wrapper.\n\n ./configure --sqlite=/usr/local\n make\n\nOr, using the node-gyp directly:\n\n node-gyp --sqlite=/usr/local\n make\n\nOr, using npm:\n\n npm install --sqlite=/usr/local\n\nIf building against an external sqlite3 make sure to have the development headers available. Mac OS X ships with these by default. If you don't have them installed, install the `-dev` package with your package manager, e.g. `apt-get install libsqlite3-dev` for Debian/Ubuntu. Make sure that you have at least `libsqlite3` >= 3.6.\n\nNote, if building against homebrew-installed sqlite on OS X you can do:\n\n ./configure --sqlite=/usr/local/opt/sqlite/\n make\n\n## Building for node-webkit\n\nBecause of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit).\n\nTo build node-sqlite3 for node-webkit:\n\n1. Install [`nw-gyp`](https://github.com/rogerwang/nw-gyp) globally: `npm install nw-gyp -g` *(unless already installed)*\n\n2. Build the module with the custom flags of `--runtime`, `--target_arch`, and `--target`:\n\n```sh\nNODE_WEBKIT_VERSION=\"0.8.4\" # see latest version at https://github.com/rogerwang/node-webkit#downloads\nnpm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)\n```\n\nThis command internally calls out to [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) which itself calls out to [`nw-gyp`](https://github.com/rogerwang/nw-gyp) when the `--runtime=node-webkit` option is passed.\n\nYou can also run this command from within a `node-sqlite3` checkout:\n\n```sh\nnpm install --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)\n```\n\nRemember the following:\n\n* You must provide the right `--target_arch` flag. `ia32` is needed to target 32bit node-webkit builds, while `x64` will target 64bit node-webkit builds (if available for your platform).\n\n* After the `sqlite3` package is built for node-webkit it cannot run in the vanilla Node.js (and vice versa).\n * For example, `npm test` of the node-webkit's package would fail.\n\nVisit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/Using-Node-modules)” article in the node-webkit's wiki for more details.\n\n## Building for sqlcipher\n\nTo run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:\n\n npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/\n\nIf your sqlcipher is installed in a custom location, say if you installed it with homebrew on OS X you also need to do:\n\n export LDFLAGS=\"-L`brew --prefix`/opt/sqlcipher/lib\"\n export CPPFLAGS=\"-I/`brew --prefix`opt/sqlcipher/include\"\n npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`\n\n# Testing\n\n[mocha](https://github.com/visionmedia/mocha) is required to run unit tests.\n\nIn sqlite3's directory (where its `package.json` resides) run the following:\n\n npm install mocha\n npm test\n\n\n# Contributors\n\n* [Konstantin Käfer](https://github.com/kkaefer)\n* [Dane Springmeyer](https://github.com/springmeyer)\n* [Will White](https://github.com/willwhite)\n* [Orlando Vazquez](https://github.com/orlandov)\n* [Artem Kustikov](https://github.com/artiz)\n* [Eric Fredricksen](https://github.com/grumdrig)\n* [John Wright](https://github.com/mrjjwright)\n* [Ryan Dahl](https://github.com/ry)\n* [Tom MacWright](https://github.com/tmcw)\n* [Carter Thaxton](https://github.com/carter-thaxton)\n* [Audrius Kažukauskas](https://github.com/audriusk)\n* [Johannes Schauer](https://github.com/pyneo)\n* [Mithgol](https://github.com/Mithgol)\n\n\n# Acknowledgments\n\nThanks to [Orlando Vazquez](https://github.com/orlandov),\n[Eric Fredricksen](https://github.com/grumdrig) and\n[Ryan Dahl](https://github.com/ry) for their SQLite bindings for node, and to mraleph on Freenode's #v8 for answering questions.\n\nDevelopment of this module is sponsored by [MapBox](http://mapbox.org/).\n\n\n# License\n\n`node-sqlite3` is [BSD licensed](https://github.com/mapbox/node-sqlite3/raw/master/LICENSE).\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/mapbox/node-sqlite3/issues"
- },
- "bundleDependencies": [
- "node-pre-gyp"
- ],
- "_id": "sqlite3@2.2.3",
- "_shasum": "37e4cee1f2512d54b68ce50603029dd13152aa64",
- "_from": "sqlite3@2.2.3",
- "_resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-2.2.3.tgz"
- }
|