Repository navigation
refactor!: move to the pdbcore API hygiene release - #133
Merged
Merged
Conversation
- The omit and behavior smart-tag checks use pdbcore's shared vocabulary (smarttags.Check via smartcomments/catalog.Check), so pdbq and pdbr warn about the same comments; omit.Hides reads the v5 spellings from smarttags.Omits. - LoadConfig and config.Load take command-line values as a map (cliflags.Changed builds it); removed keys name the reason they were removed. - Doubled underscores after a section in PDBQ_* variables are errors, and database.connect_timeout, max_conns, statement_timeout and watch.poll_interval are validated. - Error messages come from pgexec.Classify; postgis output uses OutputSQL with options; the watcher is built with watch.New. - The reference config keeps pdbq's wording for the shared doc tags.
archlemon
force-pushed
the
refactor/pdbcore-b15
branch
from
November 24, 2026 02:02
7a429d8 to
2f68177
Compare
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.
Moves pdbq to the pdbcore changes in suprbdev/pdbcore PRs 89 (shared smart-tag checks), 93 (API hygiene) and 92 (schema order, env and duration checks). It pins the tagged release pdbcore v0.19.0, which contains all three.
Rebased on main, which gained the audit fixes from PR 134 (SETOF list limits and pricing, APQ authentication before registration and the byte-bounded store, per-field savepoint rerun,
server.request_timeoutof at least 1s, EWKT SRID mismatch asinvalid_argument,/schema.graphqlauth). OnlyCHANGELOG.mdconflicted; both sides' entries are kept in the Unreleased sections. Everything else merged cleanly: the SRID check sits next to the newpostgis.OutputSQLcalls, and config validation has therequest_timeoutcheck and the newpersisted_querieskeys alongsideRemovedKeysandValidateDatabase.Shared smart-tag checks
internal/omitandsmart_commentsdrop their local copies of the PR 127 logic and use pdbcore's.smarttags.Omitsnow maps-filterBy/-orderByand the deprecated-filter/-order.smartcomments/catalog.Checkreports unknown@omitactions and unknown or deprecated@behaviortokens. pdbq passes its own vocabulary: its@omitactions plus the aggregates@behaviortokens.Config (user-visible, in
CHANGELOG.mdanddocs/upgrading.md)transactions.mutationsandplugins.settings.nested_mutations.force_transactionsare now reported asunknown key …: removed: <reason>, from the newRemovedKeysmap.PDBQ_ROLES__ALLOWED-style variables, with a doubled underscore after the section, are errors with a did-you-mean hint. They used to be ignored silently.confx.ValidateDatabaseand the extended shared validators:database.connect_timeoutmust be positivedatabase.max_connsanddatabase.statement_timeoutmust not be negativeauth.jwt.jwks_cache_ttlmust be positive when a JWKS URL is setwatch.poll_intervalmust be positive when the watch is ontransactions.isolationerrors name the accepted values.confx.WithDoc. Only the new constraint notes ondatabase.max_conns,connect_timeoutandwatch.poll_intervalchange inexamples/pdbq.example.yaml.Embedding API
pdbq.LoadConfig(path, flags)takesmap[string]any.cliflags.Changedfrompdbcore/confx/cliflagsbuilds that map from a pflag set.Internal
pgexec.Classify.postgis.OutputSQL(ref, Output{…}), andOps(),Deriveds()andRasterAccessors()are accessor calls.watch.Newand getsRun's context inOnChange.go test ./internal/compile/ -update).Tests
go test -race ./...,go vet,golangci-lint, actlint-test./test/) on PostGIS 18 with pgvectorFuzzFilter/FuzzSpatial, 10s each