Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait PostgresJsonExtensionstrait PostgresJdbcTypes[PostgresDialect, N]trait ArrayEncoderstrait ArrayDecoderstrait ArrayEncodingtrait UUIDObjectEncodingtrait BooleanObjectEncodingtrait ObjectGenericTimeDecoderstrait ObjectGenericTimeEncoderstrait ZioTranslateContext[PostgresDialect, N]trait ContextTranslateMacro[PostgresDialect, N]trait ContextTranslateProto[PostgresDialect, N]trait ContextVerbPrepare[PostgresDialect, N]trait JdbcContextTypes[PostgresDialect, N]trait Decoderstrait Encoderstrait SqlContext[PostgresDialect, N]trait ZioContext[PostgresDialect, N]trait ContextVerbStream[PostgresDialect, N]trait ProtoStreamContext[PostgresDialect, N]trait Context[PostgresDialect, N]trait Closeabletrait AutoCloseabletrait EncodingDsltrait LowPriorityImplicitstrait ProtoContextSecundus[PostgresDialect, N]trait RowContextclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- RowContext
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- RowContext
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- Context
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Decoders
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericDecoder[ResultRow, Session, T, Specific]trait (Int, ResultRow, Session) => Tclass Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- Encoders
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GenericEncoder[T, PrepareRow, Session]trait (Int, T, PrepareRow, Session) => PrepareRowclass Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- JdbcContextTypes
- Supertypes
-
trait GenericNullChecker[ResultRow, Session]class Objecttrait Matchableclass Any
Inherited types
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- ArrayEncoding
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- RowContext
Attributes
- Inherited from:
- JdbcContextTypes
Attributes
- Inherited from:
- JdbcContextTypes
Attributes
- Inherited from:
- RowContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- EncodingDsl
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Future class to hold things like ExecutionContext for Cassandra etc...
Future class to hold things like ExecutionContext for Cassandra etc...
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
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
Attributes
- Inherited from:
- ContextVerbStream
Attributes
- Inherited from:
- ContextVerbPrepare
Internal API that cannot be made private due to how inline functions
Internal API that cannot be made private due to how inline functions
Attributes
- 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
Attributes
- 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
Attributes
- 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
Attributes
- 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
Attributes
- 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
Attributes
- Returns
-
JDBC array encoder
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Definition Classes
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
-
ZioJdbcContext -> Context
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- RowContext
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Definition Classes
-
PostgresJdbcTypes -> ObjectGenericTimeEncoders
- Inherited from:
- PostgresJdbcTypes
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- EncodingDsl
Attributes
- 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
Attributes
- Returns
-
JDBC type in string form
- Definition Classes
-
PostgresJdbcTypes -> JdbcContextTypes
- Inherited from:
- PostgresJdbcTypes
Attributes
- Inherited from:
- ContextVerbPrepare
Attributes
- Inherited from:
- ContextVerbPrepare
Attributes
- Inherited from:
- ContextVerbPrepare
Attributes
- Inherited from:
- ContextVerbPrepare
Attributes
- Definition Classes
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ContextTranslateProto
Attributes
- 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.
Attributes
- Inherited from:
- ZioPrepareContext
Attributes
- Definition Classes
-
ZioTranslateContext -> ContextTranslateProto
- Inherited from:
- ZioTranslateContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
-
ZioTranslateContext -> ContextTranslateProto
- Inherited from:
- ZioTranslateContext
Attributes
- Inherited from:
- ContextVerbStream
Attributes
- Inherited from:
- ContextVerbStream
Attributes
- 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
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Inherited from:
- ContextTranslateMacro
Attributes
- Definition Classes
-
ZioJdbcContext -> ContextTranslateProto
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- ContextTranslateProto
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
-
ZioJdbcContext -> ContextTranslateProto
- Inherited from:
- ZioJdbcContext
Attributes
- Definition Classes
-
ZioTranslateContext -> ContextTranslateProto
- Inherited from:
- ZioTranslateContext
Concrete fields
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.
Attributes
- Inherited from:
- ZioJdbcContext
Attributes
- Inherited from:
- JdbcContextTypes
Attributes
- Inherited from:
- RowContext
Attributes
- Inherited from:
- ZioJdbcContext
Extensions
Inherited extensions
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
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.
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Context
Implicits
Inherited implicits
Attributes
- Inherited from:
- LowPriorityImplicits
Attributes
- Inherited from:
- LowPriorityImplicits
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayEncoding
Attributes
- Inherited from:
- ArrayEncoding
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- ArrayDecoders
Attributes
- Inherited from:
- ArrayEncoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- BooleanObjectEncoding
Attributes
- Inherited from:
- BooleanObjectEncoding
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Context
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- PostgresJsonExtensions
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Definition Classes
-
Encoders -> EncodingDsl
- Inherited from:
- Encoders
Attributes
- Inherited from:
- JdbcContextTypes
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- Decoders
Attributes
- Inherited from:
- Encoders
Attributes
- Inherited from:
- UUIDObjectEncoding
Attributes
- Inherited from:
- UUIDObjectEncoding
Attributes
- Inherited from:
- ObjectGenericTimeDecoders
Attributes
- Inherited from:
- ObjectGenericTimeEncoders