- Companion
- object
Value members
Inherited methods
- 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 Params
- intType
one of java.sql.Types
- Returns
JDBC type in string form
- Inherited from
- JdbcComposition
- 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