Class

org.bitcoins.db

CRUDAutoInc

Related Doc: package db

Permalink

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

Linear Supertypes
CRUD[T, Long], DatabaseLogger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CRUDAutoInc
  2. CRUD
  3. DatabaseLogger
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CRUDAutoInc()(implicit config: AppConfig, ec: ExecutionContext)

    Permalink

Abstract Value Members

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def count(): Future[Int]

    Permalink

    Returns number of rows in the table

    Returns number of rows in the table

    Definition Classes
    CRUD
  7. def create(t: T): Future[T]

    Permalink

    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
  8. def createAll(ts: Vector[T]): Future[Vector[T]]

    Permalink
    Definition Classes
    CRUDAutoIncCRUD
  9. def database: SafeDatabase

    Permalink

    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
  10. def delete(t: T): Future[Int]

    Permalink

    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
  11. def deleteAll(): Future[Int]

    Permalink

    delete all records from the table

    delete all records from the table

    Definition Classes
    CRUD
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def find(t: T): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]

    Permalink

    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
  16. def findAll(ts: Vector[T]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]

    Permalink
    Definition Classes
    CRUDAutoIncCRUD
  17. def findAll(): Future[Vector[T]]

    Permalink

    Finds all elements in the table

    Finds all elements in the table

    Definition Classes
    CRUD
  18. def findByPrimaryKey(id: Long): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]

    Permalink

    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
  19. def findByPrimaryKeys(ids: Vector[Long]): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], T, Seq]

    Permalink

    Finds the rows that correlate to the given primary keys

    Finds the rows that correlate to the given primary keys

    Definition Classes
    CRUDAutoIncCRUD
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def logger(implicit config: AppConfig): MarkedLogger

    Permalink
    Attributes
    protected[org.bitcoins]
    Definition Classes
    DatabaseLogger
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def read(id: Long): Future[Option[T]]

    Permalink

    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
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def update(t: T): Future[T]

    Permalink

    Update the corresponding record in the database

    Update the corresponding record in the database

    Definition Classes
    CRUD
  31. def updateAll(ts: Vector[T]): Future[Vector[T]]

    Permalink

    Updates all of the given ts in the database

    Updates all of the given ts in the database

    Definition Classes
    CRUD
  32. def upsert(t: T): Future[T]

    Permalink

    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
  33. def upsertAll(ts: Vector[T]): Future[Vector[T]]

    Permalink

    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
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CRUD[T, Long]

Inherited from DatabaseLogger

Inherited from AnyRef

Inherited from Any

Ungrouped