Skip to content

Commit 57ea8fa

Browse files
committed
Remove large binary file and update .gitignore
- Remove example/main binary (54MB) that was accidentally committed - Update .gitignore to exclude binary files - Prevent future binary commits with specific patterns
1 parent 8e83e01 commit 57ea8fa

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*.dll
55
*.so
66
*.dylib
7+
main
8+
example/main
79

810
# Test binary, built with `go test -c`
911
*.test

example/main

-52.2 MB
Binary file not shown.

test_db.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
package main
3+
4+
import (
5+
"fmt"
6+
"log"
7+
"gorm.io/driver/duckdb"
8+
"gorm.io/gorm"
9+
)
10+
11+
func main() {
12+
db, err := gorm.Open(duckdb.Open(":memory:"), &gorm.Config{})
13+
if err != nil {
14+
log.Fatal("Failed to connect:", err)
15+
}
16+
17+
sqlDB, err := db.DB()
18+
if err != nil {
19+
log.Fatal("Failed to get *sql.DB:", err)
20+
}
21+
22+
if err := sqlDB.Ping(); err != nil {
23+
log.Fatal("Failed to ping:", err)
24+
}
25+
26+
fmt.Println("✅ db.DB() method works correctly!")
27+
}

0 commit comments

Comments
 (0)