com.outworkers.phantom.builder.query

AlterQuery

class AlterQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound, Chain <: WithBound] extends RootQuery[Table, Record, Status]

Linear Supertypes
RootQuery[Table, Record, Status], SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AlterQuery
  2. RootQuery
  3. SessionAugmenterImplicits
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AlterQuery(table: Table, qb: CQLQuery, options: QueryOptions)

Type Members

  1. implicit class RichSession extends SessionAugmenter

    Definition Classes
    SessionAugmenterImplicits

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def add(definition: CQLQuery): AlterQuery[Table, Record, Status, Chain]

  7. final def add(column: String, columnType: String, static: Boolean = false): AlterQuery[Table, Record, Status, Chain]

  8. final def alter[RR](columnSelect: (Table) ⇒ AbstractColumn[RR], newType: String): AlterQuery[Table, Record, Status, Chain]

  9. final def and(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithChainned]): AlterQuery[Table, Record, Status, WithChainned]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def drop(column: String): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER drop query to drop the column from the schema definition.

    Creates an ALTER drop query to drop the column from the schema definition. It will produce the following type of queries, with the CQL serialization on the right hand side:

    MyTable.alter.drop(_.mycolumn) => ALTER TABLE MyTable DROP myColumn

    This is used mainly during the autodiffing of schemas, where column selectors are not available and we only deal with plain string diffs between table metadata collections.

    column

    The string name of the column to drop.

    returns

    A new alter query with the underlying builder containing a DROP clause.

  13. final def drop()(implicit keySpace: KeySpace): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER DROP query that drops an entire table.

    Creates an ALTER DROP query that drops an entire table. This is equivalent to table truncation followed by table removal from the keyspace metadata. This action is irreversible and you should exercise caution is using it.

    keySpace

    The implicit keyspace definition to use.

    returns

    An alter query with a DROP TABLE instruction encoded in the query string.

  14. final def drop[RR](columnSelect: (Table) ⇒ DropColumn[RR]): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER drop query to drop the column from the schema definition.

    Creates an ALTER drop query to drop the column from the schema definition. It will produce the following type of queries, with the CQL serialization on the right hand side:

    MyTable.alter.drop(_.mycolumn) => ALTER TABLE MyTable DROP myColumn
    RR

    The underlying type of the AbstractColumn.

    columnSelect

    A column selector higher order function derived from a table.

    returns

    A new alter query with the underlying builder containing a DROP clause.

  15. final def dropIfExists()(implicit keySpace: KeySpace): AlterQuery[Table, Record, Status, Chain]

  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def executableQuery: ExecutableCqlQuery

    Definition Classes
    AlterQueryRootQuery
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. final def option(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithUnchainned]): AlterQuery[Table, Record, Status, WithChainned]

  27. val options: QueryOptions

  28. val qb: CQLQuery

  29. def queryString: String

    Definition Classes
    RootQuery
  30. final def rename[RR](select: (Table) ⇒ AbstractColumn[RR], newName: String): AlterQuery[Table, Record, Status, Chain]

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. final def with(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithUnchainned]): AlterQuery[Table, Record, Status, WithChainned]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use option instead

Inherited from RootQuery[Table, Record, Status]

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped