use of org.hsqldb.jdbc.JDBCClobFile in project rxjava2-jdbc by davidmoten.
the class DatabaseTest method testUpdateClobWithClob.
@Test
public void testUpdateClobWithClob() throws SQLException {
try (Database db = db()) {
Clob clob = new JDBCClobFile(new File("src/test/resources/big.txt"));
insertNullClob(db);
//
db.update(//
"update person_clob set document = :doc").parameter("doc", //
clob).counts().test().awaitDone(TIMEOUT_SECONDS, //
TimeUnit.SECONDS).assertValue(//
1).assertComplete();
}
}
Aggregations