Skip to content

Instantly share code, notes, and snippets.

View Kronos11's full-sized avatar

Kyle Kronos11

  • Liberty Mutual
  • Liberty Lake, WA, United States
  • X @KyleGameDev
View GitHub Profile
@apathyboy
apathyboy / db c++
Created December 20, 2010 05:52
binding parameters
auto db_manager = make_shared<DatabaseManager>();
auto connection = db_manager->connect("mysql:host=localhost;schema=global", "swganh", "something");
auto statement = connection->prepareStatement("CALL sp_PersistSomeObject(:id, :name, :description)");
// bind values
statement->bindParam(":id", object->id());
statement->bindParam(":name", object->name());
statement->bindParam(":description", object->description());