GithubHelp home page GithubHelp logo

tempbottle / node-wiredtiger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wiredtiger/node-wiredtiger

0.0 3.0 0.0 4.42 MB

License: Other

Makefile 1.05% Python 1.24% JavaScript 17.53% C++ 80.17%

node-wiredtiger's Introduction

WiredTiger Node.js API

Fast transactional storage - a Node.js wrapper around the WiredTiger storage engine library.

Introduction

WiredTiger is a fast transactional data storage engine that provides high throughput data access and storage in a concurrent environment.

WiredTiger stores data on local disks. A single WiredTiger database can contain multiple tables. Tables can be created in different formats to suit the intended workload. Available table types are:

  • Log Structured Merge (LSM) tree. Especially good for high insert/update workloads, where the volume of data is large.
  • Btree. Especially good for smaller datasets, or workloads that have a relatively higher rate of queries compared to updates.

Platforms

WiredTiger currently supports Linux, FreeBSD and Mac OS.

Usage

The best way to see usage is to view the test code. The code at test/test-basic.js is the recommended starting point.

The following might help (though it could be outdated).

var wiredtiger = require('wiredtiger');

var conn = new wiredtiger.WTConnection('/path/to/database/directory', 'create');
conn.Open( function(err) {
	var table = new wiredtiger.WTTable(
	    conn, "table:test", "create,key_format=S,value_format=S");
	table.Open( function(err) {
		table.Put('abc', 'def', function(err) {
			table.Search('abc', function(err, result) {
				console.log("Woo! got: " + result);
			});
		});
	});
});

node-wiredtiger's People

Contributors

agorrod avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.