- Companion
- object
Value members
Inherited methods
Generic encoder for JDBC arrays.
Generic encoder for JDBC arrays.
- Type Params
- Col
seq type
- I
raw type retrieved form JDBC array
- O
mapped type fulfilled in decoder's collection
- Value Params
- bf
builder factory is needed to create instances of decoder's collection
- mapper
retrieved raw types fro JDBC array may be mapped via this mapper to satisfy encoder type
- Returns
JDBC array decoder
- Inherited from
- ArrayDecoders
Generic encoder for JDBC arrays.
Generic encoder for JDBC arrays.
- Type Params
- Col
seq type
- T
element type
- Value Params
- jdbcType
JDBC specific type identification, may be various regarding to JDBC driver
- mapper
jdbc array accepts AnyRef objects hence a mapper is needed. If input type of an element of collection is not comfortable with jdbcType then use this mapper to transform to appropriate type before casting to AnyRef
- Returns
JDBC array encoder
- Inherited from
- ArrayEncoders
Creates JDBC array decoder for type T
which is already supported by database as array element.
Creates JDBC array decoder for type T
which is already supported by database as array element.
- Type Params
- Col
seq type
- T
element type
- Value Params
- bf
builder factory is needed to create instances of decoder's collection
- Returns
JDBC array decoder
- Inherited from
- ArrayDecoders
Transform jdbcType int using parseJdbcType
and calls overloaded method to create Encoder
Transform jdbcType int using parseJdbcType
and calls overloaded method to create Encoder
- Value Params
- jdbcType
java.sql.Types
- See also
arrayRawEncoder(jdbcType: String)
JdbcContext#parseJdbcType(jdbcType: String)
- Inherited from
- ArrayEncoders
Creates JDBC array encoder for type T
which is already supported by database as array element.
Creates JDBC array encoder for type T
which is already supported by database as array element.
- Type Params
- Col
seq type
- T
element type
- Value Params
- jdbcType
JDBC specific type identification, may be various regarding to JDBC driver
- Returns
JDBC array encoder
- Inherited from
- ArrayEncoders
- Inherited from
- ZioJdbcContext
- Inherited from
- ZioJdbcContext
- Inherited from
- ZioJdbcContext
- Definition Classes
- Inherited from
- ZioJdbcContext
- Inherited from
- EncodingDsl
- Inherited from
- EncodingDsl
- Definition Classes
- PostgresJdbcComposition -> JdbcComposition
- Inherited from
- PostgresJdbcComposition
- Inherited from
- PrepareContext
- Definition Classes
- Inherited from
- ZioJdbcContext
- Definition Classes
- Inherited from
- ZioJdbcContext
- Definition Classes
- Inherited from
- ZioJdbcContext
Execute SQL on connection and return prepared statement. Closes the statement in a bracket.
Execute SQL on connection and return prepared statement. Closes the statement in a bracket.
- Inherited from
- ZioPrepareContext
- Inherited from
- Context
- Inherited from
- ZioJdbcContext
Execute instructions in a transaction. For example, to add a Person row to the database and return the contents of the Person table immediately after that:
Execute instructions in a transaction. For example, to add a Person row to the database and return the contents of the Person table immediately after that:
val a = run(query[Person].insert(Person(...)): ZIO[Has[DataSource], SQLException, Long]
val b = run(query[Person]): ZIO[Has[DataSource], SQLException, Person]
transaction(a *> b): ZIO[Has[DataSource], SQLException, Person]
The order of operations run in the case that a new connection needs to be aquired are as follows:
getDS from env, acquire-connection, set-no-autocommit(connection), put-into-fiberref(connection), op - the corresponding execute_ method which will execute and pull connection from the fiberref, remove-from-fiberref(connection), set-prev-autocommit(connection), release-conn
- Inherited from
- ZioJdbcContext
Inherited fields
Extensions
Inherited extensions
When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.
When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.
- Inherited from
- Context
Implicits
Inherited implicits
- Inherited from
- ArrayDecoders
- Inherited from
- ArrayDecoders
- Inherited from
- ArrayEncoding
- Inherited from
- ArrayEncoding
- Inherited from
- ArrayDecoders