Closed xiangfu0 closed 7 months ago
Support SQL params in query execution. Add below method into Connection struct: func (c *Connection) ExecuteSQLWithParams(table string, queryPattern string, params []interface{}) (*BrokerResponse, error)
Connection
func (c *Connection) ExecuteSQLWithParams(table string, queryPattern string, params []interface{}) (*BrokerResponse, error)
Sample usage:
... queryPattern := "SELECT * FROM table WHERE id = ?" params := []interface{}{42} brokerResp, err := conn.ExecuteSQLWithParams("baseballStats", queryPattern, params) ...
Support SQL params in query execution. Add below method into
Connection
struct:func (c *Connection) ExecuteSQLWithParams(table string, queryPattern string, params []interface{}) (*BrokerResponse, error)
Sample usage: