GenericConnectionPool

wvlet.airframe.jdbc.GenericConnectionPool
class GenericConnectionPool(val config: DbConfig) extends ConnectionPool

Attributes

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

Members list

Value members

Concrete methods

override def stop: Unit

Attributes

Definition Classes
override def withConnection[U](body: Connection => U): U

Attributes

Definition Classes

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