Repository navigation
Conversation
Models now carry their migration schema, with all properties resolved by the compiler. Application models are registered in a linkme distributed slice, and `ProjectSchema` combines them with the schema obtained by replaying the project's migrations in order. Passing the hidden `--cot-internal-schema` flag to the project binary prints this as JSON without reading the project config, so that the Cot CLI can generate migrations from it.
|
| Project | cot |
| Branch | migration-generator-rework-3 |
| Testbed | github-ubuntu-latest |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| empty_router/empty_router | 📈 view plot 🚷 view threshold | 5,374.10 µs(-54.26%)Baseline: 11,748.10 µs | 18,919.13 µs (28.41%) |
| json_api/json_api | 📈 view plot 🚷 view threshold | 571.08 µs(-39.88%)Baseline: 949.95 µs | 1,372.05 µs (41.62%) |
| nested_routers/nested_routers | 📈 view plot 🚷 view threshold | 551.30 µs(-39.11%)Baseline: 905.45 µs | 1,285.54 µs (42.88%) |
| single_root_route/single_root_route | 📈 view plot 🚷 view threshold | 507.02 µs(-41.11%)Baseline: 860.89 µs | 1,233.50 µs (41.10%) |
| single_root_route_burst/single_root_route_burst | 📈 view plot 🚷 view threshold | 9,101.70 µs(-43.84%)Baseline: 16,207.01 µs | 22,818.17 µs (39.89%) |
`cot migration make` builds the project and generates the operations from the difference between the current models and the replayed migrations, as reported by the project binary. Generated migrations only contain literal values, and no longer include the model snapshots.
m4tx
force-pushed
the
migration-generator-rework-3
branch
from
November 16, 2026 13:46
52a53a1 to
b1e6337
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.