You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace ParseErrorMode.Throw with Exit (log + exit process), make it the default
Errors in SQL files now log at Error level and exit the process by
default, catching SQL mistakes at startup. Use Skip to continue past
errors in production.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: NpgsqlRestClient/ConfigSchemaGenerator.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -455,7 +455,7 @@ public static partial class ConfigSchemaGenerator
455
455
["NpgsqlRest:SqlFileSource:FilePattern"]="Glob pattern for SQL files, e.g. \"sql/**/*.sql\", \"queries/*.sql\".\nSupports * (any chars), ** (recursive, any including /), ? (single char).\nEmpty string disables the feature.",
456
456
["NpgsqlRest:SqlFileSource:CommentsMode"]="How comment annotations are processed for SQL file endpoints.\nPossible values: Ignore, ParseAll, OnlyWithHttpTag.\nDefault: ParseAll — every SQL file becomes an endpoint, comments configure it.",
457
457
["NpgsqlRest:SqlFileSource:CommentScope"]="Which comments in the SQL file to parse as annotations.\nPossible values: All (default — all comments), Header (only comments before the first statement).",
458
-
["NpgsqlRest:SqlFileSource:ErrorMode"]="Behavior when a SQL file fails to parse or describe.\nPossible values: Skip (default — log error, continue), Throw (halt startup).",
458
+
["NpgsqlRest:SqlFileSource:ErrorMode"]="Behavior when a SQL file fails to parse or describe.\nPossible values: Exit (default — log error, exit process), Skip (log error, continue).",
459
459
["NpgsqlRest:SqlFileSource:ResultPrefix"]="Prefix for result keys in multi-command JSON responses.\nDefault keys are \"result1\", \"result2\", etc. Override per-result with @resultN annotation in the SQL file.",
0 commit comments