Function prepareFunction

Convenience function to create a prepared statement which calls a stored function.

SafePrepared prepareFunction (
  Connection conn,
  string name,
  int numArgs
) @safe;

Be careful that your numArgs is correct. If it isn't, you may get a MYX with a very unclear error message.

Throws

MYX if the server has a problem.

Parameters

NameDescription
conn The connection to use.
name The name of the stored function.
numArgs The number of arguments the stored procedure takes.