Represents the definition of a column within a Cassandra table schema. This interface is used to specify the properties of table columns during table creation and to define how columns are utilized in select queries.

Properties:

  • name: The name of the column.
  • type: The data type of the column, used during table creation to define the schema.
  • partition: Optional. Specifies whether the column is part of the partition key. Important for table creation.
  • alias: Optional. An alias for the column that can be used in select queries for readability or to avoid naming conflicts.
  • binds: Optional. Specifies values to be bound to the column in queries, supporting parameterized query construction.
interface Column {
    name: string;
    type: string;
    alias?: string;
    binds?: unknown;
    partition?: boolean;
}

Properties

name: string
type: string
alias?: string
binds?: unknown
partition?: boolean

Generated using TypeDoc