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. JdbcProfileComponent
  5. Logging
  6. AnyRef
  7. 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.API.Table[T]
    Definition Classes
    TableAutoIncComponent

Abstract Value Members

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

    The table inside our database we are inserting into

    The table inside our database we are inserting into

    Definition Classes
    CRUDAutoIncCRUD

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
    CRUDAutoIncCRUDJdbcProfileComponent
  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: 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
  9. def createAll(ts: Vector[T]): Future[Vector[T]]
    Definition Classes
    CRUDAutoIncCRUD
  10. lazy val database: slick.jdbc.JdbcProfile.API.Database

    The database we are connecting to

    The database we are connecting to

    Definition Classes
    JdbcProfileComponent
  11. 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
  12. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  13. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  14. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  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 deleteAll(): Future[Int]

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  21. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. def find(t: T): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]

    return the row that corresponds with this record

    return the row that corresponds with this record

    t

    - the row to find

    returns

    query - the sql query to find this record

    Attributes
    protected
    Definition Classes
    CRUD
  24. def findAll(ts: Vector[T]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]
    Definition Classes
    CRUDAutoIncCRUD
  25. def findAll(): Future[Vector[T]]

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  26. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, 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
    CRUD
  27. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.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
    CRUDAutoIncCRUD
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  34. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  35. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  38. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  39. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  40. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. lazy val numThreads: Int
    Definition Classes
    JdbcProfileComponent
  45. lazy val password: String
    Definition Classes
    JdbcProfileComponent
  46. lazy val profile: JdbcProfile
    Definition Classes
    JdbcProfileComponent
  47. 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
  48. 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
  49. val schemaName: Option[String]
    Definition Classes
    CRUD
  50. 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
  51. def stopHikariLogger(): Unit
    Attributes
    protected
    Definition Classes
    JdbcProfileComponent
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. 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
  54. def toString(): String
    Definition Classes
    AnyRef → Any
  55. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  56. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  57. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  58. def update(t: T): Future[T]

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  59. def updateAll(ts: Vector[T]): Future[Vector[T]]
    Definition Classes
    CRUD
  60. 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
  61. 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
  62. lazy val username: String
    Definition Classes
    JdbcProfileComponent
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  66. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from TableAutoIncComponent[T]

Inherited from CRUD[T, Long]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped