QuillPostgresContext
Type members
Inherited classlikes
- Inherited from:
- RowContext
Value members
Inherited methods
Internal API that cannot be made private due to how inline functions
Internal API that cannot be made private due to how inline functions
- Inherited from:
- ContextVerbStream
Internal API that cannot be made private due to how inline functions
Internal API that cannot be made private due to how inline functions
- Inherited from:
- ContextTranslateMacro
Generic encoder for JDBC arrays.
Generic encoder for JDBC arrays.
- Type parameters:
- Col
seq type
- I
raw type retrieved form JDBC array
- O
mapped type fulfilled in decoder's collection
- Value parameters:
- 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 parameters:
- Col
seq type
- T
element type
- Value parameters:
- 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 parameters:
- Col
seq type
- T
element type
- Value parameters:
- 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 parameters:
- 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 parameters:
- Col
seq type
- T
element type
- Value parameters:
- jdbcType
JDBC specific type identification, may be various regarding to JDBC driver
- Returns:
JDBC array encoder
- Inherited from:
- ArrayEncoders
- Definition Classes
- ZioJdbcContext -> Context -> Closeable -> AutoCloseable
- Inherited from:
- ZioJdbcContext
- Inherited from:
- PostgresJsonExtensions
- Inherited from:
- PostgresJsonExtensions
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Definition Classes
- ZioJdbcContext -> ZioContext -> ProtoContextSecundus
- Inherited from:
- ZioJdbcContext
- Inherited from:
- EncodingDsl
- Inherited from:
- EncodingDsl
Parses instances of java.sql.Types to string form so it can be used in creation of sql arrays. Some databases does not support each of generic types, hence it's welcome to override this method and provide alternatives to non-existent types.
Parses instances of java.sql.Types to string form so it can be used in creation of sql arrays. Some databases does not support each of generic types, hence it's welcome to override this method and provide alternatives to non-existent types.
- Value parameters:
- intType
one of java.sql.Types
- Returns:
JDBC type in string form
- Definition Classes
- PostgresJdbcTypes -> JdbcContextTypes
- Inherited from:
- PostgresJdbcTypes
- Inherited from:
- ContextVerbPrepare
- Definition Classes
- ZioJdbcContext -> ZioPrepareContext -> ContextVerbPrepare
- Inherited from:
- ZioJdbcContext
- Definition Classes
- ZioJdbcContext -> ZioPrepareContext -> ContextVerbPrepare
- Inherited from:
- ZioJdbcContext
- Definition Classes
- ZioJdbcContext -> ZioPrepareContext -> ContextVerbPrepare
- 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:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- 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 from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Inherited from:
- ContextTranslateMacro
- Definition Classes
- ZioJdbcContext -> ContextTranslateProto
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ContextTranslateProto
- Definition Classes
- ZioJdbcContext -> ContextTranslateProto
- Inherited from:
- ZioJdbcContext
Inherited fields
Since we are immediately executing the ZIO that creates this fiber ref whether it is global is not really relevant since it does not really use scope However if it were used for something else it would be scoped to the fiber-ref of the zio-jdbc context's creator i.e. the global scope.
Since we are immediately executing the ZIO that creates this fiber ref whether it is global is not really relevant since it does not really use scope However if it were used for something else it would be scoped to the fiber-ref of the zio-jdbc context's creator i.e. the global scope.
- Inherited from:
- ZioJdbcContext
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
Implicits
Inherited implicits
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayEncoding
- Inherited from:
- ArrayEncoding
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- ArrayDecoders
- Inherited from:
- PostgresJsonExtensions
- Inherited from:
- PostgresJsonExtensions
- Inherited from:
- PostgresJsonExtensions
- Inherited from:
- Decoders
- Definition Classes
- Encoders -> EncodingDsl
- Inherited from:
- Encoders