-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to define custom SQL DDL for Index #636
Comments
@lukasj, there is also |
So at one stage a did spend a tiny amount of time thinking about this, the only issue is:
What we could do though is add a @Table(name="TheTable",
indexes=@Index(name="TheIndex",
type="fulltext",
columnList="column1, column2",
options="with parser MyParser")) which would result in: create table TheTable ( ..... fulltext index TheIndex (column1, column2) with parser MyParser) I think that gives you everything you need for indexes, and the |
The I also wanted to double-check if the |
Good point. In our implementation we do actually parse it, yes. But if we did this, I think we could allow the |
I can see 3 types of index where validating the grammar could be problematic:
|
The spec should allow user to define his own, custom DDL for Index definition to support usage of DB specific features, ie MySQL
CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX ...
or Oracle DBCREATE [BITMAP | MULTIVALUE | VECTOR ] INDEX ...
We already have@Column.columnDefinition
, so we could add something like@Index.indexDefinition
The text was updated successfully, but these errors were encountered: