Closed icholy closed 6 years ago
This is just a proof of concept, but if I get the go-ahead i'll add docs/tests. Here's how it would work.
dbmap := modl.NewDbMap(db, modl.PostgresDialect{ TypeMap: map[reflect.Type]string{ reflect.TypeOf(sql.NullInt64{}): "bigint", reflect.TypeOf(sql.NullFloat64{}): "double precision", }, })
This addresses #45
@icholy I think this would be a nice addition
@tmc I'm using the SqlTyper interface.
This is just a proof of concept, but if I get the go-ahead i'll add docs/tests. Here's how it would work.
This addresses #45