Documentation ¶
Index ¶
- func AnySliceToTypedSlice(input any) any
- func CtyToGo(v cty.Value) (val interface{}, err error)
- func CtyToJSON(val cty.Value) (string, error)
- func CtyToPostgresString(v cty.Value) (valStr string, err error)
- func CtyToString(v cty.Value) (valStr string, err error)
- func CtyTypeToHclType(types ...cty.Type) string
- func GoToPostgresString(v any) (string, error)
- func QuotePostgresBytes(buf []byte) string
- func QuotePostgresString(str string) string
- func ToTypedSlice[T any](input []any) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnySliceToTypedSlice ¶
AnySliceToTypedSlice determines whether input is []any and if so converts to an array of the underlying type
func CtyToPostgresString ¶
CtyToPostgresString convert a cty value into a postgres representation of the value
func CtyToString ¶
CtyToString convert a cty value into a string representation of the value
func CtyTypeToHclType ¶
CtyTypeToHclType converts a cty type to a hcl type accept multiple types and use the first non null and non dynamic one
func GoToPostgresString ¶
GoToPostgresString convert a go value into a postgres representation of the value
func QuotePostgresBytes ¶
QuotePostgresBytes taken from github.com/jackc/pgx/v5@v4.17.2/internal/sanitize/sanitize.go
func QuotePostgresString ¶
QuotePostgresString taken from github.com/jackc/pgx/v5@v4.17.2/internal/sanitize/sanitize.go
Types ¶
This section is empty.