package jdbc
- Alphabetic
- By Inheritance
- jdbc
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait JdbcDecoder[+A] extends AnyRef
A type class that describes the ability to decode a value of type
Afrom aResultSet. - final case class JdbcDecoderError(message: String, cause: Throwable, metadata: ResultSetMetaData, row: Int, column: Option[Int] = None) extends IOException with Product with Serializable
- trait JdbcDecoderLowPriorityImplicits extends AnyRef
- trait JdbcEncoder[-A] extends AnyRef
A type class that describes the ability to convert a value of type
Ainto a fragment of SQL.A type class that describes the ability to convert a value of type
Ainto a fragment of SQL. This is useful for forming SQL insert statements. - trait JdbcEncoder0LowPriorityImplicits extends AnyRef
- final case class JdbcEncoderError(message: String, cause: Throwable) extends IOException with Product with Serializable
- final case class Query[+A](sql: SqlFragment, decode: (ZResultSet) => A) extends Product with Serializable
- sealed trait SqlFragment extends AnyRef
A
SqlFragmentrepresents part or all of a SQL query.A
SqlFragmentrepresents part or all of a SQL query. The SQL is described by a sequence of segments, each segment being either a fragment of SQL, or a value to be inserted into the query in a way that is safe from SQL injection attacks. - final class SqlInterpolator extends AnyVal
An interpolator for SQL strings, which produces
SqlFragmentvalues. - sealed trait TransactionIsolationLevel extends ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]
- final case class UpdateResult(rowsUpdated: Long, updatedKeys: Chunk[Long]) extends Product with Serializable
- final class ZConnection extends AnyVal
A
ZConnectionis a straightforward wrapper aroundjava.sql.Connection.A
ZConnectionis a straightforward wrapper aroundjava.sql.Connection. In order to avoid needless duplication of code, one can safely access the underlying JDBCConnectionthrough theaccessmethod. Any such access will be attempted on the blocking thread pool. - abstract class ZConnectionPool extends AnyRef
A
ZConnectionPoolrepresents a pool of connections, and has the ability to supply a transaction that can be used for executing SQL statements. - final case class ZConnectionPoolConfig(minConnections: Int, maxConnections: Int, retryPolicy: Schedule[Any, Throwable, Any], timeToLive: zio.Duration) extends Product with Serializable
Configuration data for a connection pool.
- final class ZResultSet extends AnyRef
A
ZResultSetis a straightforward wrapper aroundjava.sql.ResultSet.A
ZResultSetis a straightforward wrapper aroundjava.sql.ResultSet. In order to avoid needless duplication of code, one can safely access the underlying JDBCResultSetthrough theaccessmethod. Any such access will be attempted on the blocking thread pool.
Value Members
- implicit def sqlInterpolator(sc: StringContext): SqlInterpolator
- implicit def stringToSql(s: String): SqlFragment
Converts a String into a pure SQL expression
- val transaction: ZLayer[ZConnectionPool, Throwable, ZConnection]
A new transaction, which may be applied to ZIO effects that require a connection in order to execute such effects in the transaction.
- object JdbcDecoder extends JdbcDecoderLowPriorityImplicits
- object JdbcEncoder extends JdbcEncoder0LowPriorityImplicits
- object Query extends Serializable
- object SqlFragment
- object TransactionIsolationLevel
- object ZConnection
- object ZConnectionPool
- object ZConnectionPoolConfig extends Serializable
- object ZResultSet