|
@@ -15,7 +15,7 @@ type SDK struct {
|
|
|
grpcClient *grpc_client.Client
|
|
|
}
|
|
|
|
|
|
-func (s *SDK) ExecuteRawSql(sql string) ([]map[string]any, error) {
|
|
|
+func (s *SDK) ExecuteRawSql(sql string, values ...any) ([]map[string]any, error) {
|
|
|
if strutils.IsStringEmpty(sql) {
|
|
|
return make([]map[string]any, 0), nil
|
|
|
}
|
|
@@ -23,7 +23,7 @@ func (s *SDK) ExecuteRawSql(sql string) ([]map[string]any, error) {
|
|
|
options := s.options
|
|
|
|
|
|
tableRows, err := s.client.ExecuteRawSql(options.token, options.baseUrl,
|
|
|
- options.namespace, options.dataSource, sql)
|
|
|
+ options.namespace, options.dataSource, sql, values...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|