github.com/Tri-stone/burrow@v0.25.0/vent/sqldb/adapters/sqlite_adapter_nosqlite.go (about) 1 // sqlite3 is a CGO dependency - we cannot have it on board if we want to use pure Go (e.g. for cross-compiling and other things) 2 // +build !sqlite 3 4 package adapters 5 6 import ( 7 "database/sql" 8 "fmt" 9 10 "github.com/hyperledger/burrow/vent/types" 11 12 "github.com/hyperledger/burrow/vent/logger" 13 ) 14 15 // This is a no-op version of SQLiteAdapter 16 type SQLiteAdapter struct { 17 Log *logger.Logger 18 } 19 20 func NewSQLiteAdapter(log *logger.Logger) *SQLiteAdapter { 21 panic(fmt.Errorf("vent has been built without sqlite support. To use the sqlite DBAdapter build with the 'sqlite' build tag enabled")) 22 } 23 24 func (*SQLiteAdapter) Open(dbURL string) (*sql.DB, error) { 25 panic("implement me") 26 } 27 28 func (*SQLiteAdapter) TypeMapping(sqlColumnType types.SQLColumnType) (string, error) { 29 panic("implement me") 30 } 31 32 func (*SQLiteAdapter) ErrorEquals(err error, sqlErrorType types.SQLErrorType) bool { 33 panic("implement me") 34 } 35 36 func (*SQLiteAdapter) SecureName(name string) string { 37 panic("implement me") 38 } 39 40 func (*SQLiteAdapter) CreateTableQuery(tableName string, columns []*types.SQLTableColumn) (string, string) { 41 panic("implement me") 42 } 43 44 func (*SQLiteAdapter) LastBlockIDQuery() string { 45 panic("implement me") 46 } 47 48 func (*SQLiteAdapter) FindTableQuery() string { 49 panic("implement me") 50 } 51 52 func (*SQLiteAdapter) TableDefinitionQuery() string { 53 panic("implement me") 54 } 55 56 func (*SQLiteAdapter) AlterColumnQuery(tableName, columnName string, sqlColumnType types.SQLColumnType, length, order int) (string, string) { 57 panic("implement me") 58 } 59 60 func (*SQLiteAdapter) SelectRowQuery(tableName, fields, indexValue string) string { 61 panic("implement me") 62 } 63 64 func (*SQLiteAdapter) SelectLogQuery() string { 65 panic("implement me") 66 } 67 68 func (*SQLiteAdapter) InsertLogQuery() string { 69 panic("implement me") 70 } 71 72 func (*SQLiteAdapter) UpsertQuery(table *types.SQLTable, row types.EventDataRow) (types.UpsertDeleteQuery, interface{}, error) { 73 panic("implement me") 74 } 75 76 func (*SQLiteAdapter) DeleteQuery(table *types.SQLTable, row types.EventDataRow) (types.UpsertDeleteQuery, error) { 77 panic("implement me") 78 } 79 80 func (*SQLiteAdapter) RestoreDBQuery() string { 81 panic("implement me") 82 } 83 84 func (*SQLiteAdapter) CleanDBQueries() types.SQLCleanDBQuery { 85 panic("implement me") 86 } 87 88 func (*SQLiteAdapter) DropTableQuery(tableName string) string { 89 panic("implement me") 90 }