initial import

This commit is contained in:
ycc
2021-10-29 23:37:32 +02:00
parent 99865b0d6c
commit 5e9ad05a9c
29 changed files with 2737 additions and 0 deletions

30
security/prefilter.go Normal file
View File

@ -0,0 +1,30 @@
package security
import (
"fmt"
"sqldb-ws/models"
)
func CheckSelect(dbuser_id string, table *string, columns *string, restriction *string) {
//fmt.Println(dbuser_id, fmt.Sprintf("%v", table), fmt.Sprintf("%v", columns), fmt.Sprintf("%v", restriction))
}
func removeLastChar(s string) string {
r := []rune(s)
return string(r[:len(r)-1])
}
func Test() {
var teste = models.UsersRights
for _, element := range teste {
fmt.Println(fmt.Sprintf("%v", element))
}
}
/*
##### SCHEMA DE FONCTION #####
*/