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