Hi, I don't understand why the database would need to have the same name. You can have two databases with different names, but the same data and schema. Why the same name?
Are you sure you need two databases? Why not run the tests against the same database? Regards, Thomas On Tuesday, May 6, 2014, <gilber...@gmail.com> wrote: > Hello H2 community, > > Here is a quick question about H2. Is it possible to create 2 H2 databases > with the same database names in memory? > > Let me give a quick introduction to my project. I am required to write > integration tests (I use Spring/Hibernate). In order to fulfill the tests, > I need two exactly identical databases (schema and data). My boss requested > me not to create a H2 database on my computer's hard driver. What he really > liked was in-memory databases. However, how can I create two > in-memory databases with same names? > Is there any way to distinguish each other? > > Thanks so much > > Gilbert > > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > h2-database+unsubscr...@googlegroups.com<javascript:_e(%7B%7D,'cvml','h2-database%2bunsubscr...@googlegroups.com');> > . > To post to this group, send email to > h2-database@googlegroups.com<javascript:_e(%7B%7D,'cvml','h2-database@googlegroups.com');> > . > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To post to this group, send email to h2-database@googlegroups.com. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.