sqldb-ws/security/prefilter.go

31 lines
514 B
Go
Raw Permalink Normal View History

2021-10-29 23:37:32 +02:00
package security
import (
"fmt"
"sqldb-ws/models"
)
func CheckSelect(dbuser_id string, table *string, columns *string, restriction *string) {
2023-04-24 16:53:10 +02:00
fmt.Println(dbuser_id, fmt.Sprintf("%v", table), fmt.Sprintf("%v", columns), fmt.Sprintf("%v", restriction))
2021-10-29 23:37:32 +02:00
}
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 #####
*/