c

org.bitcoins.wallet.models

ScriptPubKeyDAO

case class ScriptPubKeyDAO()(implicit ec: ExecutionContext, config: WalletAppConfig) extends CRUDAutoInc[ScriptPubKeyDb] with Product with Serializable

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

Instance Constructors

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

Type Members

  1. abstract class TableAutoInc[T] extends slick.jdbc.JdbcProfile.API.Table[T]
    Definition Classes
    TableAutoIncComponent
  2. case class ScriptPubKeyTable(tag: slick.jdbc.JdbcProfile.API.Tag) extends TableAutoInc[ScriptPubKeyDb] with Product with Serializable

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
    CRUDAutoIncCRUDCRUDActionJdbcProfileComponent
  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: ScriptPubKeyDb): Future[ScriptPubKeyDb]

    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: ScriptPubKeyDb): slick.jdbc.JdbcProfile.API.DBIOAction[ScriptPubKeyDb, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  10. def createAll(ts: Vector[ScriptPubKeyDb]): Future[Vector[ScriptPubKeyDb]]
    Definition Classes
    CRUDAutoIncCRUD
  11. def createAllAction(ts: Vector[ScriptPubKeyDb]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[ScriptPubKeyDb], slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAutoIncCRUDAction
  12. def createIfNotExists(spkDb: ScriptPubKeyDb): Future[ScriptPubKeyDb]

    Creates a new row in the database only if the given SPK (not ID) does not exists.

  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: ScriptPubKeyDb): 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: ScriptPubKeyDb): 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[ScriptPubKeyDb]): 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[ScriptPubKeyDb]): 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 error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. def find(t: ScriptPubKeyDb): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], ScriptPubKeyDb, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  33. def findAll(ts: Vector[ScriptPubKeyDb]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], ScriptPubKeyDb, Seq]
    Definition Classes
    CRUDAutoIncCRUDAction
  34. def findAll(): Future[Vector[ScriptPubKeyDb]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  35. def findAllAction(): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[ScriptPubKeyDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  36. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], ScriptPubKeyDb, 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

    Attributes
    protected
    Definition Classes
    CRUDAction
  37. def findByPrimaryKeyAction(id: Long): slick.jdbc.JdbcProfile.API.DBIOAction[Option[ScriptPubKeyDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  38. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.Query[TableAutoInc[ScriptPubKeyDb], ScriptPubKeyDb, Seq]

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Definition Classes
    CRUDAutoIncCRUDAction
  39. def findByPrimaryKeysAction(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[ScriptPubKeyDb], slick.jdbc.JdbcProfile.API.NoStream, Read]
    Definition Classes
    CRUDAction
  40. def findScriptPubKey(spk: ScriptPubKey): Future[Option[ScriptPubKeyDb]]

    Finds a scriptPubKey in the database, if it exists

  41. def findScriptPubKeys(spks: Vector[ScriptPubKey]): Future[Vector[ScriptPubKeyDb]]

    Searches for the given set of spks and returns the ones that exist in the db

  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  47. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  48. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  49. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  50. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  51. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  52. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  53. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  58. def productElementNames: Iterator[String]
    Definition Classes
    Product
  59. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  60. def read(id: Long): Future[Option[ScriptPubKeyDb]]

    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
  61. 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
  62. val schemaName: Option[String]
    Definition Classes
    CRUD
  63. 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
  64. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  65. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  66. val table: slick.jdbc.JdbcProfile.API.TableQuery[ScriptPubKeyTable]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    ScriptPubKeyDAOCRUDAutoIncCRUDAction
  67. 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
  68. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  71. def update(t: ScriptPubKeyDb): Future[ScriptPubKeyDb]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  72. def updateAction(t: ScriptPubKeyDb): slick.jdbc.JdbcProfile.API.DBIOAction[ScriptPubKeyDb, slick.jdbc.JdbcProfile.API.NoStream, Write]
    Definition Classes
    CRUDAction
  73. def updateAll(ts: Vector[ScriptPubKeyDb]): Future[Vector[ScriptPubKeyDb]]
    Definition Classes
    CRUD
  74. def updateAllAction(ts: Vector[ScriptPubKeyDb]): slick.jdbc.JdbcProfile.API.DBIOAction[Vector[ScriptPubKeyDb], 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
  75. def upsert(t: ScriptPubKeyDb): Future[ScriptPubKeyDb]

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

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

  79. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  82. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  83. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  84. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CRUDAutoInc[ScriptPubKeyDb]

Inherited from CRUD[ScriptPubKeyDb, Long]

Inherited from CRUDAction[ScriptPubKeyDb, Long]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped