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 {
    alias?: string;
    binds?: unknown;
    name: string;
    partition?: boolean;
    type: string;
}

Properties

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