hbwf / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

yaml/json style configurations for Migrations #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
3.0.1.GA

Please describe the problem.  Unit tests are best!
It's nice to have just one file that lists your environments and the jdbc 
settings for each.
In addition to that it would be nice to set items once (for example driver) and 
have that used across several environments.
So something like

driver: foobarDriver
username: foo
password: bar <-- supporting encrypted passwords would be nice too

development:
    url: development-db-url
staging:
    url: staging-db-url
production
    url: production-db-url

What is the expected output? What do you see instead?
It makes configurations/migrations easier.

Please provide any additional information below.

Original issue reported on code.google.com by chengt on 10 Aug 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Have you tried with the migration plugin for maven? 
http://www.99soft.org/projects/maven-migration-plugin/1.0/

Original comment by simone.t...@gmail.com on 13 Aug 2010 at 6:30

GoogleCodeExporter commented 9 years ago
I appreciate the effort that you made on the plugin.
It looks very well thought out.
I've also been a maven user/fan since it was maven 1 but this isn't really 
addressing this feature request :)

Original comment by chengt on 14 Aug 2010 at 5:16

GoogleCodeExporter commented 9 years ago
sure :P

What I really see interenting in your suggestion is the password encryption, 
I'll take a look at how maven does it[1]

About the "polyglot" configuration, it is a really interesting idea that was 
bouncing in my mind too about sql map configuration[2]... It should not be hard 
to realize since, more or less, it would concern the parser realization only, 
it could be added in a new subproject... WDYT?

Patches are always welcome, I can help you on realizing it

[1] http://maven.apache.org/guides/mini/guide-encryption.html
[2] http://markmail.org/message/abygzm6iezhe6f7z

Original comment by simone.t...@gmail.com on 17 Aug 2010 at 7:17

GoogleCodeExporter commented 9 years ago
That's a great idea about using it for sql maps too.
There's a nice blog from Beust recently about him thinking of using yaml for 
TestNG configs.
http://beust.com/weblog/2010/08/15/yaml-the-forgotten-victim-of-the-format-wars/
Although for sqlmap configs the fact that there is no 'dtd' for yaml might be 
annoying to some people from a tools perspective lol. Json has json-schema but 
I have no idea how good it is now. I tried using json-schema a while back but 
it felt a bit immature.

Original comment by chengt on 17 Aug 2010 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by nathan.m...@gmail.com on 14 Sep 2011 at 6:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Tim is now a committer so no need to keep the issue. 

Original comment by eduardo.macarron on 15 Apr 2012 at 6:22