case class AddressDAO()(implicit ec: ExecutionContext, config: WalletAppConfig) extends CRUD[AddressRecord, BitcoinAddress] with SlickUtil[AddressRecord, BitcoinAddress] with Product with Serializable

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

Instance Constructors

  1. new AddressDAO()(implicit ec: ExecutionContext, config: WalletAppConfig)

Type Members

  1. class AddressTable extends slick.jdbc.JdbcProfile.JdbcAPI.Table[AddressRecord]

    todo: this needs design rework.

    todo: this needs design rework. todo: https://github.com/bitcoin-s/bitcoin-s-core/pull/391#discussion_r274188334

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 countAction: slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  9. def create(addressDb: AddressDb): Future[AddressDb]
  10. def create(t: AddressRecord): Future[AddressRecord]

    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
  11. def createAction(addressDb: AddressDb): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[AddressDb, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read with Write with Transactional]
  12. def createAction(t: AddressRecord): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[AddressRecord, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  13. def createAll(ts: Vector[AddressRecord]): Future[Vector[AddressRecord]]
    Definition Classes
    AddressDAOCRUD
  14. def createAllAction(ts: Vector[AddressRecord]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    SlickUtilAction
  15. def createAllNoAutoInc(ts: Vector[AddressRecord], database: SafeDatabase)(implicit ec: ExecutionContext): Future[Vector[AddressRecord]]

    Creates rows in a database that are not auto incremented

    Creates rows in a database that are not auto incremented

    Definition Classes
    SlickUtil
  16. lazy val database: JdbcDatabaseDef

    The database we are connecting to

    The database we are connecting to

    Definition Classes
    JdbcProfileComponent
  17. 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
  18. def delete(addressDb: AddressDb): Future[Int]
  19. def delete(t: AddressRecord): 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
  20. def deleteAction(t: AddressRecord): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  21. def deleteAll(): Future[Int]

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  22. def deleteAll(ts: Vector[AddressRecord]): Future[Int]
    Definition Classes
    CRUD
  23. 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
  24. def deleteAllAction(ts: Vector[AddressRecord]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  25. implicit val ec: ExecutionContext
    Definition Classes
    CRUDCRUDAction
  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: AddressRecord): slick.jdbc.JdbcProfile.JdbcAPI.Query[slick.jdbc.JdbcProfile.JdbcAPI.Table[AddressRecord], AddressRecord, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  29. def findAddress(addr: BitcoinAddress): Future[Option[AddressDb]]
  30. def findAddressAction(addr: BitcoinAddress): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[AddressDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  31. def findAll(ts: Vector[AddressRecord]): slick.jdbc.JdbcProfile.JdbcAPI.Query[AddressTable, AddressRecord, Seq]
    Definition Classes
    AddressDAOCRUDAction
  32. def findAll(): Future[Vector[AddressRecord]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  33. def findAllAction(): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  34. def findAllAddressDbForAccount(account: HDAccount): Future[Vector[AddressDb]]
  35. def findAllAddresses(): Future[Vector[AddressDb]]
  36. def findAllAddressesAction(): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  37. def findAllForAccount(account: HDAccount): Future[Vector[AddressRecord]]
  38. def findAllForAccountAction(account: HDAccount): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  39. def findAllPubkeys(): Future[Vector[ECPublicKey]]

    Finds all public keys in the wallet

  40. def findAllSPKs(): Future[Vector[ScriptPubKey]]

    Finds all SPKs in the wallet

  41. def findByPrimaryKey(id: BitcoinAddress): slick.jdbc.JdbcProfile.JdbcAPI.Query[slick.jdbc.JdbcProfile.JdbcAPI.Table[AddressRecord], AddressRecord, 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

    Attributes
    protected
    Definition Classes
    CRUDAction
  42. def findByPrimaryKeyAction(id: BitcoinAddress): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[AddressRecord], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  43. def findByPrimaryKeys(addresses: Vector[BitcoinAddress]): slick.jdbc.JdbcProfile.JdbcAPI.Query[AddressTable, AddressRecord, Seq]

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Definition Classes
    AddressDAOCRUDAction
  44. def findByPrimaryKeysAction(ids: Vector[BitcoinAddress]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  45. def findByScriptPubKey(spk: ScriptPubKey): Future[Option[AddressDb]]
  46. def findByScriptPubKeys(spks: Vector[ScriptPubKey]): Future[Vector[AddressDb]]
  47. def findByScriptPubKeysAction(spks: Vector[ScriptPubKey]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  48. def findMostRecentChange(hdAccount: HDAccount): Future[Option[AddressDb]]

    Finds the most recent change address in the wallet, if any

  49. def findMostRecentChangeAction(hdAccount: HDAccount): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[AddressDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  50. def findMostRecentExternal(hdAccount: HDAccount): Future[Option[AddressDb]]

    Finds the most recent external address in the wallet, if any

  51. def findMostRecentExternalAction(hdAccount: HDAccount): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[AddressDb], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
  52. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. def getFundedAddresses: Future[Vector[(AddressDb, CurrencyUnit)]]
  54. def getSpentAddresses: Future[Vector[AddressDb]]
  55. def getUnusedAddresses(hdAccount: HDAccount): Future[Vector[AddressDb]]
  56. def getUnusedAddresses: Future[Vector[AddressDb]]
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. def logger: Logger
    Definition Classes
    BitcoinSLogger
  59. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  63. def productElementNames: Iterator[String]
    Definition Classes
    Product
  64. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  65. def read(id: BitcoinAddress): Future[Option[AddressRecord]]

    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. val table: slick.jdbc.JdbcProfile.JdbcAPI.TableQuery[AddressTable]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    AddressDAOCRUDAction
  72. 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
  73. def update(t: AddressRecord): Future[AddressRecord]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  74. def updateAction(t: AddressRecord): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[AddressRecord, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  75. def updateAll(ts: Vector[AddressRecord]): Future[Vector[AddressRecord]]
    Definition Classes
    CRUD
  76. def updateAllAction(ts: Vector[AddressRecord]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], 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
  77. def upsert(addressDb: AddressDb): Future[AddressDb]
  78. def upsert(t: AddressRecord): Future[AddressRecord]

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

    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
  81. def upsertAllAction(ts: Vector[AddressRecord]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[AddressRecord], 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

  82. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. 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 BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped