This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
student-queue
/
mariadb-plugin
Archived
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Changed config to use property "database" instead of "db" to match the mysql plugin. "database" gets mapped to "db" for the mariasql dependency. Updated package version to match.
master
Michael Bryant
4 years ago
parent
3c1674acd3
commit
ae505e2910
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
mariadb.js
+1
-1
package.json
+ 2
- 2
mariadb.js
View File
@ -116,7 +116,7 @@ function ConfigDB(obj){
if
(
this
instanceof
ConfigDB
)
{
var
that
=
this
;
if
(
!
(
obj
.
hasOwnProperty
(
"host"
)
&&
obj
.
hasOwnProperty
(
"user"
)
&&
obj
.
hasOwnProperty
(
"password"
)
&&
obj
.
hasOwnProperty
(
"db"
)
)
)
{
obj
.
hasOwnProperty
(
"d
ata
b
ase
"
)
)
)
{
throw
new
Error
(
"Missing one or more of the required options: host, user, password, db"
)
}
@ -125,7 +125,7 @@ function ConfigDB(obj){
that
.
host
=
obj
.
host
;
that
.
user
=
obj
.
user
;
that
.
password
=
obj
.
password
;
that
.
db
=
obj
.
db
;
that
.
db
=
obj
.
db
=
obj
.
database
;
// This gets set in load()
that
.
queues
=
{
}
;
+ 1
- 1
package.json
View File
@ -23,7 +23,7 @@
}
,
"homepage"
:
"https://github.com/Shadow53/student-queue-mariadb-plugin#readme"
,
"version"
:
"0.1.1
1
"
,
"version"
:
"0.1.1
2
"
,
"main"
:
"mariadb.js"
,
"devDependencies"
:
{
}
,
"scripts"
:
{