Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » MySQL with SSGM?
Re: MySQL with SSGM? [message #433045 is a reply to message #432883] Sun, 18 July 2010 08:42 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Why are you against using the connection and query functions in the MySQL API rather than the ones in the C++ connector? Using them directly would be more efficient in the long run, since the C++ connector is doing that internally anyway but adding an extra level between your program and the API.


MySQL* db_connection = mysql_init(NULL); 
mysql_real_connect ( db_connection, "localhost", "username", "password", "schema", NULL, NULL, NULL );



Connecting to a MySQL database using the API is that simple. Anyway, obviously it's up to you to decide which way you prefer but I am still a bit confused why anyone would use the c++ connector when the API works in c++ anyway...


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Sun, 18 July 2010 08:42]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help with sockets
Next Topic: Human Anims
Goto Forum:
  


Current Time: Sun Jan 26 19:10:49 MST 2025

Total time taken to generate the page: 0.00827 seconds