github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/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  	"fmt"
     8  
     9  	"github.com/hyperledger/burrow/logging"
    10  	"github.com/hyperledger/burrow/vent/types"
    11  	"github.com/jmoiron/sqlx"
    12  )
    13  
    14  // This is a no-op version of SQLiteAdapter
    15  type SQLiteAdapter struct {
    16  	Log *logging.Logger
    17  }
    18  
    19  var _ DBAdapter = &SQLiteAdapter{}
    20  
    21  func NewSQLiteAdapter(names types.SQLNames, log *logging.Logger) *SQLiteAdapter {
    22  	panic(fmt.Errorf("vent has been built without sqlite support. To use the sqlite DBAdapter build with the 'sqlite' build tag enabled"))
    23  }
    24  
    25  func (*SQLiteAdapter) Open(dbURL string) (*sqlx.DB, error) {
    26  	panic("implement me")
    27  }
    28  
    29  func (*SQLiteAdapter) TypeMapping(sqlColumnType types.SQLColumnType) (string, error) {
    30  	panic("implement me")
    31  }
    32  
    33  func (*SQLiteAdapter) ErrorEquals(err error, sqlErrorType types.SQLErrorType) bool {
    34  	panic("implement me")
    35  }
    36  
    37  func (*SQLiteAdapter) SecureName(name string) string {
    38  	panic("implement me")
    39  }
    40  
    41  func (*SQLiteAdapter) CreateTableQuery(tableName string, columns []*types.SQLTableColumn) (string, string) {
    42  	panic("implement me")
    43  }
    44  
    45  func (*SQLiteAdapter) FindTableQuery() string {
    46  	panic("implement me")
    47  }
    48  
    49  func (*SQLiteAdapter) TableDefinitionQuery() string {
    50  	panic("implement me")
    51  }
    52  
    53  func (*SQLiteAdapter) AlterColumnQuery(tableName, columnName string, sqlColumnType types.SQLColumnType, length, order int) (string, string) {
    54  	panic("implement me")
    55  }
    56  
    57  func (*SQLiteAdapter) SelectRowQuery(tableName, fields, indexValue string) string {
    58  	panic("implement me")
    59  }
    60  
    61  func (*SQLiteAdapter) SelectLogQuery() string {
    62  	panic("implement me")
    63  }
    64  
    65  func (*SQLiteAdapter) InsertLogQuery() string {
    66  	panic("implement me")
    67  }
    68  
    69  func (*SQLiteAdapter) UpsertQuery(table *types.SQLTable, row types.EventDataRow) (types.UpsertDeleteQuery, interface{}, error) {
    70  	panic("implement me")
    71  }
    72  
    73  func (*SQLiteAdapter) DeleteQuery(table *types.SQLTable, row types.EventDataRow) (types.UpsertDeleteQuery, error) {
    74  	panic("implement me")
    75  }
    76  
    77  func (*SQLiteAdapter) RestoreDBQuery() string {
    78  	panic("implement me")
    79  }
    80  
    81  func (*SQLiteAdapter) CleanDBQueries() types.SQLCleanDBQuery {
    82  	panic("implement me")
    83  }
    84  
    85  func (*SQLiteAdapter) DropTableQuery(tableName string) string {
    86  	panic("implement me")
    87  }
    88  
    89  func (*SQLiteAdapter) SchemaName(tableName string) string {
    90  	panic("implement me")
    91  }