/**
 * Datastores
 * (sails.config.datastores)
 *
 * A set of datastore configurations which tell Sails where to fetch or save
 * data when you execute built-in model methods like `.find()` and `.create()`.
 *
 *  > This file is mainly useful for configuring your development database,
 *  > as well as any additional one-off databases used by individual models.
 *  > Ready to go live?  Head towards `config/env/production.js`.
 *
 * For more information on configuring datastores, check out:
 * https://sailsjs.com/config/datastores
 */

module.exports.datastores = {


  /***************************************************************************
  *                                                                          *
  * Your app's default datastore.                                            *
  *                                                                          *
  * Sails apps read and write to local disk by default, using a built-in     *
  * database adapter called `sails-disk`.  This feature is purely for        *
  * convenience during development; since `sails-disk` is not designed for   *
  * use in a production environment.                                         *
  *                                                                          *
  * To use a different db _in development_, follow the directions below.     *
  * Otherwise, just leave the default datastore as-is, with no `adapter`.    *
  *                                                                          *
  * (For production configuration, see `config/env/production.js`.)          *
  *                                                                          *
  ***************************************************************************/

  default: {

    /***************************************************************************
    *                                                                          *
    * Want to use a different database during development?                     *
    *                                                                          *
    * 1. Choose an adapter:                                                    *
    *    https://sailsjs.com/plugins/databases                                 *
    *                                                                          *
    * 2. Install it as a dependency of your Sails app.                         *
    *    (For example:  npm install sails-mysql --save)                        *
    *                                                                          *
    * 3. Then pass it in, along with a connection URL.                         *
    *    (See https://sailsjs.com/config/datastores for help.)                 *
    *                                                                          *
    ***************************************************************************/
    // adapter: 'sails-mysql',
    // url: 'mysql://user:password@host:port/database',
    // adapter: 'sails-mysql',
    //url: 'mysql://root:@localhost:3306/resto',
    //adapter: 'sails-mysql',
    //url: 'mysql://corossolweb:corossolweb@localhost:3306/corossolweb',
    //url: 'mysql://prestations:prestations@localhost:3306/prestations', /// LOCAL POUR TEST
    //url: 'mysql://startPrlDgResto:startPrlDgResto@localhost:3306/startprldgresto', /// Pour créer le start
    //startPrlDgResto

    //ACT
    //adapter: 'sails-postgresql',
    // url: 'postgresql://postgres:Tango406@localhost:5432/COROSSOL3',//RESTOSTARTJDD
    //url: 'postgresql://postgres:Tango406@localhost:5432/JDD_START',
    //url: 'postgresql://postgres:Tango406@localhost:5432/perleneHerohu',

    adapter: 'sails-mysql',
    //url: 'mysql://coro_start:coro_start@localhost:3306/coro_start', 
    ///url: 'mysql://shining:shining@localhost:3306/shining',
    ///url: 'mysql://grace_test:grace_test@localhost:3306/grace_test',
    //url: 'mysql://corossol_palt:corossol_palt@localhost:3306/corossol_palt',
    url: 'mysql://stjeantest:stjeantest@localhost:3306/stjeantest',
    //url: 'mysql://don_zefirino:don_zefirino@localhost:3306/don_zefirino',
    //url: 'mysql://stlaurent_test:stlaurent_test@localhost:3306/stlaurent_test',
    ///url: 'mysql://coro_laurant:coro_laurant@localhost:3306/coro_laurant',
    ///url: 'mysql://coro_laurent_mob:coro_laurent_mob@localhost:3306/coro_laurent_mob',
    //url: 'mysql://corodev:corodev@localhost:3306/corodev',
    //url: 'mysql://corossolwebtest:corossolwebtest@localhost:3306/corossolwebtest',

  },

};
