where calling f() should return a DBInterface.Connection. This is convenient in applications where the Connection is more dynamic and should be retrieved at runtime.
Also adds a convenience macro:
DBInterface.@prepare getDB sql
That expands to checking if sql has been prepared and cached yet and if not, calls the new prepare function with the getDB function.
2nd commit adds a new interface method DBInterface.lastrowid(x::Cursor) for databases that support this.
Adds a method:
where calling
f()
should return aDBInterface.Connection
. This is convenient in applications where the Connection is more dynamic and should be retrieved at runtime.Also adds a convenience macro:
That expands to checking if
sql
has been prepared and cached yet and if not, calls the newprepare
function with thegetDB
function.2nd commit adds a new interface method
DBInterface.lastrowid(x::Cursor)
for databases that support this.