trait TxDAO[DbEntryType <: TxDB] extends CRUD[DbEntryType, DoubleSha256DigestBE] with TxCRUDComponent[DbEntryType] with SlickUtil[DbEntryType, DoubleSha256DigestBE]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TxDAO
  2. SlickUtil
  3. SlickUtilAction
  4. TxCRUDComponent
  5. CRUD
  6. CRUDAction
  7. JdbcProfileComponent
  8. Logging
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract class TxTable[DbEntryType <: TxDB] extends slick.jdbc.JdbcProfile.API.Table[DbEntryType]
    Definition Classes
    TxCRUDComponent
  2. type DbTable = TxTable[DbEntryType]

Abstract Value Members

  1. abstract val table: slick.jdbc.JdbcProfile.API.TableQuery[_ <: DbTable]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    TxDAOCRUDAction

Concrete 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: DbAppConfig
    Definition Classes
    CRUDCRUDActionJdbcProfileComponent
  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 create(t: DbEntryType): Future[DbEntryType]

    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
  9. def createAction(t: DbEntryType): slick.jdbc.JdbcProfile.API.DBIOAction[DbEntryType, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  10. def createAll(ts: Vector[DbEntryType]): Future[Vector[DbEntryType]]
    Definition Classes
    TxDAOCRUD
  11. def createAllAction(ts: Vector[DbEntryType]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[DbEntryType], slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    SlickUtilAction
  12. def createAllNoAutoInc(ts: Vector[DbEntryType], database: SafeDatabase)(implicit ec: ExecutionContext): Future[Vector[DbEntryType]]

    Creates rows in a database that are not auto incremented

    Creates rows in a database that are not auto incremented

    Definition Classes
    SlickUtil
  13. lazy val database: slick.jdbc.JdbcProfile.API.Database

    The database we are connecting to

    The database we are connecting to

    Definition Classes
    JdbcProfileComponent
  14. 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
  15. lazy val dbPassword: String
    Definition Classes
    JdbcProfileComponent
  16. lazy val dbUsername: String
    Definition Classes
    JdbcProfileComponent
  17. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  18. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def delete(t: DbEntryType): 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
  21. def deleteAction(t: DbEntryType): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  22. def deleteAll(): Future[Int]

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  23. def deleteAll(ts: Vector[DbEntryType]): Future[Int]
    Definition Classes
    CRUD
  24. def deleteAllAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.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
  25. def deleteAllAction(ts: Vector[DbEntryType]): slick.jdbc.JdbcProfile.API.DBIOAction[Int, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  26. implicit val ec: ExecutionContext
    Definition Classes
    CRUDCRUDAction
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  33. def find(t: DbEntryType): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], DbEntryType, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  34. def findAll(txs: Vector[DbEntryType]): slick.jdbc.JdbcProfile.API.Query[DbTable, DbEntryType, Seq]
    Definition Classes
    TxDAOCRUDAction
  35. def findAll(): Future[Vector[DbEntryType]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  36. def findAllAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[DbEntryType], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  37. def findByOutPoint(outPoint: TransactionOutPoint): Future[Option[DbEntryType]]
  38. def findByOutPoints(outPoints: Vector[TransactionOutPoint]): Future[Vector[DbEntryType]]
  39. def findByPrimaryKey(txIdBE: DoubleSha256DigestBE): slick.jdbc.JdbcProfile.API.Query[DbTable, DbEntryType, Seq]

    return all rows that have a certain primary key

    return all rows that have a certain primary key

    returns

    Query object corresponding to the selected rows

    Definition Classes
    TxDAOCRUDAction
  40. def findByPrimaryKeyAction(id: DoubleSha256DigestBE): slick.jdbc.JdbcProfile.API.DBIOAction[Option[DbEntryType], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  41. def findByPrimaryKeys(txIdBEs: Vector[DoubleSha256DigestBE]): slick.jdbc.JdbcProfile.API.Query[DbTable, DbEntryType, Seq]

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Definition Classes
    TxDAOCRUDAction
  42. def findByPrimaryKeysAction(ids: Vector[DoubleSha256DigestBE]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[DbEntryType], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  43. def findByTxId(txId: DoubleSha256Digest): Future[Option[DbEntryType]]
  44. def findByTxId(txIdBE: DoubleSha256DigestBE): Future[Option[DbEntryType]]
  45. def findByTxIdBEs(txIdBEs: Vector[DoubleSha256DigestBE]): Future[Vector[DbEntryType]]
  46. def findByTxIds(txIdBEs: Vector[DoubleSha256DigestBE]): Future[Vector[DbEntryType]]
  47. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  48. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  53. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  54. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  55. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  56. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  57. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  58. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  59. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  60. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  63. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  64. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  65. def read(id: DoubleSha256DigestBE): Future[Option[DbEntryType]]

    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
  66. 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
  67. val schemaName: Option[String]
    Definition Classes
    CRUD
  68. 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
  69. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. implicit def tableQuerySafeSubtypeCast[SpecificT <: AbstractTable[_], SomeT <: SpecificT](tableQuery: slick.jdbc.JdbcProfile.API.TableQuery[SomeT]): slick.jdbc.JdbcProfile.API.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
  72. def toString(): String
    Definition Classes
    AnyRef → Any
  73. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. def update(t: DbEntryType): Future[DbEntryType]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  77. def updateAction(t: DbEntryType): slick.jdbc.JdbcProfile.API.DBIOAction[DbEntryType, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  78. def updateAll(ts: Vector[DbEntryType]): Future[Vector[DbEntryType]]
    Definition Classes
    CRUD
  79. def updateAllAction(ts: Vector[DbEntryType]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[DbEntryType], slick.jdbc.JdbcProfile.API.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
  80. def upsert(t: DbEntryType): Future[DbEntryType]

    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
  81. def upsertAction(t: DbEntryType): slick.jdbc.JdbcProfile.API.DBIOAction[DbEntryType, slick.jdbc.JdbcProfile.API.NoStream, Write with Read]
    Definition Classes
    CRUDAction
  82. def upsertAll(ts: Vector[DbEntryType]): Future[Vector[DbEntryType]]

    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
  83. def upsertAllAction(ts: Vector[DbEntryType]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[DbEntryType], slick.jdbc.JdbcProfile.API.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

  84. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  87. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  88. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  89. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from SlickUtil[DbEntryType, DoubleSha256DigestBE]

Inherited from SlickUtilAction[DbEntryType, DoubleSha256DigestBE]

Inherited from TxCRUDComponent[DbEntryType]

Inherited from CRUD[DbEntryType, DoubleSha256DigestBE]

Inherited from CRUDAction[DbEntryType, DoubleSha256DigestBE]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped