How do I create a database from scratch, creating the tables and populating them with some sample data, in MySQL, SQL Server as well as Oracle using a single ANT build?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What we do with ant and mysql is like this:
Prepare a SQL file like this:
Use the ant script like this:
So I think the main problem you have to deal with is to generate sample sql file, not working with Ant.
What we are doing is to write a sample-sql-builder which generates data according to ftl files (which shows the table structures). We just run it from ant, the all the logic is in pure java.