package
1.2.0
Repository: https://github.com/dizzyfool/genna.git
Documentation: pkg.go.dev

# Functions

CamelCased converts string to camelCase from github.com/go-pg/pg/v9/internal.
ColumnName gets string usable as struct field name.
EntityName gets string usable as struct name.
File creates file.
FmtAndSave formats go code and saves file if formatting failed it still saves file but return error also.
HasUpper checks if string contains upper case.
IsLower check rune for lower case.
IsUpper check rune for upper case.
Join joins table name and schema to full name.
JoinF joins table name and schema to full name filtering public.
LowerFirst lowers the first letter.
NewAnnotation creates annotation.
NewIndex creates Index.
NewSet creates Set.
PackageName gets string usable as package name.
Quoted quotes entity name if needed.
ReplaceSuffix replaces substring on the end of string.
Sanitize makes string suitable for golang var, const, field, type name.
Schemas get schemas from table names.
Singular makes singular of plural english word.
Split splits full table name in schema and table name.
ToLower converts rune to lower.
ToUpper converts rune to upper.
Underscore converts string to under_scored from github.com/go-pg/pg/v9/internal.

# Constants

DefaultAlias is a default alias for model.
DefaultPackage is a default package name.
Id is camelCased Id.
ID is golang ID.
Ids is camelCased Ids.
IDs is golang IDs.
PublicSchema is a default postgresql schema.
Rel if suffix for Relation.

# Structs

Annotation is a simple helper used to build tags for structs.
Index stores unique strings.
Set stores only unique strings.