c

org.bitcoins.db

CRUDAutoInc

abstract class CRUDAutoInc[T <: DbRowAutoInc[T]] extends CRUD[T, Long] with TableAutoIncComponent[T]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CRUDAutoInc
  2. TableAutoIncComponent
  3. CRUD
  4. CRUDAction
  5. JdbcProfileComponent
  6. BitcoinSLogger
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CRUDAutoInc()(implicit ec: ExecutionContext, appConfig: DbAppConfig)

Type Members

  1. abstract class TableAutoInc[T] extends slick.jdbc.JdbcProfile.JdbcAPI.Table[T]
    Definition Classes
    TableAutoIncComponent

Abstract Value Members

  1. abstract val table: slick.jdbc.JdbcProfile.JdbcAPI.TableQuery[_ <: TableAutoInc[T]]

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    CRUDAutoIncCRUDAction

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

    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: T): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[T, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  11. def createAll(ts: Vector[T]): Future[Vector[T]]
    Definition Classes
    CRUDAutoIncCRUD
  12. def createAllAction(ts: Vector[T]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[T], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAutoIncCRUDAction
  13. lazy val database: JdbcDatabaseDef

    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. def delete(t: T): 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
  16. def deleteAction(t: T): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  17. def deleteAll(): Future[Int]

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  18. def deleteAll(ts: Vector[T]): Future[Int]
    Definition Classes
    CRUD
  19. 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
  20. def deleteAllAction(ts: Vector[T]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Int, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  21. implicit val ec: ExecutionContext
    Definition Classes
    CRUDCRUDAction
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  25. def find(t: T): slick.jdbc.JdbcProfile.JdbcAPI.Query[slick.jdbc.JdbcProfile.JdbcAPI.Table[T], T, Seq]
    Attributes
    protected
    Definition Classes
    CRUDAction
  26. def findAll(ts: Vector[T]): slick.jdbc.JdbcProfile.JdbcAPI.Query[slick.jdbc.JdbcProfile.JdbcAPI.Table[T], T, Seq]
    Definition Classes
    CRUDAutoIncCRUDAction
  27. def findAll(): Future[Vector[T]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  28. def findAllAction(): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[T], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  29. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.JdbcAPI.Query[TableAutoInc[T], T, 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
    CRUDAutoIncCRUDAction
  30. def findByPrimaryKeyAction(id: Long): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Option[T], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  31. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.JdbcAPI.Query[TableAutoInc[T], T, Seq]

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Definition Classes
    CRUDAutoIncCRUDAction
  32. def findByPrimaryKeysAction(ids: Vector[Long]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[T], slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Read]
    Definition Classes
    CRUDAction
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def logger: Logger
    Definition Classes
    BitcoinSLogger
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  41. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  42. def read(id: Long): Future[Option[T]]

    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
  43. 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
  44. val schemaName: Option[String]
    Definition Classes
    CRUD
  45. 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
  46. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. 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
  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def update(t: T): Future[T]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  51. def updateAction(t: T): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[T, slick.jdbc.JdbcProfile.JdbcAPI.NoStream, Write]
    Definition Classes
    CRUDAction
  52. def updateAll(ts: Vector[T]): Future[Vector[T]]
    Definition Classes
    CRUD
  53. def updateAllAction(ts: Vector[T]): slick.jdbc.JdbcProfile.JdbcAPI.DBIOAction[Vector[T], 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
  54. def upsert(t: T): Future[T]

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

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

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

Inherited from TableAutoIncComponent[T]

Inherited from CRUD[T, Long]

Inherited from CRUDAction[T, Long]

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped