tommiehansen / gab

Gekko Automated Backtests
57 stars 19 forks source link

Add database name in MySQL section #25

Open GO1984 opened 6 years ago

GO1984 commented 6 years ago

After switching to MySQL i noticed a mess up with the database names inside, due to the lots of sets. Therefore my suggestion to add a name in MySQL for the database like:

Example for mysql: '127.0.0.1:3306,DatabsaeName,TommieHansenIsTheBest,MySuperPassword'

Under MySQL there coud the be a singe datbase set like 'gab'.

In gekko itself there is in sample-config.js with a similar option for the postgresql database. There you can optional set a name for the databese inside postgresql. Not shure, ift this works in MySQL too.

// Postgres adapter example config (please note: requires postgres >= 9.5): config.postgresql = { path: 'plugins/postgresql', version: 0.1, connectionString: 'postgres://user:pass@localhost:5432', // if default port database: null, // if set, we'll put all tables into a single database. schema: 'public', dependencies: [{ module: 'pg', version: '6.1.0' }] }

Maybe you agree and can add this feature. Thank you for your hard work and shareing this wonderful software.