Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. var config = {
  2. dir: './models',
  3.  
  4. adapters: {
  5. 'memory': require('sails-memory')
  6. },
  7.  
  8. connections: {
  9. default: {
  10. adapter: 'memory'
  11. }
  12. }
  13. };
  14.  
  15. var WaterlineLighter = require('waterline-lighter')
  16.  
  17. WaterlineLighter(config)
  18. .then(function(waterline) {
  19. /*
  20. waterline.orm // waterline instance created by `new Waterline()`
  21. waterline.config // config passed to orm.initialize (with some extra opts)
  22. waterline.collections // collections loaded on the orm after inited
  23. waterline.connections // connections used by the orm after inited
  24. // The module also loads the connections and collections into the global object
  25. global.collections // same as waterline.collections
  26. global.connections // same as waterline.connections
  27. */
  28. })
  29. .then(function() {
  30. require('./app.js')
  31. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement