You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index with single field (with index name): CREATE INDEX on users (created_at)
Index with multiple fields (composite index): CREATE INDEX on users (created_at, country)
Index with an expression: CREATE INDEX ON films ( first_name + last_name )
(bonus) Composite index with expression: CREATE INDEX ON users ( country, (lower(name)) )
The text was updated successfully, but these errors were encountered:
Fixes#22
This adds support for basic definition of indexes in DBML `Table` constructs:
```
Indexes {
(<column names>) [name: '<index name>', <uniqueness>]
}
```
More advanced use-cases (i.e: no name indexes, expression-based indexes) are unsupported.
So far,
dbml-parser
doesn't properly handle indexes defined in DBML tables, as such:There are 3 types of index definitions:
Index with single field (with index name): CREATE INDEX on users (created_at)
Index with multiple fields (composite index): CREATE INDEX on users (created_at, country)
Index with an expression: CREATE INDEX ON films ( first_name + last_name )
(bonus) Composite index with expression: CREATE INDEX ON users ( country, (lower(name)) )
The text was updated successfully, but these errors were encountered: