The table inside our database we are inserting into
The table inside our database we are inserting into
Returns number of rows in the table
Returns number of rows in the table
create a record in the database
create a record in the database
- the record to be inserted
the inserted record
Binding to the actual database itself, this is what is used to run querys
Binding to the actual database itself, this is what is used to run querys
delete the corresponding record in the database
delete the corresponding record in the database
- the record to be deleted
int - the number of rows affected by the deletion
delete all records from the table
delete all records from the table
return the row that corresponds with this record
return the row that corresponds with this record
- the row to find
query - the sql query to find this record
Finds all elements in the table
Finds all elements in the table
return all rows that have a certain primary key
return all rows that have a certain primary key
Query object corresponding to the selected rows
Finds the rows that correlate to the given primary keys
Finds the rows that correlate to the given primary keys
read a record from the database
read a record from the database
- the id of the record to be read
Option[T] - the record if found, else none
Update the corresponding record in the database
Update the corresponding record in the database
Updates all of the given ts in the database
Updates all of the given ts in the database
insert the record if it does not exist, update it if it does
insert the record if it does not exist, update it if it does
- the record to inserted / updated
t - the record that has been inserted / updated
Upserts all of the given ts in the database, then returns the upserted values
Upserts all of the given ts in the database, then returns the upserted values