Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature Request] Portable mode: "insensitive" on string comparison (postgresql and sqlite)

オープン
#2,635 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
postgresql, sqlite, typescript
領域
database

調査の方向性

The starting point is the validation that rejects mode: "insensitive" when the provider is sqlite; find where the query engine checks mode against the dialect and compare it with the postgresql branch that already supports it. Read that validation path first, then the sqlite query translation for string comparison. Done means sqlite either behaves like postgresql or silently accepts/documentedly ignores the option — the issue lists three alternatives and none has been chosen, so confirm the intended one with maintainers before writing code.

索引モデルが issue の本文から書いたものです。

説明

Is your feature request related to a problem? Please describe.
As of zenstack 3.6.4 using
mode: "insensitive" for string search is supported with postgresql dialect but not with sqlite dialect (it throws at validation).
IMHO, orm should offer an abstraction for this, or propose to enable one.
I use postgresql for production and sqlite for tests and I want to avoid writing code to test which underlying DB is in use. I think ORM should abstract this for the dev.

Describe the solution you'd like
Possible solutions :

  • perform lowercase string comparison on sqlite to achieve the same effect by default
  • add a config option to enable lowercase string comparison on sqlite if not enabled by default
  • just ignore it, or propose a config option to silently ignore it on sqlite, aka. ignore validation

Describe alternatives you've considered
IDK

Additional context
none

主要言語
TypeScript
スター
2.9k
フォーク
157
平均マージ
11時間 42分
マージ済み PR(30日)
20

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

zenstackhq/zenstack のほかの issue

zenstackhq/zenstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。