internal

package
v2.0.0-...-9f3f92a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToScake

func CamelToScake(s string) string

CamelToSnake converts the string to snake_case

func EscapeColumnName

func EscapeColumnName(s string) string

EscapeColumnName will escape a column name if using reserved keyword as column name, returning it in surrounded back quotes.

func SingularizeIdentifier

func SingularizeIdentifier(in Inflector, s string) string

SinguralizeIdentifier will singularize a identifier, returning it in CamelCase.

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel converts the string to CamelCase

Types

type Inflector

type Inflector interface {
	Singularize(string) string
	Pluralize(string) string
}

func NewInflector

func NewInflector(rules []config.Inflection) (Inflector, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL