Documentation ¶
Index ¶
- type Auth
- type D1
- func (dbh *D1) CreateIndexes(ts []db.Index) error
- func (dbh *D1) CreateTables(ctx context.Context, ts []db.Table) error
- func (dbh *D1) CreateViews(ts []db.View) error
- func (dbh *D1) Delete(table string, conditions []map[string]any) (db.Result, error)
- func (dbh *D1) Insert(ctx context.Context, table string, rows []map[string]string) (db.Result, error)
- func (dbh *D1) Select(ctx context.Context, table string, columns func() map[string]any) (db.Result, error)
- func (dbh *D1) Update(table string, assignments []map[string]any, conditions []map[string]any) (db.Result, error)
- type KeyDB
- func (db *KeyDB) Close() error
- func (db *KeyDB) Delete(ctx context.Context, key ...string) error
- func (db *KeyDB) DeleteAll(ctx context.Context) error
- func (db *KeyDB) Get(ctx context.Context, key ...string) (map[string][]byte, error)
- func (db *KeyDB) Head(ctx context.Context, key ...string) (bool, error)
- func (db *KeyDB) List(ctx context.Context, prefix *string, limit *uint) (keys []string, cursor uint64, err error)
- func (db *KeyDB) Put(ctx context.Context, entries map[string][]byte, ttl time.Duration) error
- type MySQL
- func (dbh *MySQL) Close() error
- func (dbh *MySQL) CreateIndexes(context.Context, []db.Index) error
- func (dbh *MySQL) CreateTables(ctx context.Context, ts []db.Table) error
- func (dbh *MySQL) CreateViews(ctx context.Context, ts []db.View) error
- func (dbh *MySQL) Delete(ctx context.Context, table string, conditions map[string]any) error
- func (dbh MySQL) DropTables(ctx context.Context, tables []db.Table) error
- func (dbh *MySQL) Insert(ctx context.Context, table string, rows []map[string]any) (db.Result, error)
- func (dbh *MySQL) Select(ctx context.Context, table string, columns func() map[string]any, ...) (res db.Result, err error)
- func (dbh *MySQL) Update(ctx context.Context, table string, assignments map[string]any, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D1 ¶
type D1 struct {
// contains filtered or unexported fields
}
type KeyDB ¶
type KeyDB struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.