- Companion:
- object
Type members
Inherited classlikes
- Inherited from:
- RowContext
Inherited types
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
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Inherited from:
- ZioJdbcContext
- Definition Classes
- 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
- Inherited from:
- JdbcContextTypes
- Inherited from:
- ContextVerbPrepare
- 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:
- 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
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.
- 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
Inherited implicits
- Inherited from:
- Decoders
- Definition Classes
- Encoders -> EncodingDsl
- Inherited from:
- Encoders