Repository navigation
Rewrite the consumer docs in the plain-docs voice - #166
Merged
Merged
Conversation
The root README, the three package READMEs and docs/postgresql-indexes, postgresql-constraints, sqlserver and upgrading: written to "you", example first, task headings, edge cases under "Good to know", no internal jargon. Every fenced block is unchanged and every linked heading keeps its anchor. A claim-by-claim review against the source corrected statements that were already wrong: TPC copy names are shortened since 5.5.0; the declaration-time name check covers one entity's explicit names only; the placeholder column fails when the migration runs, not in the generator; Trim is supported without arguments only; btree_gist is added with every temporal constraint, and `!=` counts; constraints need UseNpgsqlComplexIndexes() for EnsureCreated(); the SQL Server page lacked the implicit IS NOT NULL filter on unique indexes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/upgrading.md
#150) The root README still said UseComplexIndexes() with a provider package installed gives EnsureCreated() a schema without that package's features. Since #92 and #150 the core differ fails instead and names the method to call. docs/upgrading.md: 'the satellite's method' → 'the provider package's method', as in the sentence above it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #164
Problem
The consumer pages were correct in most places but hard to read. They had long sentences joined by semicolons and dashes, internal vocabulary (satellite, differ, seam, sentinel, refuse, scaffold, runtime wiring) and edge cases in the middle of explanations. A few statements were also wrong or out of date.
Change
The eight consumer pages, rewritten in the
plain-docsvoice (#163, PR #165):README.mdsrc/*/README.mddocs/postgresql-indexes.md,postgresql-constraints.md,sqlserver.mdandupgrading.mdWhat the rewrite does:
docs/upgrading.mdis edited sentence by sentence, because it was already close to the voice and other PRs edit it too.main.Corrected while rewriting (these were wrong before this change, found by checking each claim against the source):
migrations add.upgrading.md(5.2.0). "The package never shortens default names" is no longer true: since PostgreSQL TPC with a long derived table name: the default name is too long and an explicit name repeats, so no name passes #145 it shortens TPC copies.CREATE INDEX, and the migration fails when it runs.UseComplexIndexes()too, and now links its section.ANDthis call appended.Partscan hold expressions as well as paths.Trimmethods without arguments translate.btree_gistis added with every migration that adds a temporal constraint, not only the first, and!=counts as<>.postgresql-constraints.md. It said none of these features needUseNpgsqlComplexIndexes(). That holds for migrations only:EnsureCreated()needs the call, as the README table says.sqlserver.md. It never mentioned the implicitWHERE [c] IS NOT NULLthat 5.5.0 adds to unique indexes over nullable columns.Tests
DocumentationLinkTests(relative andblob/mainanchors, including the two new in-page links),DocumentationApiTests(every API name, provider scoping) andChangelogConsistencyTests(upgrading order and the Changed-answers anchors).main, and found them identical and in the same order. A planted one-character change in a code comment made it fail.src/. Each FACT finding is fixed in this PR, including slips the rewrite itself had introduced, such as "periods must not overlap" for a temporal foreign key and "on it" forAddSqlServerComplexIndexes().Merge order: #159 and #162 also edit
docs/upgrading.mdanddocs/postgresql-constraints.md. Whichever lands second rebases. When #162 lands, the root README's sentence thatUseComplexIndexes()givesEnsureCreated()a schema without exclusion constraints needs updating to say it fails, since #150 makes the core differ refuse them.🤖 Generated with Claude Code