npm.io
0.2.1-alpha.3 • Published 6 years ago

@fastpanel/mongo

Licence
MIT
Version
0.2.1-alpha.3
Deps
5
Size
18 kB
Vulns
2
Weekly
0

fastPanel MongoDB Extension.

Extension to work with "MongoDB" base.


Env

# Defines the MongoDB environment.
MONGODB_HOST='localhost'
MONGODB_PORT=27017
MONGODB_USER=''
MONGODB_PASS=''
MONGODB_DBNAME='fastPanel'

# Connection options.
MONGODB_AUTO_RECONNECT=true
MONGODB_RECONNECT_TRIES=9999
MONGODB_RECONNECT_INTERVAL=500
MONGODB_POOL_SIZE=10

Events

cli:getCommands

The event is triggered when the application is ready to register mongoose models.

  this.events.once('db:getModels', async (db: Mongoose.Connection) => {});

License

The MIT License (MIT)


(c) 2014 - 2019 Desionlab