EmbeddedDBConnectionPool

wvlet.airframe.jdbc.EmbeddedDBConnectionPool
class EmbeddedDBConnectionPool(val config: DbConfig) extends ConnectionPool, Guard

SQLite or DuckDB doesn't work well with HikariCP, so creating a simple one here

Attributes

Graph
Supertypes
trait Guard
trait AutoCloseable
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def stop: Unit
def withConnection[U](body: Connection => U): U

Inherited methods

override def close(): Unit

Attributes

Definition Classes
ConnectionPool -> AutoCloseable
Inherited from:
ConnectionPool
inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def executeQuery[U](sql: String)(handler: ResultSet => U): U

Attributes

Inherited from:
ConnectionPool
def executeUpdate(sql: String): Int

Attributes

Inherited from:
ConnectionPool
def guard[U](body: => U): U

Attributes

Inherited from:
Guard
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
protected def newCondition: Condition

Attributes

Inherited from:
Guard
def query[U](sql: String)(rowHandler: ResultSet => U): Unit

Run the given SQL and pass the each row result to the rowHandler function. The caller doesn't need to explicitly call ResultSet.next() to iterate the result.

Run the given SQL and pass the each row result to the rowHandler function. The caller doesn't need to explicitly call ResultSet.next() to iterate the result.

Attributes

Inherited from:
ConnectionPool
def querySingle[U](sql: String)(rowHandler: ResultSet => U): Unit

Run the given SQL and pass a single result row to the handler. The caller doesn't need to call rs.next() explicitly.

Run the given SQL and pass a single result row to the handler. The caller doesn't need to call rs.next() explicitly.

Attributes

Inherited from:
ConnectionPool
def queryWith[U](preparedStatement: String)(body: PreparedStatement => Unit)(handler: ResultSet => U): U

Attributes

Inherited from:
ConnectionPool
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def updateWith(preparedStatement: String)(body: PreparedStatement => Unit): Unit

Attributes

Inherited from:
ConnectionPool
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
def withTransaction[U](body: Connection => U): U

Attributes

Inherited from:
ConnectionPool

Concrete fields