You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
- Add GORM v1.25.12 with MySQL and SQLite drivers - Add Viper v1.19.0 for configuration management - Add UUID package for GORM model IDs - Update vendor directory with new dependencies - Update Go module requirements and checksums 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
566 B
Markdown
31 lines
566 B
Markdown
# GORM Sqlite Driver
|
|
|
|

|
|
|
|
## USAGE
|
|
|
|
```go
|
|
import (
|
|
"gorm.io/driver/sqlite"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// github.com/mattn/go-sqlite3
|
|
db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
|
|
```
|
|
|
|
Checkout [https://gorm.io](https://gorm.io) for details.
|
|
|
|
### Pure go Sqlite Driver
|
|
|
|
checkout [https://github.com/glebarez/sqlite](https://github.com/glebarez/sqlite) for details
|
|
|
|
```go
|
|
import (
|
|
"github.com/glebarez/sqlite"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
|
|
```
|