AMX Mod X API Documentation

Signature
native Handle:SQL_MakeDbTuple(const host[], const user[], const pass[], const db[], timeout = 0);
Description

Creates a connection information tuple. This tuple must be passed

into connection routines.

Notes
  • Freeing the tuple is not necessary, but is a good idea if you create

    many of them. You can cache these handles globally.

  • This does not connect to the DB; it only caches the connection information.
Parameters
  • host Database host
  • user Database user
  • pass Database password
  • db Database name to use
  • timeout Specifies how long connections should wait before giving up.

    If <= 0, the default of 60s is used.

Returns

A newly created tuple handle to be used in connection routines.

Назад
Верх