hi, I have a requirement for code to create tables dynamically, the code works fine in H2 version 1.x
final Session session = connection.getSession(); final Database database = session.getDatabase(); final Schema schema = database.getSchema(session.getCurrentSchemaName()); final CreateTableData createTableData = new CreateTableData(); createTableData.schema = schema; createTableData.tableName = tableName; createTableData.id = database.allocateObjectId(); createTableData.temporary = false; createTableData.globalTemporary = false; createTableData.persistIndexes = false; createTableData.persistData = false; createTableData.create = true; createTableData.session = session; However in 2.x, database cannot get directly from session. Is there doc show how to solve or someone can help me thx in advance -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/d494c369-fcca-4654-a7bd-f30359b94079n%40googlegroups.com.
