-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
40 lines (33 loc) · 1.06 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* package: nodamysql
* author: Richard B. Winters <a href='mailto:rik@mmogp.com'>Rik At MMOGP</a>
* copyright: 2011-2015 Massively Modified, Inc.
* license: Apache, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>
*/
// Deps
var nodamysql = null;
if( process.arch == 'x64' )
{
if( process.platform == 'win32' )
{
nodamysql = require( './includables/module/precompiled/win/win8164-mysql561964/opt/nodamysql' ); // Release build
}
else
{
// Must be linux
nodamysql = require( './includables/module/precompiled/lin/deb7564-mysql561964/opt/nodamysql' );
}
}
else
{ // It's x86
if( process.platform == 'win32' )
{ // We don't actually have this yet... personally we'll always use 64-bit here at MMod.
nodamysql = require( './includables/module/precompiled/win/win732-mysql561932/opt/nodamysql' );
}
else
{
// Must be linux
nodamysql = require( './includables/module/precompiled/lin/deb7532-mysql561932/opt/nodamysql' );
}
}
module.exports = exports = nodamysql;