case class DLCDAO()(implicit ec: ExecutionContext, appConfig: DLCAppConfig) extends CRUD[DLCDb, Sha256Digest] with SlickUtil[DLCDb, Sha256Digest] with DLCIdDaoUtil[DLCDb, Sha256Digest] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DLCDAO
  2. Serializable
  3. Product
  4. Equals
  5. DLCIdDaoUtil
  6. SlickUtil
  7. SlickUtilAction
  8. CRUD
  9. CRUDAction
  10. JdbcProfileComponent
  11. BitcoinSLogger
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DLCDAO()(implicit ec: ExecutionContext, appConfig: DLCAppConfig)

Type Members

  1. class DLCTable extends slick.jdbc.JdbcProfile.JdbcAPI.Table[DLCDb]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val appConfig: DLCAppConfig
    Definition Classes
    DLCDAOCRUDCRUDActionJdbcProfileComponent
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def count(): Future[Int]

    Returns number of rows in the table

    Returns number of rows in the table

    Definition Classes
    CRUD
  8. def countAction: slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  9. def create(t: DLCDb): Future[DLCDb]

    create a record in the database

    create a record in the database

    t

    - the record to be inserted

    returns

    the inserted record

    Definition Classes
    CRUD
  10. def createAction(t: DLCDb): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[DLCDb, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  11. def createAll(ts: Vector[DLCDb]): Future[Vector[DLCDb]]
    Definition Classes
    DLCDAOCRUD
  12. def createAllAction(ts: Vector[DLCDb]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    SlickUtilAction
  13. def createAllNoAutoInc(ts: Vector[DLCDb], database: SafeDatabase)(implicit ec: ExecutionContext): Future[Vector[DLCDb]]

    Creates rows in a database that are not auto incremented

    Creates rows in a database that are not auto incremented

    Definition Classes
    SlickUtil
  14. lazy val database: JdbcDatabaseDef

    The database we are connecting to

    The database we are connecting to

    Definition Classes
    JdbcProfileComponent
  15. lazy val dbConfig: DatabaseConfig[JdbcProfile]

    The configuration details for connecting/using the database for our projects that require database connections

    The configuration details for connecting/using the database for our projects that require database connections

    Definition Classes
    JdbcProfileComponent
  16. def delete(t: DLCDb): Future[Int]

    delete the corresponding record in the database

    delete the corresponding record in the database

    t

    - the record to be deleted

    returns

    int - the number of rows affected by the deletion

    Definition Classes
    CRUD
  17. def deleteAction(t: DLCDb): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  18. def deleteAll(): Future[Int]

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  19. def deleteAll(ts: Vector[DLCDb]): Future[Int]
    Definition Classes
    CRUD
  20. def deleteAllAction(): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write with Transactional]

    WARNING: Deletes all rows in table, use with care

    WARNING: Deletes all rows in table, use with care

    Definition Classes
    CRUDAction
  21. def deleteAllAction(ts: Vector[DLCDb]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  22. def deleteByDLCId(dlcId: Sha256Digest): Future[Int]
    Definition Classes
    DLCIdDaoUtil
  23. def deleteByDLCIdAction(dlcId: Sha256Digest): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    DLCDAODLCIdDaoUtil
  24. def deleteDLCContactMapping(dlcId: Sha256Digest): Future[Unit]
  25. implicit val ec: ExecutionContext
    Definition Classes
    DLCDAOCRUDCRUDAction
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  28. def find(t: DLCDb): slick.jdbc.JdbcProfile.JdbcAPI.Query[slick.jdbc.JdbcProfile.JdbcAPI.Table[DLCDb], DLCDb, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  29. def findAll(dlcs: Vector[DLCDb]): slick.jdbc.JdbcProfile.JdbcAPI.Query[DLCTable, DLCDb, Seq]
    Definition Classes
    DLCDAOCRUDAction
  30. def findAll(): Future[Vector[DLCDb]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  31. def findAllAction(): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  32. def findByContactId(contactId: String): Future[Vector[DLCDb]]
  33. def findByContactIdAction(contactId: String): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  34. def findByContractId(contractId: ByteVector): Future[Option[DLCDb]]
  35. def findByDLCId(dlcId: Sha256Digest): Future[Option[DLCDb]]
    Definition Classes
    DLCIdDaoUtil
  36. def findByDLCIdAction(dlcId: Sha256Digest): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    DLCIdDaoUtil
  37. def findByDLCIds(dlcIds: Vector[Sha256Digest]): Future[Vector[DLCDb]]
  38. def findByDLCIdsAction(dlcIds: Vector[Sha256Digest]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    DLCDAODLCIdDaoUtil
  39. def findByDLCSerializationVersion(version: DLCSerializationVersion): Future[Vector[DLCDb]]
  40. def findByFundingOutPoint(outPoint: TransactionOutPoint): Future[Option[DLCDb]]
  41. def findByFundingOutPoints(outPoints: Vector[TransactionOutPoint]): Future[Vector[DLCDb]]
  42. def findByFundingTxId(txId: DoubleSha256DigestBE): Future[Vector[DLCDb]]
  43. def findByPrimaryKey(id: Sha256Digest): slick.jdbc.JdbcProfile.JdbcAPI.Query[DLCTable, DLCDb, Seq]

    return all rows that have a certain primary key

    return all rows that have a certain primary key

    id

    primary key of the row to return

    returns

    Query object corresponding to the selected rows

    Definition Classes
    DLCDAOCRUDAction
  44. def findByPrimaryKeyAction(id: Sha256Digest): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  45. def findByPrimaryKeys(ids: Vector[Sha256Digest]): slick.jdbc.JdbcProfile.JdbcAPI.Query[DLCTable, DLCDb, Seq]

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Attributes
    protected
    Definition Classes
    DLCDAOCRUDAction
  46. def findByPrimaryKeysAction(ids: Vector[Sha256Digest]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  47. def findByState(state: DLCState): Future[Vector[DLCDb]]
  48. def findByStateAction(state: DLCState): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  49. def findByStatesAction(states: Vector[DLCState]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  50. def findByTempContractId(tempContractId: Sha256DigestBE): Future[Option[DLCDb]]
  51. def findByTempContractId(tempContractId: Sha256Digest): Future[Option[DLCDb]]
  52. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  54. def logger: Logger
    Definition Classes
    BitcoinSLogger
  55. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  56. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  58. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  59. def productElementNames: Iterator[String]
    Definition Classes
    Product
  60. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  61. def read(id: Sha256Digest): Future[Option[DLCDb]]

    read a record from the database

    read a record from the database

    id

    - the id of the record to be read

    returns

    Option[T] - the record if found, else none

    Definition Classes
    CRUD
  62. def safeDatabase: SafeDatabase

    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

    Definition Classes
    CRUD
  63. val schemaName: Option[String]
    Definition Classes
    CRUD
  64. def startHikariLogger(interval: Duration): HikariLogging

    Starts the background logger for hikari

    Starts the background logger for hikari

    interval

    - how often hikari logs database connection pool information

    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  65. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  66. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  67. val table: slick.jdbc.JdbcProfile.JdbcAPI.TableQuery[DLCTable]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    DLCDAOCRUDAction
  68. implicit def tableQuerySafeSubtypeCast[SpecificT <: AbstractTable[_], SomeT <: SpecificT](tableQuery: slick.jdbc.JdbcProfile.JdbcAPI.TableQuery[SomeT]): slick.jdbc.JdbcProfile.JdbcAPI.TableQuery[SpecificT]

    We need to cast from TableQuery's of internal types (e.g.

    We need to cast from TableQuery's of internal types (e.g. AddressDAO#AddressTable) to external versions of them (e.g. AddressDAO().table). You'll notice that although the latter is a subtype of the first, this requires a cast since TableQuery is not covariant in its type parameter.

    However, since Query is covariant in its first type parameter, I believe the cast from TableQuery[T1] to TableQuery[T2] will always be safe so long as T1 is a subtype of T2 AND T1#TableElementType is equal to T2#TableElementType.

    The above conditions are always the case when this is called within DAOs as it is only ever used for things of the form TableQuery[XDAO().table] -> TableQuery[XDAO#XTable].

    Attributes
    protected
    Definition Classes
    CRUD
  69. def update(t: DLCDb): Future[DLCDb]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  70. def updateAction(t: DLCDb): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[DLCDb, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  71. def updateAll(ts: Vector[DLCDb]): Future[Vector[DLCDb]]
    Definition Classes
    CRUD
  72. def updateAllAction(ts: Vector[DLCDb]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]

    Updates all of the given ts.

    Updates all of the given ts. Returns all ts that actually existed in the database and got updated This method discards things that did not exist in the database, thus could not be updated

    Definition Classes
    CRUDAction
  73. def updateDLCContactMapping(dlcId: Sha256Digest, contcatId: InetSocketAddress): Future[Unit]
  74. def upsert(t: DLCDb): Future[DLCDb]

    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

    t

    - the record to inserted / updated

    returns

    t - the record that has been inserted / updated

    Definition Classes
    CRUD
  75. def upsertAction(t: DLCDb): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[DLCDb, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write with Read]
    Definition Classes
    CRUDAction
  76. def upsertAll(ts: Vector[DLCDb]): Future[Vector[DLCDb]]

    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

    Definition Classes
    CRUD
  77. def upsertAllAction(ts: Vector[DLCDb]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[DLCDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write with Read]

    Upsert all of the given ts.

    Upsert all of the given ts. Returns all ts that were inserted or updated

    Definition Classes
    CRUDAction
    See also

    https://scala-slick.org/doc/3.3.3/queries.html#upserting

  78. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SlickUtil[DLCDb, Sha256Digest]

Inherited from CRUD[DLCDb, Sha256Digest]

Inherited from CRUDAction[DLCDb, Sha256Digest]

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped