H2
一场梦@bhl
这个作者很懒,什么都没留下…
展开
-
H2数据库存储文件生成方式
testCompact.h3文件生成方式H2数据库源码自带的测试类TestMVStoreToolprivate void testCompact() { String fileName = getBaseDir() + "/testCompact.h3"; FileUtils.createDirectories(getBaseDir()); //...原创 2020-03-22 21:55:02 · 1154 阅读 · 0 评论 -
H2数据库更新表字段源码分析
H2数据库更新表重复的步骤就不贴了 dml语句都要经过CommandContainer中的update方法咱就直接从这进@Override public int update() { recompileIfRequired(); setProgress(DatabaseEventListener.STATE_STATEMENT_START); ...原创 2020-03-06 16:49:40 · 1270 阅读 · 0 评论 -
H2数据库创建表源码分析
H2数据库表创建粗滤分析01创建入口@Test public void test_h2_mem() throws SQLException { JdbcConnectionPool ds = JdbcConnectionPool.create("jdbc:h2:mem:test3", "sa", "1");// JdbcConnectionPool ds = JdbcConnect...原创 2020-03-05 11:01:52 · 2304 阅读 · 3 评论 -
H2数据库查询实现源码分析
设置一个查询入口ResultSet result = stat.executeQuery("select id,name,sex,degree from userInfo where name like '%Hello World%'");H2中的JdbcStatement实现了Statement@Override public ResultSet executeQuery(Str...原创 2020-03-04 11:50:06 · 1216 阅读 · 4 评论