unit testing - How to export a ddl script from an Oracle 10 schema to create tables and constraints in H2-database? -


we use h2 in-memory database automated testing of our web-applications. use oracle 10 our production , development environments.

so idea duplicate table structure in h2 test-database in our oracle dev-database.

it there easy way extract ddls oracle 10 schema (tables , constraints) executed against h2 database?

i'd have ask 'proving' if test environment using different database engine actual implementation. example h2 has date datatype date. in oracle date datatype stores time well.

if decide go route, rather trying convert oracle ddl syntax h2 you'd better off designing data structures in modelling tool , using 'source of truth'. tool should capable of exporting / creating ddl in both oracle , h2 formats. tools should support oracle, though h2 might little trickier.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -