Documentation
¶
Index ¶
- type QueryOptions
- type SQLiteStorage
- func (s *SQLiteStorage) Close() error
- func (s *SQLiteStorage) CreateTable(table any) error
- func (s *SQLiteStorage) Delete(record any) error
- func (s *SQLiteStorage) HasTable(table any) (bool, error)
- func (s *SQLiteStorage) Init() error
- func (s *SQLiteStorage) Insert(record any) error
- func (s *SQLiteStorage) QueryRpcCallRecords(opts QueryOptions) ([]models.RpcCallRecord, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryOptions ¶
type SQLiteStorage ¶
type SQLiteStorage struct {
// contains filtered or unexported fields
}
func NewSQLiteStorage ¶
func NewSQLiteStorage(dbPath string, db *gorm.DB) *SQLiteStorage
func (*SQLiteStorage) Close ¶
func (s *SQLiteStorage) Close() error
func (*SQLiteStorage) CreateTable ¶
func (s *SQLiteStorage) CreateTable(table any) error
func (*SQLiteStorage) Delete ¶
func (s *SQLiteStorage) Delete(record any) error
func (*SQLiteStorage) Init ¶
func (s *SQLiteStorage) Init() error
Init db and check the path and permission if user not provide the db, it will create a default db in the given path(dbPath)
func (*SQLiteStorage) Insert ¶
func (s *SQLiteStorage) Insert(record any) error
func (*SQLiteStorage) QueryRpcCallRecords ¶
func (s *SQLiteStorage) QueryRpcCallRecords(opts QueryOptions) ([]models.RpcCallRecord, error)
Click to show internal directories.
Click to hide internal directories.