Skip to content

Instantly share code, notes, and snippets.

@barkady
Last active June 5, 2017 11:55
Show Gist options
  • Save barkady/38d782742f859a286b0b693c84f028e5 to your computer and use it in GitHub Desktop.
Save barkady/38d782742f859a286b0b693c84f028e5 to your computer and use it in GitHub Desktop.
typedef Tuple Person;
Person pHomer, pLisa;
int aHomer(42), aLisa(10), aBart(0);
session << "SELECT * FROM Person WHERE Age = ?; "
"SELECT Age FROM Person WHERE FirstName = 'Bart'; "
"SELECT * FROM Person WHERE Age = ?",
into(pHomer, 0), use(aHomer),
into(aBart, 1),
into(pLisa, 2), use(aLisa);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment