Oof your formatting makes this hard to understand.
getField will be local to the module(the .nim file it's in) and if you decalre insert and delete in getField then it'll be local to that proc and can't be accessed from other procs(so even adding * to will not make it accessible to other procs.
something like this:
proc getField(...) =
proc insert() = discard # Only in the scope of getField can insert be used
proc foo*() = discard # can be used module wide and because of * from other modules