Add to transaction log a create operation
Add to transaction log a create operation
id of object
input
Add to transaction log a delete operation
Add to transaction log a delete operation
id of object
original object
Add to transaction log an update operation
Add to transaction log an update operation
id of object
new object
original object
Create a query for creating objects.
Create a query for creating objects. This query depends on the id type since MySQL can only return ids of autoincs
new row
Get compiled query with input applied.
Get compiled query with input applied. Adds TWO extra field for filtering
type of field1
type of field2
baseline query to add IN filter to
lambda to get id field from table
string keyprefix for storing in singleton
singleton to store compiled queries
to filter the field defined in fieldFunc
lambda function to apply first filter for extra field
value to filter first extra field on
lambda function to apply second filter for extra field
value to filter second extra field on
implicit way to query type A
implicit way to query type B
applied compiled function
Get compiled query with input applied.
Get compiled query with input applied. Adds extra field for filtering
type of field1
baseline query to add IN filter to
lambda to get id field from table
string keyprefix for storing in singleton
singleton to store compiled queries
to filter the field defined in fieldFunc
lambda function to apply filter for extra field
value to filter extra field on
implicit way to query type A
applied compiled function
Get compiled query with input applied
Get compiled query with input applied
baseline query to add IN filter to
lambda to get id field from table
string keyprefix for storing in singleton
singleton to store compiled queries
ids to filter the field defined in fieldFunc
applied compiled function
Query to filter id = something
Query to filter id in (some seq)
Retrieve ID column from query
Retrieve sequence of ids from sequence of rows
Validate create
Validate create
input to validate
DBIOAction of FormValidatorMessageSeq
Validate an update
Validate an update
input to validate
original object
DBIOAction of FormValidatorMessageSeq
Perform action to create a single object
Perform action to create a single object
object to create
run validation function
ID of object inserted or failure with exception
Perform action to create a single object
Perform action to create a single object
object to create
run validation on input using default validator
ID of object inserted or failure with exception
Perform action to create objects
Perform action to create objects
sequence of inputs
run validation function
sequence of ids or failure with exception
Perform action to create objects
Perform action to create objects
sequence of inputs
run validation on inputs using default validator
sequence of ids or failure with exception
Run a create on multiple objects in trx and return objects
Run a create on multiple objects in trx and return objects
seq of objects to save
future of seq of objects saved
Run a create and return object
Run a create and return object
model to create
future of object persisted
Run a create on multiple objects in trx
Run a create on multiple objects in trx
sequence of models
future of set of ids
Run a create
Perform a delete action on a seq of values
Perform a delete action on a seq of values
ids of objects to delete
number of rows deleted for each input
Perform a delete action
Perform a delete action
id of object to delete
number of rows deleted or failure with exception
Run a delete
Run a delete
Build a delete query
Build an inner join query between two daos
Build an inner join query between two daos
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
extra where clause
query to do join
Build a left join query between two daos
Build a left join query between two daos
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
extra where clause
query to do left join, "other" piece is option to return
Run an update on a sequence and return persisted object
Run an update on a sequence and return persisted object
a function that updates the object
future of object persisted
Perform read action
Perform action to read objects by set of ids
Perform action to read objects by set of ids
set of ids
sequence of objects
Perform action to read object by id
Perform action to read object by id
id of object
Option of object
Run a read by set of ids
Run a read by id
Build a read query for a set of ids
Build a read query based on an id
Perform action to read object by set of ids, throw exception if any not found
Perform action to read object by set of ids, throw exception if any not found
set of ids
dbioaction of sequence of model or failure with SlickException
DAOException
if any id is invalid
Perform action to read object by id, throw exception if not found
Perform action to read object by id, throw exception if not found
id of object
dbioaction of model or failure with SlickException
Run a read by set of ids requiring ids exist
Run a read by set of ids requiring ids exist
set of object ids
future of seq of models
Run a read by id requiring id to exist
Run a read
Read ids only
Read ids only
extra query params
dbioaction of sequence of ids
Run a read but only retrieve ids
Run a read but only retrieve ids
extra filters / limits
future of seq of ids
Perform read with join
Perform read with join
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
extra where clause
action of join query
Run a join
Run a join
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
extra where clause
Future of Seq of (mine, theirs)
Perform read with left join
Perform read with left join
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
extra where clause
action to do left join, "other" piece is option to return
Run a left join
Run a left join
type of other slick table
type of other slick model
type of other idtype
other DAO to join to
lambda filter function to specify "on" clause for join
future of Seq of (min, option(theirs))
Build a read query.
Build a read query. Most query functions will use this as a basis for building their queries so default filters get used throughout. The only exception is joins.
Perform a read with child table results.
Perform a read with child table results. Think many to many relationships. This actually runs a query to get results from the "parent", uses that to generate a query for "children", and then merge the data together
type of other slick table
type of other slick model
type of other idtype
return type, typically Seq[(A, Seq[B])]
other DAO that is "child"
lambda function to filter "child" table on
function to merge both resultsets
any extra query params for parent table
This function is used for "joining" the results of another DAO with this DAO.
This function is used for "joining" the results of another DAO with this DAO. It is used for many to many relationships (usually parent to child). It is meant to allow you to have for each row of this DAO, N results from another DAO. Example (this DAO is FlightPlanTable + FlightPlanModel):
readWithChild[FlightTable, FlightModel, Array[Byte], (FlightPlanModel, Seq[FlightModel])]( other = flightDao, filterChildOn = (flightPlans, flightTable) => { flightTable.flightPlanId inSet flightPlans.map(_.id.get) }, merge = (flightPlans, flights) => { val flightsMap = flights.groupBy(_.flightPlanId) flightPlans.map(plan => (plan, flightsMap.getOrElse(plan.id.get, Seq()))) } )
other Table
other Model
other ID type (String, Long, Array[Byte])
return type, for example Seq[(V, Seq[B])]
the other DAO (child)
lambda function to add a SQL filter to the child DAO. Typical usecase is if you have parent to child relationship, the child dao will filter on child.parent_id in (parent.ids). The parameters are: sequence of parent objects, child table
lambda function to merge this DAO's results with the child DAO's results. Typically you would want something like Seq[(ParentModel, Seq[ChildModel])]
optional extra filters for this DAO
Wrapper for running a trx....
Wrapper for running a trx.... SOON WE CAN PUT SOME AUDIT LOGGING IN
result type
DBIOAction
result
Perform an update action on a seq of values
Perform an update action on a seq of values
objects to update, id will be extracted
run validation on input using validation function
id of object or failure with exceptions
Perform an update action on a seq of values
Perform an update action on a seq of values
objects to update, id will be extracted
run validation on input
id of object or failure with exceptions
Perform an update action
Perform an update action
object to update, id will be extracted
run validation on input using validation function
id of object or failure with exception
Perform an update action
Perform an update action
object to update, id will be extracted
run validation on input using default validator
id of object or failure with exception
Perform an update action
Perform an update action
original object
run validation on input using validation function
function taking in original object returning an end result object to persist
id of object or failure with exception
Perform an update action
Perform an update action
original object
run validation on input using default validator
function taking in original object returning an end result object to persist
id of object or failure with exception
Perform an update action
Perform an update action
id of object
run validation on input using validation function
function taking in original object returning an end result object to persist
id of object or failure with exception
Perform an update action
Perform an update action
id of object
run validation on input using default validator
function taking in original object returning an end result object to persist
id of object or failure with exception
Run an update on multiple object in a trx and return the persisted objects
Run an update on multiple object in a trx and return the persisted objects
seq of models to persist
future of seq of objects
Run an update and return persisted object
Run an update and return persisted object
id of object to update
a function that updates the object
future of object persisted
Run an update and return persisted object
Run an update and return persisted object
object to update
future of object persisted
Update THREE fields without touching the rest of the row.
Update THREE fields without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field 1 type
field 2 type
field 3 type
id of the object
function to go from row to fields
tuple of values to set fields to
function to validate new field values and original object
original object
execution context
evidence of field 1 type
evidence of field 2 type
evidence of field 3 type
Update TWO fields without touching the rest of the row.
Update TWO fields without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field 1 type
field 2 type
id of the object
function to go from row to fields
tuple of values to set fields to
function to validate new field values and original object
original object
execution context
evidence of field 1 type
evidence of field 2 type
Update a single field without touching the rest of the row.
Update a single field without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field type
id of the object
function to go from row to field
value to set field to
function to validate new field value and original object
original object
execution context
evidence of field type
id
Update three fields without touching the rest of the row.
Update three fields without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field 1 type
field 2 type
field 3 type
id of the object
function to go from row to fields
tuple value to set fields to
function to validate new field values and original object
original object
future of id
Update two fields without touching the rest of the row.
Update two fields without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field 1 type
field 2 type
id of the object
function to go from row to fields
tuple value to set fields to
function to validate new field values and original object
original object
future of id
Update a single field without touching the rest of the row.
Update a single field without touching the rest of the row. UpdateActionFunctional actually replaces the whole row with input mixed with original
field type
id of the object
function to go from row to field
value to set field to
function to validate new field value and original object
original object
future of id
Update three field without touching the rest of the row
Update three field without touching the rest of the row
field 1 type
field 1 type
field 1 type
id of the object
function to go from row to fields
new values
execution context
evidence of field 1 type
evidence of field 2 type
evidence of field 2 type
Update two field without touching the rest of the row
Update two field without touching the rest of the row
field 1 type
field 1 type
id of the object
function to go from row to fields
new values
execution context
evidence of field 1 type
evidence of field 2 type
Update a single field without touching the rest of the row
Update a single field without touching the rest of the row
field type
id of the object
function to go from row to field
new value
execution context
evidence of field type
Run an update on multiple objects in a trx
Run an update on multiple objects in a trx
seq of models to persist
future seq of ids
Run an update
For update action try to get the id from input or throw exception
For update action try to get the id from input or throw exception
For update action try to get the original
For update action try to get the original
id of object
Option of the original
For update action log a transaction on success.
For update action log a transaction on success. On failure through the correct exception
result of the chain of actions in update action
Build an update query.
Build an update query. Return id of object
object id to update
new object to store
Validate an input using NewAndOriginal wrapper
Validate an input using NewAndOriginal wrapper
wrapper around new and original value
DBIOAction of FormValidatorMessageSeq
Throw exception if validations fails
Throw exception if validations fails
DBIOAction of FormValidatorSeq from validation function
execution context
nothing or failure with FormValidatorExceptions