Skip to content

Convert use of sql.Null* types to sql.Null[T] #3689

Open
@Nigel2392

Description

@Nigel2392

What do you want to change?

Present

Currently all nullable types are generated as sql.NullInt, sql.NullBool, etc.

sql.Null

Using the sql.Null[T] generic type might be a relatively small, but very notable way to adress nullable SQL values.

Uniform Internals

This would likely also clean up the internals of SQLC for code- generation a bit, seeing as then values can simply be adressed with sql.Null.V, as opposed to sql.NullInt64.Int64, etc.

What database engines need to be changed?

PostgreSQL, MySQL, SQLite

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions