github.com/duskeagle/pop@v4.10.1-0.20190417200916-92f2b794aab5+incompatible/dialect_sqlite_shim.go (about) 1 // +build !sqlite 2 3 package pop 4 5 import ( 6 "errors" 7 ) 8 9 const nameSQLite3 = "sqlite3" 10 11 func init() { 12 AvailableDialects = append(AvailableDialects, nameSQLite3) 13 dialectSynonyms["sqlite"] = nameSQLite3 14 newConnection[nameSQLite3] = newSQLite 15 } 16 17 func newSQLite(deets *ConnectionDetails) (dialect, error) { 18 return nil, errors.New("sqlite3 support was not compiled into the binary") 19 }