yjp 9 miesięcy temu
rodzic
commit
50f4b052ed
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      sdk/sdk.go

+ 2 - 2
sdk/sdk.go

@@ -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
 	}