Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Mongoose

A mongo db migration tool written in native javascipt.

Mongoose Working

Mongoose works by executing the mongo scripts from the folder migrations. The scripts named as:

    execute-order_migration-name.js

    eg: 0001_my_first_migration.js

The migrations are executed sorted in the order using the execution order. Once a script is executed, mongoose keeps a tack and dowsnot execute it in case Mongoose is run again. In order to do so, it keeps track of the migration file name.

Executing Mongoose

  1. cd into the mongoose directory.

  2. run the mongoose.js on mongo console as:

     mongo <dbname> -u <username> -p <password> --host <host name> --port <port number> mongoose.js
    

About

A mongo db migration tool written in native javascipt.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages