Skip to content

feat(schema): add doc comment support for element-typed array fields - #79

Merged
VoidClancy merged 2 commits into
masterfrom
sqlite-array-support
Jul 31, 2026
Merged

VoidClancy merged 2 commits into
masterfrom
sqlite-array-support

Conversation

@VoidClancy

Copy link
Copy Markdown
Owner

1- Add DOC_COMMENT token type and lexer handling for /// comments, attaching each comment to the following field declaration

2- Add peekAhead(n) so comment skipping can distinguish /// from //

3- Add DefaultArray kind with ArrayValues to resolve @default([])

4- Add extractDocCommentElementType() and docCommentElementTypeMap to map Prisma element types to Go types for @ElementType hints

5- Resolve @ElementType fields as arrays (IsArray + []T GoType) for JSON-backed array storage

6- Add guardrail to only allow the @ElementType to reach the client IF field type is JSON, basically a sentinel to declare sqlite phantom arrays

1- Add DOC_COMMENT token type and lexer handling for /// comments, attaching each comment to the following field declaration

2- Add peekAhead(n) so comment skipping can distinguish /// from //

3- Add DefaultArray kind with ArrayValues to resolve @default([])

4- Add extractDocCommentElementType() and docCommentElementTypeMap to map Prisma element types to Go types for @ElementType hints

5- Resolve @ElementType fields as arrays (IsArray + []T GoType) for JSON-backed array storage

6- Add guardrail to only allow the @ElementType to reach the client IF field type is JSON, basically a sentinel to declare sqlite phantom arrays
…ield type is JSON, basically a sentinel to declare sqlite phantom arrays
@VoidClancy VoidClancy self-assigned this Jul 31, 2026
@VoidClancy
VoidClancy merged commit 5cea721 into master Jul 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant