chore: TODO removed as function created 💡

This commit is contained in:
2024-09-02 22:49:15 +12:00
parent 5d9be49f6c
commit 676ed11c3f

View File

@@ -189,7 +189,7 @@ func removeDefiners(filename string) {
// Regex 1: .*(DEFINER=[a-zA-Z0-9\x60%@]+).* (Used by procedures/funcs) // Regex 1: .*(DEFINER=[a-zA-Z0-9\x60%@]+).* (Used by procedures/funcs)
// Regex 2: .*(\/\*\!50003.*!50003+).* (Used by triggers) // Regex 2: .*(\/\*\!50003.*!50003+).* (Used by triggers)
// Regex 3: (\/\*\!50013.*DEFINER \*\/) (Used in schema) // Regex 3: (\/\*\!50013.*DEFINER \*\/) (Used in schema)
// TODO: Add routine body to strip definers.
expressions := make([]string, 3) expressions := make([]string, 3)
expressions[0] = `s/(^.*)(.DEFINER=[a-zA-Z0-9\x60%@]+)(.*)/$1$3/g` expressions[0] = `s/(^.*)(.DEFINER=[a-zA-Z0-9\x60%@]+)(.*)/$1$3/g`
expressions[1] = `s/(.*)(\/\*\!50003.*!50003+)(.*)/$1$3/g` expressions[1] = `s/(.*)(\/\*\!50003.*!50003+)(.*)/$1$3/g`