struct

Prostore::Schema::Index

Inherits Struct < Value < Object

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.

Constructors

new(tag : Int32, name : String, columns : Array(String), unique : Bool, where_sql : String | Nil)
Source

Instance methods

clone
Source
columns
copy_with(tag _tag = @tag, name _name = @name, columns _columns = @columns, unique _unique = @unique, where_sql _where_sql = @where_sql)
Source
name
tag
unique
where_sql