clockworklabs / clockworklabs/SpacetimeDB

Like operator for string columns

Open
#5,240 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.