diff --git a/json_utility.go b/json_utility.go index 8b69e3d..844a4fc 100644 --- a/json_utility.go +++ b/json_utility.go @@ -76,6 +76,13 @@ func InitTables(db *ora.Ses, project string) error { return nil } +// ReloadTables reloads all payloads in the payloads variable. +// Returns an error if it fails. +func ReloadTables(db *ora.Ses, project string) error { + payloads = make([]payloadBuff, 0) + return InitTables(db, project) +} + // DecodeJSON decodes JSON data from r to v. // Returns an error if it fails. func DecodeJSON(r io.Reader, v interface{}) error {