Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Isted/StreetCRUD
/ functions
Functions
34 in github.com/Isted/StreetCRUD
⨍
Functions
34
◇
Types & classes
4
↓ 10 callers
Function
LowerCaseFirstChar
(word string)
string_fns.go:56
↓ 9 callers
Function
AddQuotesIfAnyUpperCase
(dbOrSchema string)
string_fns.go:66
↓ 6 callers
Function
UpperCaseFirstChar
(word string)
string_fns.go:46
↓ 5 callers
Function
ConvertToUnderscore
(camel string)
string_fns.go:10
↓ 4 callers
Method
Insert
Insert User object to DB
examples/UsesGeneratedCode/models/user.go:94
↓ 4 callers
Function
TrimInnerSpacesToOne
(spacey string)
string_fns.go:76
↓ 3 callers
Function
CheckColAndTblNames
(name string)
models.go:116
↓ 2 callers
Function
BuildStringForFileWrite
(structFromFile *structToCreate, isNew bool, packageName string)
file_gen.go:54
↓ 2 callers
Method
CheckStructForDeletes
()
models.go:41
↓ 1 callers
Function
BuildConnString
BuildConnString builds the connection string from file
db_gen.go:14
↓ 1 callers
Function
ChangeCaseForRange
(changeMe string, startIndex int, endIndex int)
string_fns.go:111
↓ 1 callers
Function
CreateOrAlterTables
CreateOrAlterTables creates and alters tables based on the struct definition file
db_gen.go:38
↓ 1 callers
Method
Delete
Delete will remove the matching row from the DB
examples/UsesGeneratedCode/models/user.go:129
↓ 1 callers
Method
GetByID
Fill User object with data from DB
examples/UsesGeneratedCode/models/user.go:74
↓ 1 callers
Function
GetSafePathForSave
(filePath string)
file_gen.go:30
↓ 1 callers
Method
MapGoTypeToDBTypes
()
models.go:57
↓ 1 callers
Method
MapNullTypes
()
models.go:88
↓ 1 callers
Method
MarkDeleted
Mark a row as deleted and at time.Time
examples/UsesGeneratedCode/models/user.go:117
↓ 1 callers
Method
PatchName
Update name only
examples/UsesGeneratedCode/models/user.go:203
↓ 1 callers
Method
ToJSON
Convert a User object to JSON
examples/UsesGeneratedCode/models/user.go:62
↓ 1 callers
Method
Update
Update User object in DB
examples/UsesGeneratedCode/models/user.go:107
↓ 1 callers
Function
readFileMakeSlice
(filePath string)
file_gen.go:12
Function
CloseUserStmts
CloseUserStmts should be called when prepared SQL statements aren't needed anymore
examples/UsesGeneratedCode/models/user.go:246
Function
GetUsersByEmail
Get Users by email
examples/UsesGeneratedCode/models/user.go:171
Function
GetUsersByName
Get Users by name
examples/UsesGeneratedCode/models/user.go:139
Function
InitUserDataLayer
InitUserDataLayer prepares SQL statements and assigns the passed in DB pointer
examples/UsesGeneratedCode/models/user.go:228
Function
NewUser
Initialize and fill a User object from the DB
examples/UsesGeneratedCode/models/user.go:30
Function
TestCheckStructForDeletes
(t *testing.T)
models_test.go:5
Function
TestConvertToUnderscore
(t *testing.T)
string_fns_test.go:5
Function
TestTrimInnerSpacesToOne
(t *testing.T)
string_fns_test.go:26
Function
UserFromJSON
Transform JSON into a User object
examples/UsesGeneratedCode/models/user.go:51
Function
UsersToJSON
Convert multiple User objects to JSON
examples/UsesGeneratedCode/models/user.go:68
Function
main
The start of the main program
street_crud.go:14
Function
main
IMPORTANT NOTE: if user.go was generated w/o prepared statements, the models.InitUserDataLayer() and models.CloseUserStmts() shouldn't be called. Inst
examples/UsesGeneratedCode/main.go:28