From 480734046bca8202e12950b95563c858ef3dcfa5 Mon Sep 17 00:00:00 2001 From: Fabien Masson Date: Sat, 8 Aug 2026 23:01:09 +0200 Subject: [PATCH] suppression des traces --- orm.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/orm.go b/orm.go index 41b9807..08115e1 100644 --- a/orm.go +++ b/orm.go @@ -4,7 +4,6 @@ import ( "database/sql" "fmt" "reflect" - "strings" "time" ) @@ -17,8 +16,6 @@ type dbfield struct { type Dialect interface { TableExists(db *sql.DB, tableName string) (bool, error) ColumnSpec(f dbfield) (string, error) - // ScanResult scans a single row into the provided destination slice - // The row parameter can be *sql.Row or *sql.Rows, both implement Scan(dest ...any) error ScanResult(row interface{ Scan(dest ...any) error }, fields []any, fieldTypes []dbfield) error } @@ -48,7 +45,6 @@ func NewTable[T any](db *sql.DB, dialect Dialect, tablename string) (Table[T], e stype: field.Type.String(), dbname: field.Tag.Get("db"), } - fmt.Println(f.name, f.stype, f.dbname) fields = append(fields, f) } @@ -81,7 +77,6 @@ func (t Table[T]) Sync() error { } columns[i] = c } - sql := fmt.Sprintf("create table %s (%s)", t.tablename, strings.Join(columns, ",")) _, err := t.db.Exec(sql) if err != nil { return err