jordi fita mas
990a614897
This way i can use the function in the from clause of the query that i already had to do to get the totals formatted with to_price. In this case, i believe it is better to leave out Go’s function because it would force me to perform two queries. Instead of binding a nullable string pointer with the payment’s slug, i wanted to use pgtype’s zeronull.Text type, but it can not work in this case because it encodes the value as a text, while the parameters is uuid. I can not use zero.UUID, because it is a [16]byte array, while i have it in a string. Thus, had to create my own ZeroNullUUID type that use a string as a base but encodes it as a UUID. |
||
---|---|---|
.. | ||
OptionUnits.go | ||
RecordArray.go | ||
db.go | ||
funcs.go | ||
tx.go | ||
types.go | ||
zeronull.go |