Documentation
¶
Overview ¶
Package casing provides casing transforms between a snake_case SQL surface and the "native" wire casing used by a foreign API (pascal | kebab | camel | snake).
The forward (snake) transform is a port of botocore's xform_name, so that the snake aliases stackql exposes match what the AWS CLI produces for top-level argument names. The transform is applied to TOP-LEVEL identifiers only; nested struct contents are passed verbatim by the caller and are not transformed here.
Index ¶
Constants ¶
const ( Snake = "snake" Pascal = "pascal" Kebab = "kebab" Camel = "camel" )
Native casing identifiers, as carried by a method's request.nativeCasing.
Variables ¶
This section is empty.
Functions ¶
func FromSnake ¶
FromSnake converts a snake_case identifier to the given native casing. It is the inverse used by reverse-casing parameter lookup: a snake SQL key is converted to the wire casing and re-resolved against the parameter / property set.
func IsKnownCasing ¶
IsKnownCasing reports whether s is a recognised native casing identifier.
Types ¶
This section is empty.