Skip to content

PR-256: mysql set support#263

Merged
JasonShin merged 6 commits intomainfrom
pr-256-mysql-set-support
Mar 10, 2026
Merged

PR-256: mysql set support#263
JasonShin merged 6 commits intomainfrom
pr-256-mysql-set-support

Conversation

@JasonShin
Copy link
Copy Markdown
Owner

No description provided.

Nydauron and others added 3 commits March 10, 2026 21:46
Adds `SET` to be represented as a `string` in Typescript since MySQL
returns back a comma delimited string, and typescript expects a comma
delimited string for update/insertion.
Copilot AI review requested due to automatic review settings March 10, 2026 10:56
@JasonShin JasonShin mentioned this pull request Mar 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds MySQL SET column support to the TypeScript type generator and introduces demo coverage to ensure generated types treat SET as string rather than falling back to any.

Changes:

  • Map MySQL set fields to TsFieldType::String in the TS generator.
  • Add MySQL demo queries for selecting/inserting SET columns.
  • Add/commit corresponding .queries.ts outputs and .snapshot.ts expectations for the new demos.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/demo/mysql/set_select.ts Adds demo SELECT queries involving MySQL SET columns (including mixed-column select and WHERE param).
tests/demo/mysql/set_select.queries.ts Generated TS query/result types for set_select.ts.
tests/demo/mysql/set_select.snapshot.ts Snapshot for generated output of set_select.queries.ts.
tests/demo/mysql/set_insert.ts Adds demo INSERT queries involving MySQL SET columns (single/multi-column and multi-row).
tests/demo/mysql/set_insert.queries.ts Generated TS query/result types for set_insert.ts.
tests/demo/mysql/set_insert.snapshot.ts Snapshot for generated output of set_insert.queries.ts.
src/ts_generator/types/ts_query.rs Implements MySQL type mapping change: setstring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 10, 2026 11:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JasonShin JasonShin merged commit 29340aa into main Mar 10, 2026
54 of 55 checks passed
@JasonShin JasonShin deleted the pr-256-mysql-set-support branch March 10, 2026 11:24
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.

3 participants