Add skill for SQL usage domains (#69) - #101
Open
knutman wants to merge 1 commit into
Open
Conversation
Covers single-column, enum (check-list and native ENUM), multi-column, flexible and JSON-schema domains, STRICT association, ALTER DOMAIN (display/order/annotations), DROP DOMAIN FORCE [PRESERVE], a safe recreation sequence for constraint/type changes, domain functions, dictionary views, version notes and sources. Adds the features routing entry in db/SKILL.md. Signed-off-by: Knut Göttling <kg@enignum.ai>
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 #69.
What this adds
db/features/usage-domains.md— a practical skill for Oracle SQL usage domains (23ai+), covering:ENUMdomains), multi-column (currency composite withDOMAIN_DISPLAY/DOMAIN_ORDERover a column list), flexible domains (discriminant column), plus JSON-schema domains and the built-inSYSdomains.STRICTvs non-strict (non-strict ignores precision/scale entirely).ALTER DOMAIN(display/order/annotations only),DROP DOMAIN [FORCE [PRESERVE]]incl. recycle-bin dependents, and a safe recreation sequence for the unalterable parts (data type, check constraints) with theFORCEvsFORCE PRESERVEtrade-off.DOMAIN_CHECK,DOMAIN_CHECK_TYPE,CAST ... AS DOMAIN, theUSER_DOMAIN_*views) and ten best practices, including the PL/SQL limitation (no domain-typed variables or parameters — type safety ends at the table).## Oracle Version Notes(19c baseline: feature absent; 23ai vs newer release updates) and a## Sourcessection.Also updates the
db/features/row indb/SKILL.md(category routing).How it was validated
## Sources).DROP DOMAIN, theNAMEcolumn inUSER_DOMAIN_CONSTRAINTS) are explicitly marked as verified on that version.Review steps
db/features/usage-domains.md, pick any example and run it against a 23ai instance (23.7+ forALTER DOMAIN/native ENUM).db/SKILL.mdrenders correctly.