mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Make findByPrimaryKeysAction public (#4079)
This commit is contained in:
parent
eeabe5cd77
commit
2166faf61d
@ -40,8 +40,10 @@ abstract class CRUDAction[T, PrimaryKeyType](implicit
|
||||
protected def findByPrimaryKeys(
|
||||
ids: Vector[PrimaryKeyType]): Query[Table[T], T, Seq]
|
||||
|
||||
protected def findByPrimaryKeysAction(ids: Vector[
|
||||
PrimaryKeyType]): DBIOAction[Vector[T], NoStream, Effect.Read] = {
|
||||
def findByPrimaryKeysAction(ids: Vector[PrimaryKeyType]): DBIOAction[
|
||||
Vector[T],
|
||||
NoStream,
|
||||
Effect.Read] = {
|
||||
if (ids.isEmpty) {
|
||||
DBIO.successful(Vector.empty)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user