Documentation
¶
Index ¶
- Variables
- func CheckGoModExists() bool
- func CopyAndModifyFiles(srcDir, destDir, fileName string, callDataMap map[int]CallData, ...) error
- func ExtractSignature(file *ast.File) map[string]SignatureData
- func GenerateMainFile(data GenerateData, destDir string) error
- func GeneratePopulatingFile(flags Flags, destDir string) error
- func GeneratePrintingFile(destDir string) error
- func GetCallData(node *ast.File, fset *token.FileSet, squirrelImport string) map[int]CallData
- func Handle(fileName, callMethodName string, flags Flags) error
- func Navigate(flags Flags) error
- func ParseMutationQueries(queriesFile string)
- type CallData
- type Flags
- type GenerateData
- type MutationQueries
- type SignatureData
- type Stack
Constants ¶
This section is empty.
Variables ¶
View Source
var QueriesMap = map[string]map[string]struct{}{
"Exec": {
"Exec": {},
"Query": {},
"QueryRow": {},
},
"Get": {
"Get": {},
"Select": {},
},
"Execx": {
"Execx": {},
"Queryx": {},
"QueryxRow": {},
},
"Getx": {
"Getx": {},
"Selectx": {},
},
}
Functions ¶
func CheckGoModExists ¶
func CheckGoModExists() bool
func CopyAndModifyFiles ¶
func ExtractSignature ¶
func ExtractSignature( file *ast.File, ) map[string]SignatureData
func GenerateMainFile ¶
func GenerateMainFile(data GenerateData, destDir string) error
func GeneratePopulatingFile ¶
func GeneratePrintingFile ¶
func GetCallData ¶
func ParseMutationQueries ¶
func ParseMutationQueries(queriesFile string)
Types ¶
type GenerateData ¶
type MutationQueries ¶
type SignatureData ¶
Click to show internal directories.
Click to hide internal directories.