github.com/pjdufour-truss/pop@v4.11.2-0.20190705085848-4c90b0ff4d5a+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  	dialectSynonyms["sqlite"] = nameSQLite3
    13  	newConnection[nameSQLite3] = newSQLite
    14  }
    15  
    16  func newSQLite(deets *ConnectionDetails) (dialect, error) {
    17  	return nil, errors.New("sqlite3 support was not compiled into the binary")
    18  }