On Monday, 28 June 2021 at 19:16:40 UTC, Alain De Vos wrote:
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");
}

https://code.dlang.org/packages/dpq2

Reply via email to