struct
Prostore::Schema::Index
- Prostore::Schema::Index
- Struct
- Value
- Object
Overview
An index declaration (ADR-0005).
#name is the resolved index name in the live database — derived by
default from <table>_<columns>_idx, or set explicitly via the name:
option. The tag is the stable identity; the name is a label that can
change freely.
Defined in:
prostore/schema/index.crConstructors
Instance Method Summary
- #clone
- #columns : Array(String)
- #copy_with(tag _tag = @tag, name _name = @name, columns _columns = @columns, unique _unique = @unique, where_sql _where_sql = @where_sql)
- #name : String
- #tag : Int32
- #unique : Bool
- #where_sql : String | Nil
Constructor Detail
def self.new(tag : Int32, name : String, columns : Array(String), unique : Bool, where_sql : String | Nil)
#
Instance Method Detail
def copy_with(tag _tag = @tag, name _name = @name, columns _columns = @columns, unique _unique = @unique, where_sql _where_sql = @where_sql)
#