{"id":17679313,"url":"https://github.com/bbkane/sqlc-override-nullable","last_synced_at":"2025-03-30T18:28:05.025Z","repository":{"id":249380947,"uuid":"830569998","full_name":"bbkane/sqlc-override-nullable","owner":"bbkane","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-26T04:53:55.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T19:49:31.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbkane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-18T14:19:54.000Z","updated_at":"2024-07-26T04:53:58.000Z","dependencies_parsed_at":"2024-10-24T10:47:12.124Z","dependency_job_id":"d7ed1400-78eb-4ce6-a2cc-f708fc9afb80","html_url":"https://github.com/bbkane/sqlc-override-nullable","commit_stats":null,"previous_names":["bbkane/sqlc-override-nullable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fsqlc-override-nullable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fsqlc-override-nullable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fsqlc-override-nullable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fsqlc-override-nullable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbkane","download_url":"https://codeload.github.com/bbkane/sqlc-override-nullable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246361240,"owners_count":20764894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T08:22:03.896Z","updated_at":"2025-03-30T18:28:04.996Z","avatar_url":"https://github.com/bbkane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2024-07-20 sqlc codegen bug\n\nCreated issue at https://github.com/sqlc-dev/sqlc/issues/3494\n\nBuild:\n\n```bash\ngo generate ./...\n```\n\nRun `using-text`, which works as expected:\n\n```bash\n$ go run ./using-text\ncreate...\nsqlcgen.Env{ID:1, CreateTime:\"0001-01-01T00:00:00Z\"}\n\nempty update...\nsqlcgen.Env{ID:1, CreateTime:\"0001-01-01T00:00:00Z\"}\n\nreal update...\nsqlcgen.Env{ID:1, CreateTime:\"0001-01-01T11:11:11Z\"}\n```\n\nRun `using-override`, which is the same as `using-text`, except using a `type SQLiteTime string` as a custom type override:\n\n```bash\n$ go run ./using-override\ncreate...\nsqlcgen.Env{ID:1, CreateTime:\"0001-01-01T00:00:00Z\"}\n\nempty update...\nsqlcgen.Env{ID:1, CreateTime:\"???\"}\n\nreal update...\nsqlcgen.Env{ID:1, CreateTime:\"0001-01-01T11:11:11Z\"}\n```\n\nAs the type generated is not a pointer, there's no way to pass a NULL value from the Go code to the SQL.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Fsqlc-override-nullable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbkane%2Fsqlc-override-nullable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Fsqlc-override-nullable/lists"}