structable icon indicating copy to clipboard operation
structable copied to clipboard

What struct types -> db types does this support?

Open rustysys-dev opened this issue 4 years ago • 0 comments

Is there a listing of type support for this library? I am currently using a struct like this, and was wondering if structable would automatically transform the *timestamp.Timestamp into a postgresql DATE type.

type PgData struct {
	TenantID  string 
	AssetID   string 
	JobID     string 
	FormatID  string
	Status    status
	StartTime *timestamp.Timestamp
	EndTime   *timestamp.Timestamp
}

rustysys-dev avatar Sep 10 '19 10:09 rustysys-dev