0.3.1 • Published 11 years ago

mariastream v0.3.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

#mariastream

Simplified stream interface for mariaDB, build upon the mariasql module.

Installation

npm install mariastream

TODO

  • Support multiply querys in one statement
  • Support connectt using a mariasql instance
  • Test abort methods
  • Test usingArray: false in connection constructor
  • Relay all methods and events between mariastream and mariasql
  • Write documentation
  • Write example
  • Write stream module for type conversion

Documentation

var mariaClient = require('mariastream');

Class: Client

Client = connection(options)

Client.connect(settings, callback)

Client.close(callback)

Event: Client.on('error')

Event: Client.on('connect')

Event: Client.on('close')

Class: Statement

Statement = Client.Statement(sql, options)

Abortable = Statement.execute(params, callback);

ReadStream = Statement.readable(params)

WriteStream = Statement.writable()

DublexStream = Statement.duplex()

Class: Abortable

Abortable.abort()

Class: Stream

Stream.abort()

WriteStream.write(params)

DuplexStream.write(params)

ReadStream.read()

DuplexStream.read()

Event: Stream.on('close')

Event: Stream.on('error')

Event: Stream.on('info')

##License

The software is license under "MIT"

Copyright (c) 2013 Andreas Madsen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago