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(
|
protected def findByPrimaryKeys(
|
||||||
ids: Vector[PrimaryKeyType]): Query[Table[T], T, Seq]
|
ids: Vector[PrimaryKeyType]): Query[Table[T], T, Seq]
|
||||||
|
|
||||||
protected def findByPrimaryKeysAction(ids: Vector[
|
def findByPrimaryKeysAction(ids: Vector[PrimaryKeyType]): DBIOAction[
|
||||||
PrimaryKeyType]): DBIOAction[Vector[T], NoStream, Effect.Read] = {
|
Vector[T],
|
||||||
|
NoStream,
|
||||||
|
Effect.Read] = {
|
||||||
if (ids.isEmpty) {
|
if (ids.isEmpty) {
|
||||||
DBIO.successful(Vector.empty)
|
DBIO.successful(Vector.empty)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user