ConnectionPool

wvlet.airframe.jdbc.ConnectionPool
See theConnectionPool companion object
trait ConnectionPool extends LogSupport, AutoCloseable

Attributes

Companion
object
Graph
Supertypes
trait AutoCloseable
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Abstract methods

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

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable
def executeQuery[U](sql: String)(handler: ResultSet => U): U
def executeUpdate(sql: String): Int
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

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

def queryWith[U](preparedStatement: String)(body: PreparedStatement => Unit)(handler: ResultSet => U): U
def updateWith(preparedStatement: String)(body: PreparedStatement => Unit): Unit
def withTransaction[U](body: Connection => U): U

Inherited methods

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
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
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
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