mysql-native v2.3.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function Connection.register

Manually register a prepared statement on this connection.

void register (
  Prepared prepared
);

void register (
  const(char[]) sql
);

Does nothing if statement is already registered on this connection.

Calling this is not strictly necessary, as the prepared statement will automatically be registered upon its first use on any Connection. This is provided for those who prefer eager registration over lazy for performance reasons.