Skip to content

Refactor code generation framework to enhance modularity and database…#9

Merged
MelbourneDeveloper merged 1 commit intoNimblesite:mainfrom
mzarsaw:feature/AddLogging
Jan 5, 2026
Merged

Refactor code generation framework to enhance modularity and database…#9
MelbourneDeveloper merged 1 commit intoNimblesite:mainfrom
mzarsaw:feature/AddLogging

Conversation

@mzarsaw
Copy link
Copy Markdown
Contributor

@mzarsaw mzarsaw commented Sep 3, 2025

…-agnostic capabilities. Introduce new interfaces and templates for improved extensibility, along with comprehensive tests for validation and error handling.

@mzarsaw
Copy link
Copy Markdown
Contributor Author

mzarsaw commented Sep 14, 2025

@MelbourneDeveloper, any update?

@MelbourneDeveloper
Copy link
Copy Markdown
Collaborator

Thanks for the logging architecture proposals! We've added you to CONTRIBUTORS.md (3853be7). The detailed implementation plan didn't fit the current direction, but we appreciate the thoughtful work you put into it.

…-agnostic capabilities. Introduce new interfaces and templates for improved extensibility, along with comprehensive tests for validation and error handling.
@MelbourneDeveloper MelbourneDeveloper merged commit 8eda9ea into Nimblesite:main Jan 5, 2026
MelbourneDeveloper added a commit that referenced this pull request Jan 5, 2026
MelbourneDeveloper added a commit that referenced this pull request Apr 7, 2026
#8 record fields now use the column name verbatim (snake_case preserved)
   instead of forcing PascalCase. The old SQLite.Cli kept literal
   snake_case field names, so consumer code that referenced
   rec.user_id etc. was broken when the Postgres.Cli renamed them to
   rec.UserId. Replaced ToPascalCase(col.Name) with col.Name in all
   5 emit sites (record decl, reader read, 4 bulk insert ops).

#9 parameter type inference is now schema-aware. Previously
   InferParameterType only saw the parameter name and returned 'Guid'
   for any *id parameter, which broke text-id columns (e.g.
   tokens.id text). Now we pass the metadata columns list and match
   the parameter name (case-insensitive) to a column; if found, use
   the column's actual C# type (with the nullable suffix stripped).
   The name-based fallback now defaults *id to 'string' rather than
   'Guid' so text PKs work without column metadata too.

Bumps Postgres.Cli to 0.2.3-beta.
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.

2 participants