-
Notifications
You must be signed in to change notification settings - Fork 514
Make Timestamp
and TimeDuration
implement FilterableValue
#2695
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
base: master
Are you sure you want to change the base?
Make Timestamp
and TimeDuration
implement FilterableValue
#2695
Conversation
Timestamp
and TimeDuration
implement FilterableValue
This PR is currently marked as draft because I'll work on the C# backend, as well as the client SDK changes, if necessary. |
@@ -89,6 +89,22 @@ pub enum TestF { | |||
Baz(String), | |||
} | |||
|
|||
#[spacetimedb::table( | |||
name = test_g, | |||
index(name = created_at_index, btree(columns = [name, created_at])), |
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.
Add a test case for this index as well
@@ -320,13 +320,16 @@ public static void insert_one_connection_id(ReducerContext ctx, ConnectionId a) | |||
[SpacetimeDB.Table(Name = "one_timestamp", Public = true)] | |||
public partial struct OneTimestamp | |||
{ | |||
[SpacetimeDB.Index.BTree] |
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.
Replicate the test in module-test-cs
instead of sdk-test-cs
This one is going to be much more work to get merged than your previous PR. It's going to need:
|
Description of Changes
Making
Timestamp
andTimeDuration
implementFilterableValue
.This resolves #2650
API and ABI breaking changes
API change is additive in this case, I'm not marking this as unstable because the
FilterableValue
implementation is already stabilized.Expected complexity level and risk
Complexity 1.
Testing