Documentation ¶
Index ¶
- func DestroyClient(client *Client) error
- type Client
- func (c *Client) AutoMigrate(req *client.AutoMigrateRequest) error
- func (c *Client) AutoMigrateBatch(req *client.AutoMigrateBatchRequest) error
- func (c *Client) CommonCount(req *client.CommonCountRequest) (string, int64, error)
- func (c *Client) CommonCountEvent(req *client.CommonCountEventRequest) (string, int64, error)
- func (c *Client) CommonCountEventHistory(req *client.CommonCountEventRequest) (string, int64, error)
- func (c *Client) CommonEventHistoryQuery(req *client.CommonEventQueryRequest) (string, []client.EventInfo, int64, error)
- func (c *Client) CommonEventQuery(req *client.CommonEventQueryRequest) (string, []client.EventInfo, int64, error)
- func (c *Client) CommonQuery(req *client.CommonQueryRequest) (string, []map[string]any, int64, error)
- func (c *Client) CountEventByKeys(req *client.CountEventByKeysRequest) (string, int64, error)
- func (c *Client) CountEventHistoryByKeys(req *client.CountEventByKeysRequest) (string, int64, error)
- func (c *Client) CountWhere(req *client.CountWhereRequest) (string, int64, error)
- func (c *Client) Delete(req *client.DeleteRequest) (string, error)
- func (c *Client) DeleteBatch(req *client.DeleteBatchRequest) (string, error)
- func (c *Client) EventHistoryQueryByKeys(req *client.EventQueryByKeysRequest) (string, []client.EventInfo, int64, error)
- func (c *Client) EventQueryByKeys(req *client.EventQueryByKeysRequest) (string, []client.EventInfo, int64, error)
- func (c *Client) Insert(req *client.InsertRequest) (string, error)
- func (c *Client) InsertBatch(req *client.InsertBatchRequest) (string, error)
- func (c *Client) QueryByKeys(req *client.QueryByKeysRequest) (string, map[string]any, error)
- func (c *Client) QueryByWhereAndOrderBy(req *client.QueryByWhereAndOrderByRequest) (string, []map[string]any, int64, error)
- func (c *Client) Replay(req *client.ReplayRequest) (string, error)
- func (c *Client) Transaction(databaseID string, txFunc client.TransactionFunc) error
- func (c *Client) Update(req *client.UpdateRequest) (string, error)
- type Transaction
- func (tx *Transaction) DeleteBatchTx(req *client.DeleteBatchRequest) (string, error)
- func (tx *Transaction) DeleteTx(req *client.DeleteRequest) (string, error)
- func (tx *Transaction) End() error
- func (tx *Transaction) InsertBatchTx(req *client.InsertBatchRequest) (string, error)
- func (tx *Transaction) InsertTx(req *client.InsertRequest) (string, error)
- func (tx *Transaction) UpdateTx(req *client.UpdateRequest) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AutoMigrate ¶
func (c *Client) AutoMigrate(req *client.AutoMigrateRequest) error
func (*Client) AutoMigrateBatch ¶
func (c *Client) AutoMigrateBatch(req *client.AutoMigrateBatchRequest) error
func (*Client) CommonCount ¶
func (*Client) CommonCountEvent ¶
func (*Client) CommonCountEventHistory ¶
func (*Client) CommonEventHistoryQuery ¶
func (*Client) CommonEventQuery ¶
func (*Client) CommonQuery ¶
func (*Client) CountEventByKeys ¶
func (*Client) CountEventHistoryByKeys ¶
func (*Client) CountWhere ¶
func (*Client) DeleteBatch ¶
func (c *Client) DeleteBatch(req *client.DeleteBatchRequest) (string, error)
func (*Client) EventHistoryQueryByKeys ¶
func (*Client) EventQueryByKeys ¶
func (*Client) InsertBatch ¶
func (c *Client) InsertBatch(req *client.InsertBatchRequest) (string, error)
func (*Client) QueryByKeys ¶
func (*Client) QueryByWhereAndOrderBy ¶
func (*Client) Transaction ¶
func (c *Client) Transaction(databaseID string, txFunc client.TransactionFunc) error
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) DeleteBatchTx ¶
func (tx *Transaction) DeleteBatchTx(req *client.DeleteBatchRequest) (string, error)
func (*Transaction) DeleteTx ¶
func (tx *Transaction) DeleteTx(req *client.DeleteRequest) (string, error)
func (*Transaction) End ¶
func (tx *Transaction) End() error
func (*Transaction) InsertBatchTx ¶
func (tx *Transaction) InsertBatchTx(req *client.InsertBatchRequest) (string, error)
func (*Transaction) InsertTx ¶
func (tx *Transaction) InsertTx(req *client.InsertRequest) (string, error)
func (*Transaction) UpdateTx ¶
func (tx *Transaction) UpdateTx(req *client.UpdateRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.