UNPKG
ts-mean
Version:
latest (4.0.1)
4.0.1
4.0.0
3.0.1
3.0.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
0.0.1
0.0.0
Boilerplate for a TS-MEAN App
github.com/tsmean/tsmean
tsmean/tsmean
ts-mean
/
backend
/
main-module
/
src
/
db.ts
10 lines
(7 loc)
•
250 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{dbadapter}
from
'@tsmean/dbadapter'
;
import
*
as
tsmongo
from
'@tsmean/mongo'
;
import
*
as
tsmysql
from
'@tsmean/mysql'
;
const
db =
require
(
'../properties/local.properties'
).
db
.
type
;
export
function
database
(
) {
return
dbadapter
(db); };