Class/Object

com.outworkers.phantom.builder.query

AlterQuery

Related Docs: object AlterQuery | package query

Permalink

case class AlterQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound, Chain <: WithBound](table: Table, init: CQLQuery, options: QueryOptions = QueryOptions.empty, alterPart: AlterPart = AlterPart.empty, addPart: AddPart = AddPart.empty, dropPart: DropPart = DropPart.empty, withPart: WithPart = WithPart.empty, renamePart: RenamePart = RenamePart.empty) extends RootQuery[Table, Record, Status] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, RootQuery[Table, Record, Status], SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AlterQuery
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RootQuery
  7. SessionAugmenterImplicits
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AlterQuery(table: Table, init: CQLQuery, options: QueryOptions = QueryOptions.empty, alterPart: AlterPart = AlterPart.empty, addPart: AddPart = AddPart.empty, dropPart: DropPart = DropPart.empty, withPart: WithPart = WithPart.empty, renamePart: RenamePart = RenamePart.empty)

    Permalink

Type Members

  1. implicit class RichSession extends SessionAugmenter

    Permalink
    Definition Classes
    SessionAugmenterImplicits

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 add(definition: CQLQuery): AlterQuery[Table, Record, Status, Chain]

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

    Permalink
  6. val addPart: AddPart

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

    Permalink
  8. val alterPart: AlterPart

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

    Permalink
  10. final def asInstanceOf[T0]: T0

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

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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink
  16. val dropPart: DropPart

    Permalink
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def executableQuery: ExecutableCqlQuery

    Permalink
    Definition Classes
    AlterQueryRootQuery
  19. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. val init: CQLQuery

    Permalink
  22. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
  27. val options: QueryOptions

    Permalink
  28. val qb: CQLQuery

    Permalink
  29. def queryString: String

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

    Permalink
  31. val renamePart: RenamePart

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

    Permalink
    Definition Classes
    AnyRef
  33. val table: Table

    Permalink
  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( ... )
  37. val withPart: WithPart

    Permalink

Deprecated Value Members

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use option instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RootQuery[Table, Record, Status]

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped