Qt connecting to postgreSQL database without configuring ODBC -


i'm trying connect postgresql database without configuring system dsn odbc, i've googled lot , i've tried lot of connection strings didn't work, maybe i'm doing wrong. here 1 of connection strings i've tried:

dbconnectionstring = qstring("driver=postgresqlunicode(x64)}| server="+dbhost+"|port=%1|database="+dbname+"|uid="+username+"|pwd="+password+"|byteaaslongvarbinary=1").arg(port) db.setdatabasename(dbconnectionstring);

any suggestion?


Comments

Popular posts from this blog

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -