clockworklabs / clockworklabs/SpacetimeDB
Like operator for string columns
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
use case
Let's say I have a list of users and I want to search after the username. Currently I am either forced to have the entire list filtered on the client or I have a procedure that iterates over the entire user list and does manual filtering.
It would be nice to have an out of the box operator for this common task.
changes
I would hope for the operator to be available in reducers / procedures, the query builder and SQL queries
benefit
this would make a common use case easier, lead to better performance and it helps Spacetimedb become more compatible with the complete sql syntax
Requested by @ClemensWon via the SpacetimeDB site.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the query builder, reducer/procedure query handling, and SQL query implementation in the Rust codebase. Trace how existing string-column operators are represented across these entry points, then verify that the requested LIKE-style operation works consistently in reducers or procedures, the query builder, and SQL queries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100