busymachines.pureharm.db

Type members

Classlikes

final case class DBBatchInsertFailedAnomaly(expectedSize: Int, actualSize: Int, causedBy: Option[Throwable]) extends InvalidInputAnomaly
Companion
object
final case class DBConnectionConfig(host: DBHost, port: DBPort, dbName: DatabaseName, username: DBUsername, password: DBPassword, schema: Option[SchemaName])
Since

16 Jun 2019

final case class DBDeleteByPKFailedAnomaly(pk: String) extends InvalidInputAnomaly
Companion
object
final case class DBEntryNotFoundAnomaly(pk: String, causedBy: Option[Throwable]) extends NotFoundAnomaly
Companion
object
final case class DBForeignKeyConstraintViolationAnomaly(table: String, constraint: String, column: String, value: String, foreignTable: String) extends ConflictAnomaly
Companion
object
object DBHost extends SproutSub[String]
object DBPassword extends SproutSub[String]
object DBPort extends SproutSub[Int]
final case class DBUniqueConstraintViolationAnomaly(column: String, value: String) extends ConflictAnomaly
Companion
object
object DBUsername extends SproutSub[String]
object DatabaseName extends SproutSub[String]
object JDBCUrl extends SproutSub[String]

This trait provides convenience aliases to mix in directly into client code in order to minimize imports.

This trait provides convenience aliases to mix in directly into client code in order to minimize imports.

Since

02 Apr 2019

trait Repo[R[_], E, PK]
Type Params
E

The type of elements manipulated by this DAO

PK

The "primary key", or "id" if you will, by which elements of type E are identified.

Since

04 Apr 2019

object SchemaName extends SproutSub[String]
object TableName extends SproutSub[String]

Types

final type DBHost = Type

Do not include port in the hostname, configured via DBPort

Do not include port in the hostname, configured via DBPort

final type DBPassword = Type
final type DBPort = Type
final type DBUsername = Type
final type DatabaseName = Type
final type JDBCUrl = Type
final type SchemaName = Type
final type TableName = Type