Skip to content

Improve schema generation #243

Open
Open
@nadiamoe

Description

@nadiamoe

I believe a good ORM should abstract the user from writing any kind of SQL, at least for normal operation. Having this into account, kallax' schema generation feature needs some improvements.

In the near future, what I think it would be useful is:

Schema generation

  • Add support for indices via struct tags
    • Simple indices, with sorting option
    • Compound indices

Migrations

  • When manual migration is required, hint the user which sql they should run with a comment in the migration script

This is an open discussion. Feel free to suggest another features regarding this functionality.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions