com.augustnagro.magnum.ziomagnum
Members list
Value members
Concrete methods
Creates a ZLayer that provides a DataSource using HikariCP.
Creates a ZLayer that provides a DataSource using HikariCP.
Attributes
Runs the operation in a transaction.
Runs the operation in a transaction.
If there is already a connection set on the fiber ref.
- If auto-commit is enabled, we need to disable it and set it back to the previous value after the operation is done.
- If auto-commit is disabled, we can just run the operation using the existing connection hence same transaction. else
- Create a new connection using the DataSource in the fiber
- Transaction will be committed or rolled back depending on the success/failure of the operation.
- Will be removed from the fiber ref once the operation is done
Attributes
Extensions
Extensions
Runs the query and returns a vector of results.
Runs the query and returns a vector of results.
Attributes
Runs the query and returns a stream of results.
Runs the query and returns a stream of results.
Value parameters
- A
-
the type of the results.
- fetchSize
-
the number of rows to fetch at a time from the database.
Attributes
Runs the update and returns the number of rows affected.
Runs the update and returns the number of rows affected.
Attributes
Checks if a row with the given id exists in the table.
Checks if a row with the given id exists in the table.
Value parameters
- id
-
The id of the row to check.
Attributes
Finds all rows in the table.
Finds all rows in the table.
Attributes
Finds all rows that match the given spec.
Finds all rows that match the given spec.
Value parameters
- spec
-
The specification to use for filtering the results.
Attributes
Finds all rows with the given ids.
Finds all rows with the given ids.
Value parameters
- ids
-
The set of ids to find.
Attributes
Finds a row by its id.
Finds a row by its id.
Attributes
Counts the number of rows in the table.
Counts the number of rows in the table.
Attributes
Deletes all rows in the table.
Deletes all rows in the table.
Value parameters
- set
-
The set of elements to delete.
Attributes
Deletes all rows with the given ids.
Deletes all rows with the given ids.
Value parameters
- ids
-
The set of ids to delete.
Attributes
Counts the number of rows in the table.
Counts the number of rows in the table.
Attributes
Inserts a new row into the table.
Inserts a new row into the table.
Value parameters
- a
-
The element to insert.
Attributes
Inserts all elements in the set into the table.
Inserts all elements in the set into the table.
Value parameters
- set
-
The set of elements to insert.
Attributes
- Returns
-
The inserted elements.
Inserts all elements in the set into the table
Inserts all elements in the set into the table
Value parameters
- set
-
The set of elements to insert.
Attributes
- Returns
-
The inserted elements.
Inserts a new row into the table and returns the inserted element.
Inserts a new row into the table and returns the inserted element.
Value parameters
- a
-
The element to insert.
Attributes
- Returns
-
the inserted element.
Truncates the table, removing all rows.
Truncates the table, removing all rows.
Attributes
Updates an existing row in the table.
Updates an existing row in the table.
Value parameters
- a
-
The element to update.
Attributes
Updates all elements in the set.
Updates all elements in the set.
Value parameters
- set
-
The set of elements to update.
Attributes
Provides a ZIO-based update interface for the given Update
.
Provides a ZIO-based update interface for the given Update
.