Documentation ¶
Overview ¶
Package unwrap provides tools for "unwrapping" (converting) standard library database connections for the `pgx` driver into native `pgx` connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyReflectData ¶
CopyReflectData unsafely copies a pointer so it can be modified. This copies the underlying data (by address) and just changes the flags on the `reflect.Value` wrapping that data.
By default, `reflect` sets the read-only flag on values that are internal, e.g. those produced by `FieldByName()` on unexported fields. This function makes a new `reflect.Value` without the read-only flag set.
If the value is not addressable, the value cannot and will not be copied and this function will return a `copied=false` value.
func CopyReflectValue ¶
CopyReflectValue copies a value so it can be modified.
Types ¶
This section is empty.