String represents any SQL type that needs to be represented using quotes. If isUtf8 is false, it will be hex encoded so it's safe for exception reporting, etc.
| 51 | // String represents any SQL type that needs to be represented using quotes. |
| 52 | // If isUtf8 is false, it will be hex encoded so it's safe for exception reporting, etc. |
| 53 | type String struct { |
| 54 | data []byte |
| 55 | isUtf8 bool |
| 56 | } |
| 57 | |
| 58 | // MakeNumeric makes a Numeric from a []byte without validation. |
| 59 | func MakeNumeric(b []byte) Value { |
nothing calls this directly
no outgoing calls
no test coverage detected