Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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/v4@v4.17.2/internal/sanitize/sanitize.go
func QuotePostgresString ¶
QuotePostgresString taken from github.com/jackc/pgx/v4@v4.17.2/internal/sanitize/sanitize.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.