-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
CockroachDB support #507
Comments
Hey @sergeyshaykhullin, a workaround suggested on launchbadge/sqlx#933 (comment). This imply you can use For example, let chocolate: Vec<cake::Model> = Cake::find()
.filter(cake::Column::Name.contains("chocolate"))
.order_by_asc(cake::Column::Name)
.all(db) // Select `all` instead of `one`
.await?; https://www.sea-ql.org/SeaORM/docs/basic-crud/select#find-with-conditions-and-orders |
I need an insert |
Oh, right. |
Btw... can I take a look at the error messages? |
Yes
version: "2"
services:
crdb:
container_name: crdb
image: cockroachdb/cockroach:latest
command: [ start-single-node, --insecure ]
ports: [ 8080:8080, 26257:26257 ]
volumes: [ crdb_data:/cockroach/cockroach-data ]
volumes:
crdb_data:
driver: local
sea-orm/examples/axum_example/src/main.rs Line 131 in f418c4e
To reproduce you will need to wrap create_post with transaction I moved all prototypes in trash folder a week ago, so i can't show something. But the error was same as here launchbadge/sqlx#933 |
Thanks!! I will try reproduce it tmr morning. Gonna sleep now lol |
Hey @sergeyshaykhullin, I manage to insert rows into ChroachDB without hitting any errors. Check #531 |
I can't see begin transaction here 😅 |
Ok, now we have transaction, 340e3a0. Works as well loll |
@billy1624 Hmm, interesting... You need multiple inserts to catch this error... |
Oh. Okay, hidden bug... |
What all tasks need to be implemented for supporting Cockroach DB? It'd really be useful for new-contributors to learn |
Hey @AbhijithGanesh, do you mean what are the todo for supporting CockroachDB? |
|
Thanks! @mckingho for the updates! |
I don't think we have the engineering resources (in terms of CI and manpower) to support CockroachDB at this point. |
I've noticed that the issue in CockroachDB (#40195) has been fixed. Given this update, is there any change in the priority of supporting CockroachDB with SeaORM? We are particularly interested in this feature and would appreciate any information on planned developments or necessary steps to move forward. Thank you for your consideration. |
Hello, also here to ask what would be exactly needed to Support CockroachDB? is it possible to Discuss what exactly would be needed? So i just run into an Error while running a Migration with SeaORM v1
|
Sqlx has a known issue with transations and MARS
launchbadge/sqlx#933
Does sea orm has a workaround to do multiple inserts inside single transaction with CockroachDB?
tokio-postgres has no problems, so it might be fixed on client side somehow without waiting for cockroachdb/cockroach#40195
The text was updated successfully, but these errors were encountered: