Skip to content
aleafs edited this page Mar 15, 2012 · 3 revisions

#About

itier-client is a client library for itier

Install

npm install itier-client

Usage

	var itier	= require('itier-client').init({
            'appname'   : 'username',
            'apppass'   : 'password',
    });

	itier.connect('127.0.0.1', 9999).connect('127.0.0.2');
    itier.query('SELECT * FROM table WHERE c1 = :c', {
            'c' : 1211
    }, function(data, header, profile) {
		console.log(data);

		/**
		  * @write to cache
		  */
		// cache.write(key, data, header.expire + now);
    });
Clone this wiki locally