googleapis / googleapis/google-cloud-go

bigquery: handle sql.NullXXX like bigquery.NullXXX

Open
#2,197 3 comments 2 reactions 1 assignee Claimed by @shollyman View on GitHub
api: bigquery type: feature request
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

I need to load from postgres and insert into bigquery

Currently, I have to create two structs: one for postgres with sql.NullXXX types and another one with their bigquery.NullXXX equivalent, with conversion between the 2 structs.

I'd like to create only one struct.

This could be possible if the insert function handled sql.NullXXX type like bigquery.NullXXX.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.