Skip to content

fix plugin run without option field#351

Merged
doron050 merged 3 commits intomainfrom
fix-sqlc-run-without-option
Nov 1, 2025
Merged

fix plugin run without option field#351
doron050 merged 3 commits intomainfrom
fix-sqlc-run-without-option

Conversation

@doron050
Copy link
Collaborator

@doron050 doron050 commented Nov 1, 2025

plugin will now work without option object

@doron050 doron050 linked an issue Nov 1, 2025 that may be closed by this pull request
@doron050 doron050 changed the title fix quick start example fix plugin run without option field Nov 1, 2025
var text = Encoding.UTF8.GetString(generateRequest.PluginOptions.ToByteArray());
// handle empty options case
if (text.Trim() == string.Empty)
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove the redundant { } enclosing in the if

@doron050 doron050 merged commit 2635255 into main Nov 1, 2025
6 checks passed
@github-actions github-actions bot deleted the fix-sqlc-run-without-option branch January 1, 2026 02:06
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.

Plugin is not working without option field

2 participants