Name the path and the real failure when SQLite cannot use a database file
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in dbkit/sqlite where the database path is opened and checked, and in the Classify function the issue names as the place to map SQLite failures to messages. Reproduce the four cases in the table (folder, non-database file, read-only file, file in a read-only folder) and see which prefix each one currently gets. Done means each case returns an error that names the path and states the cause, and the "read the database path" prefix appears only for read failures. The payload names no test file.
索引モデルが issue の本文から書いたものです。
説明
What
When a SQLite address names something SQLite cannot use, dbkit/sqlite v0.1.0 lets the handle open and the first statement fails with an unclear error. Measured with Gophenberg, which opens through dbkit/sqlite:
| The path names | First statement fails with |
|---|---|
| a folder | dbkit: read the database path: unable to open database file (14) |
| a file that is not a database | dbkit: read the database path: file is not a database (26) |
| a read-only file | dbkit: read the database path: attempt to write a readonly database (8) |
| a file in a read-only folder | dbkit: read the database path: ... (1544) |
Two things are off:
- The prefix says "read the database path" even when SQLite failed a write.
- No message names the path, so the operator cannot tell which file is wrong.
Why
An operator who points a site at the wrong file should learn which file and what is wrong with it, for example "is a folder, not a database file" or "is read only". Classify and the open-time file check in dbkit/sqlite are the natural place, so every product on dbkit gets the same answers.
- 主要言語
- Go
- スター
- 69
- フォーク
- 3
- 平均マージ
- 9時間 11分
- マージ済み PR(30日)
- 38
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gopherium/framework のほかの issue
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
gopherium/framework の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
blinklabs-io/dingo#5636 ·
メンテナーはふだん 1 日以内に返信
-
automated-analysis bug cookie safe-outputs tool-improvement workflow-issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
github/gh-aw#71952 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JetBrains/youtrack-cli#130 ·
メンテナーはふだん 1 日以内に返信
-
Cloudflare Pages secret sync throws TypeError when deployment_configs[environment] is undefinedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Infisical/infisical#8892 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
windvane requests one more page than it needs対応中かも @TassioSales が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
projectdiscovery/subfinder#1979 ·
メンテナーはふだん 3 日以内に返信