0.5.7 • Published 8 years ago

@nasirb/nbnodejsdb v0.5.7

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

#NBNodeJSDB -

Node JS DB Files

This is a DB Wrapper that allows me to access SQL Server and MySQL in the same manner. It consists of several classes like DBConnection, DBTable, DBQuery, a rudimentary non caching ORM, a simple CRUD enabler. All of these can be accessed via the DBConnectionFactory

You start with DBConnectionFactory.setConnectionParameters Pass in the conn object

Then for your main loop you start with DBConnectionFactory.initConnecitonPool(function(err, result){ if (err){ choke... }else{ run your shit here.... } })

DBConnectionFactory.getSQLTable(...): returns a table object using the given table name in the callback function

DBConnectionFactory.getSQLQuery(...): returns a query object using the given table name in the callback function

DBConnectionFactory.executeSQLQuery(...): executes a sql and returns the results object in the callback function

DBConnectionFactory.getSQLModel(...): returns a GenericSimpleTableModel (pseudo ORM) object using the given table name in the callback function

Todo: Support Promises and event listeners and not just callbacks

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago