postgresql code

Jorge Luis Rodriguez Carpio jlrodriguez at estudiantes.uci.cu
Fri Jun 9 20:31:41 BST 2006


QSqlDatabase* db = QSqlDatabase::addDatabase("QPSQL7", "MyDb" );
db->setHostName( "localhost" );
db->setDatabaseName( "database_name");
db->setPort( 5432 );
db->open("user", "passwd"); // Database successfully opened; we can now issue SQL commands.

Use QSql Class, read qtdoc for more examples.


 
>Hello
>
>**** This email does not belong with kdevelop, so plz dont mind it..
>
>I need C++ code that should connect/create postgresql databases,,,
>Can you plz give me any idea about this.
>Thanks!!


_______________________________________________
kdevelop mailing list
kdevelop at barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2716 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20060609/4c721d51/attachment.bin>


More information about the KDevelop mailing list