Dokumentation zu: db_handles(E)

HR Image

        int * db_handles()

        Returns an array with all open handles to the SQL-server.
        As mySQL is most of the time limited to 100 connections, you
        should not let this number grow too big. The handles are sorted
        in a special order: The last used handle is the first one and
        the handle that hasn't been used for the longest time is
        the last one. If no handles are open, an empty array is returned.

        The function is available only if the driver is compiled with
        mySQL support. In that case, __MYSQL__ is defined.

        The efun triggers a privilege violation ("mysql", "db_handles").

        Added in 3.2.9 .
        LDMud 3.2.11 added the privilege violation.

        db_affected_rows(E), db_conv_string(E), db_close(E), db_coldefs(E),
        db_connect(E), db_error(E), db_exec(E), db_fetch(E), db_insert_id(E),
        mysql(C), privilege_violation(M)

Die Seite ist auch in Deutsch vorhanden.

Start » Magierhandbuch » Docu » Efun » Db_handles Letzte Generierung: 25.04.2021, 01:58
Email an:
Valid HTML 4.01!