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
SeaORM's DatabaseConnection type is not Send, Sync and Clone.
These should be easily added as DatabaseConnection is a wrapper of the Sqlx pool types, which themselves are Send, Sync and Clone.
Pool is Send, Sync and Clone, so it should be created once at the start of your application/daemon/web server/etc. and then shared with all tasks throughout its lifetime.
This is usually needed for many apps, such as an actix server, so it can be sent between threads to aquire new connections.
The text was updated successfully, but these errors were encountered:
SeaORM's
DatabaseConnection
type is notSend
,Sync
andClone
.These should be easily added as
DatabaseConnection
is a wrapper of the Sqlx pool types, which themselves areSend
,Sync
andClone
.On the Sqlx
Pool
documentation:This is usually needed for many apps, such as an actix server, so it can be sent between threads to aquire new connections.
The text was updated successfully, but these errors were encountered: