Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): Adding null int and null int 32 #78

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

Jacobbrewer1
Copy link
Owner

Describe your changes

This pull request includes several changes to improve the handling of nullable integer types and to streamline the build process using Mage. The most important changes are grouped by their themes below:

Enhancements to nullable integer types:

  • Added NullInt type with support for JSON marshaling, SQL scanning, and Redis argument interfaces in usql/types.go.
  • Added NullInt32 type with similar support for JSON marshaling, SQL scanning, and Redis argument interfaces in usql/types.go.
  • Updated getType function to return usql.NullInt for nullable int columns and usql.NullInt32 for nullable mediumint columns in pkg/generation/template_helpers.go. [1] [2]

Streamlining the build process:

  • Replaced inline Mage commands with magefile/mage-action GitHub action in .github/workflows/create-release.yml to improve the build process.

@Jacobbrewer1 Jacobbrewer1 enabled auto-merge (squash) February 4, 2025 08:35
@Jacobbrewer1 Jacobbrewer1 merged commit 2dfb274 into main Feb 4, 2025
5 checks passed
@Jacobbrewer1 Jacobbrewer1 deleted the fix/types branch February 4, 2025 08:36
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