WIP: Refactor parse
This commit is contained in:
@@ -53,7 +53,7 @@ func (r *Repository[T]) SelectByPk(pks ...any) *T {
|
||||
|
||||
var whereStmtBuilder strings.Builder
|
||||
|
||||
for _, constr := range table.Constraints {
|
||||
for _, constr := range table.Constraints() {
|
||||
if constr.Type != "pk" {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user