-
Notifications
You must be signed in to change notification settings - Fork 177
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
Move db
module from spacetimedb_sats
to spacetimedb_lib
#1479
Conversation
impl From<ProductType> for Vec<ColumnDef> { | ||
fn from(value: ProductType) -> Self { | ||
impl ColumnDef { | ||
pub fn from_product_type(value: ProductType) -> Vec<ColumnDef> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was necessary due to the orphan rule (you can't impl From<T>
for Vec<StructDefinedInThisCrate>
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM
Update bindings crate Update table crate Update vm crate Update bindings-macro crate Update rust-wasm-test module Update core crate Update cli crate Update bench crate Remove needless dependency Placate clippy Cargo fmt Placate clippy once more Back, foul beast Fix compile error
Description of Changes
As well as the
relation
module.Split this out of the schema rewrite, it is largely a find-replace change (except for one method that had to be renamed due to orphan rule).
API and ABI breaking changes
This is an API-breaking change, but curiously not an ABI-breaking change.
Expected complexity level and risk
1
Testing
Tests and smoketests pass locally, except for the C# issues floating around. (e: this has now been fixed.)