github.com/paweljw/pop/v5@v5.4.6/dialect_sqlite_shim.go (about)

     1  // +build !sqlite
     2  
     3  package pop
     4  
     5  import (
     6  	"database/sql/driver"
     7  	"errors"
     8  )
     9  
    10  const nameSQLite3 = "sqlite3"
    11  
    12  func init() {
    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  }
    20  
    21  func newSQLiteDriver() (driver.Driver, error) {
    22  	return nil, errors.New("sqlite3 support was not compiled into the binary")
    23  }