Saeid cf6cd11e94 fix: ErrForeignKeyViolated error constant (#155)
* fix: ErrForeignKeyViolated error constant

* refactor: added error codes reference

---------

Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-06-09 10:19:25 +08:00
2023-05-19 18:48:58 +08:00
2020-06-02 09:53:23 +08:00
2020-09-24 15:49:52 +08:00

GORM Sqlite Driver

CI

USAGE

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 for details.

Pure go Sqlite Driver

checkout https://github.com/glebarez/sqlite for details

import (
  "github.com/glebarez/sqlite"
  "gorm.io/gorm"
)

db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
Description
Package sqlite is a CGo-free port of SQLite/SQLite3. SQLite is an in-process implementation of a self-contained, serverless, zero-configuration, transactional SQL database engine.
Readme 585 KiB
Languages
Go 100%