FahadZaheerfzr commented on issue #445:
URL: https://github.com/apache/age/issues/445#issuecomment-1399237284

   Is there a short way to prepare the statements and execute them, if you are 
trying to run multiple queries and you are not concerned with the results that 
are generated by those statements.
   
   Forexample I want to execute these two statements, is there any short way to 
write these two statements and execute them.
   ```
   do {
           let load_age_statement = try connection.prepareStatement(text: "Load 
'age';")
           let set_path_statement = try connection.prepareStatement(text: "SET 
search_path = ag_catalog, '$user', public;")
       
           var cursor = try load_age_statement.execute()
           load_age_statement.close()
           cursor  = try set_path_statement.execute()
           
   }catch{
           print(error)
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to