How to execute a random postgresql-query.

Alain De Vos devosalain at ymail.com
Mon Jun 28 19:16:40 UTC 2021


How to execute a random postgresql-query ?
With random i mean execute any string as known by postgresql.


void myexecutefunction(string string_to_execute){
// Some code to Execute postgre-sq-string
}

...

void main(){
myexecutefunction("CREATE DATABASE test");
myexecutefunction("CREATE USER test");
...
myexecutefunction("SELECT * FROM testtable");
}


More information about the Digitalmars-d-learn mailing list