AOT-native DataProviderMigrate (single binary, no .NET SDK) + Osprey codegen target
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start with docs/plans/orm-dataprovider.md, then inspect the existing DataProviderMigrate tool and source-generator entry point described in the issue. Establish whether the work should cover NativeAOT binaries, an Osprey target, or a documented schema/query contract; done means the selected scope supports the listed targets and an Osprey consumer can use the shared YAML schema.
索引モデルが issue の本文から書いたものです。
説明
Context
We're building the Osprey backend ecosystem — an industrial HTTP server framework plus a typed
database/ORM layer for the Osprey language (functional,
Hindley-Milner, algebraic effects, compiles via LLVM with a C runtime).
We want DataProvider YAML to be the single cross-language schema source of truth for Osprey backends,
exactly as it already is for .NET. Osprey's osprey gen-data step will read the DataProvider YAML schema and
emit typed Osprey records + parameterized CRUD/queries (the same "typed code from a static schema, no
expression trees, you see what executes" philosophy DataProvider already champions). DataProvider's generated
Result<IReadOnlyList<…Row>, SqlError> shape maps 1:1 onto Osprey's Result discriminated unions, and
LQL's pipe syntax is essentially Osprey's own pipe idiom — so LQL is a natural future query surface for
Osprey too.
Two asks would make DataProvider a first-class citizen of non-.NET toolchains:
1. AOT / native single-binary DataProviderMigrate
Osprey developers have the osprey binary but not the .NET SDK. Today running migrations requires
dotnet tool install DataProviderMigrate + a .NET runtime, which is a hard cross-ecosystem dependency for
Osprey (and any non-.NET) users.
Request: publish NativeAOT single-file binaries of DataProviderMigrate for the standard targets
(linux-x64, linux-arm64, osx-arm64, osx-x64, win-x64). Then any toolchain can shell out to:
DataProviderMigrate migrate --schema schema.yaml --output app.db --provider sqlite
DataProviderMigrate migrate --schema schema.yaml --output "Host=…;…" --provider postgres
with zero .NET install. The declarative, idempotent, forward-only diff model is perfect for this — the binary
is a pure schema→DB convergence tool.
2. An Osprey codegen target (or a documented codegen contract)
The source generator currently emits C# extension methods. To let DataProvider drive Osprey codegen, either:
- (a) add an
ospreyoutput target to the generator, or - (b) document/stabilize a codegen contract (the parsed schema model + query/LQL IR as JSON, akin to
sqlc's plugin protocol) that an externalosprey gen-datacan consume — so the schema/query parsing stays
in DataProvider and only the language-specific emission lives in Osprey.
(b) is likely the lower-friction path and mirrors how sqlc externalizes every language as a plugin; it keeps a
single schema/query front-end with pluggable back-ends.
Why this matters
This makes DataProvider the schema + migration backbone for an entire second language ecosystem, with the YAML
as the untouched shared source of truth across .NET and Osprey. Happy to collaborate on the codegen contract
shape (b) and to test the AOT binaries on the Osprey side.
Filed as part of the Osprey backend framework plan (docs/plans/orm-dataprovider.md).
- 主要言語
- C#
- スター
- 68
- フォーク
- 4
- 平均マージ
- 50分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Nimblesite/DataProvider のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
Nimblesite/DataProvider#137 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Nimblesite/DataProvider#72 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Nimblesite/DataProvider#121 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Nimblesite/DataProvider#108 ·
メンテナーはふだん 1 日以内に返信
-
A check constraint the schema cannot name can never be retired, and keeps enforcing the old ruleオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Nimblesite/DataProvider#107 ·
メンテナーはふだん 1 日以内に返信
Nimblesite/DataProvider の issue をすべて見る
似ている issue
-
kronos:develop:queued priority:P0
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nopSolutions/nopCommerce#8512 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
modelcontextprotocol/csharp-sdk#2061 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信