Skip to content

Commit

Permalink
Deprecate methods that take multiple elements
Browse files Browse the repository at this point in the history
  • Loading branch information
lorandszakacs committed Apr 5, 2021
1 parent 52a1dd6 commit 85e306f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ trait PureharmDBCoreAliases {
final type SchemaName = db.SchemaName.Type

final type DBConnectionConfig = db.DBConnectionConfig

@scala.deprecated(
"Companion object that depends on pureharm-config will be deprecated and removed. Use pureharm-config-ciris in userland to read the config instead.",
"0.2.0",
)
final val DBConnectionConfig: db.DBConnectionConfig.type = db.DBConnectionConfig

final type Repo[R[_], E, PK] = db.Repo[R, E, PK]
Expand Down
5 changes: 5 additions & 0 deletions db-core/src/main/scala/busymachines/pureharm/db/Repo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,24 @@ trait Repo[R[_], E, PK] {

def insert(e: E): R[PK]

@scala.deprecated("Will be removed in 0.3.0", "0.2.0")
def insertMany(es: Iterable[E]): R[Unit]

def update(e: E): R[E]

@scala.deprecated("Will be removed in 0.3.0", "0.2.0")
def updateMany[M[_]: Traverse](es: M[E]): R[Unit]

def delete(pk: PK): R[Unit]

@scala.deprecated("Will be removed in 0.3.0", "0.2.0")
def deleteMany(pks: Iterable[PK]): R[Unit]

def exists(pk: PK): R[Boolean]

@scala.deprecated("Will be removed in 0.3.0", "0.2.0")
def existsAtLeastOne(pks: Iterable[PK]): R[Boolean]

@scala.deprecated("Will be removed in 0.3.0", "0.2.0")
def existAll(pks: Iterable[PK]): R[Boolean]
}

0 comments on commit 85e306f

Please sign in to comment.