Update docs and readme
This commit is contained in:
parent
85da806158
commit
bc959b4952
@ -26,6 +26,11 @@ A node query builder for various SQL databases, based on CodeIgniter's query bui
|
|||||||
// Three arguments: database type, database connection, database connection library
|
// Three arguments: database type, database connection, database connection library
|
||||||
var query = nodeQuery.init('mysql', connection, 'mysql2');
|
var query = nodeQuery.init('mysql', connection, 'mysql2');
|
||||||
|
|
||||||
|
// The third argument is optional if the database connection library has the same name as the adapter, eg..
|
||||||
|
nodeQuery.init('mysql', connection, 'mysql');
|
||||||
|
// Can be instead
|
||||||
|
nodeQuery.init('mysql', connection);
|
||||||
|
|
||||||
// You can also retrieve the instance later
|
// You can also retrieve the instance later
|
||||||
query = nodeQuery.getQuery();
|
query = nodeQuery.getQuery();
|
||||||
|
|
||||||
|
@ -109,6 +109,11 @@ var connection = ... // Database module connection
|
|||||||
// Three arguments: database type, database connection, database connection library
|
// Three arguments: database type, database connection, database connection library
|
||||||
var query = nodeQuery.init('mysql', connection, 'mysql2');
|
var query = nodeQuery.init('mysql', connection, 'mysql2');
|
||||||
|
|
||||||
|
// The third argument is optional if the database connection library has the same name as the adapter, eg..
|
||||||
|
nodeQuery.init('mysql', connection, 'mysql');
|
||||||
|
// Can be instead
|
||||||
|
nodeQuery.init('mysql', connection);
|
||||||
|
|
||||||
// You can also retrieve the instance later
|
// You can also retrieve the instance later
|
||||||
query = nodeQuery.getQuery();
|
query = nodeQuery.getQuery();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user