public Object run(SqlJetDb db) throws SqlJetException {
final ISqlJetTableDef createTable = db
.createTable("create table test( id integer primary key, name text )");
logger.info(createTable.toString());
db.createIndex("CREATE INDEX test_index ON test(name);");
final ISqlJetTable openTable = createDb.getTable(createTable.getName());
openTable.insert(null, "test");
openTable.insert(null, "test1");
try {
openTable.insert(null, new String(TEST_UTF8, "UTF8"));
} catch (UnsupportedEncodingException e) {
throw new SqlJetException(e);
}
createDb.getOptions().setEncoding(SqlJetEncoding.UTF16LE);
return null;