Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Overloading SQL API (driver function) #153

Open
anak10thn opened this issue Feb 24, 2015 · 1 comment
Open

Overloading SQL API (driver function) #153

anak10thn opened this issue Feb 24, 2015 · 1 comment

Comments

@anak10thn
Copy link
Owner

MYSQL

Option

Properties Value
driver mysql
db String
hostname String
username String
password String

example

var config = {
 driver : 'mysql',
 db : 'database_name',
 hostname : 'localhost',
 username : 'root',
 password : 'pass123'
}

var sql = ign.sql();

if(sql.driver(config)){
 alert(true);
}
else{
 alert(false);
}

SQLite 3

Properties Value
driver sqlite
db String

SQLite 2

Properties Value
driver sqlite2
db String
var config = {
 driver : 'sqlite',
 db : '/path/to/file.db'
}

var sql = ign.sql();

if(sql.driver(config)){
 alert(true);
}
else{
 alert(false);
}
@anak10thn anak10thn added this to the 1.1.7 milestone Feb 24, 2015
anak10thn added a commit that referenced this issue Feb 24, 2015
ADD: overloading driver function issue #153
@anak10thn
Copy link
Owner Author

#151

@anak10thn anak10thn reopened this Mar 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant