sql: ActiveRecord / Rails ORM support #20932
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
meta-issue
Contains a list of several other issues.
This is an issue tracking support for ActiveRecord and its features. Many of the extra features (partial indexes, ranges, comments) can be gated if the adapter so chooses to support them, making it easy to keep them disabled until we support them. If you have arrived here from one of the referenced issues, please comment on this issue to make others aware the change can be made to ActiveRecord.
ALTER TABLE ... ALTER COLUMN ... TYPE <type>
sql: support ALTER TABLE ... ALTER COLUMN ... SET DATA TYPE ... #9851. This is required forconnection.change_column(...)
statements. This is frequently used for migrations. To mitigate the problem, we can modify the adapter to generate an alternative (new col, backfill, drop col, rename col).Model.group
. This may be able to be resolved by modifying the adapter.FOR UPDATE
. sql: explicit lock syntax (SELECT FOR {SHARE,UPDATE} {skip locked,nowait}) #6583. This is used forModel.lock!
statements.There are more issues, but they have not been tracked down to CockroachDB issues or just adapter issues. See lego/activerecord-cockroachdb-adapter/CONTRIBUTING.md for the full list.
The text was updated successfully, but these errors were encountered: