| Signatur | Sichtbarkeit | Beschreibung |
newMySQLConn(): MySQLConn | priv | Erstellt leere MySQLConn-Struktur |
freeMySQLConn(conn: MySQLConn): void | priv | Gibt Speicher der MySQLConn-Struktur frei |
newMySQLResult(): MySQLResult | priv | Erstellt leere MySQLResult-Struktur |
freeMySQLResult(res: MySQLResult): void | priv | Gibt Speicher der MySQLResult-Struktur frei |
writeInt3(buf: int64, val: int64): void | priv | Schreibt 3-Byte-Integer in Puffer |
readInt3(buf: int64): int64 | priv | Liest 3-Byte-Integer aus Puffer |
MySQLSendPacket(conn: MySQLConn, data: int64, len: int64): bool | pub | Sendet Paket über MySQL-Verbindung |
MySQLReadPacket(conn: MySQLConn): int64 | pub | Empfängt Paket von MySQL-Server |
buildHandshakeResp41(conn: MySQLConn, buf: int64, authHash: int64): int64 | priv | Erstellt Protocol-41-Handshake-Antwort |
parseIPv4Byte(host: pchar, offset: int64): int64 | priv | Parst einzelnen IPv4-Adressteil |
skipIPv4Part(host: pchar, offset: int64): int64 | priv | Überspringt IPv4-Teil im String |
MySQLConnect(host: pchar, port: int64, user: pchar, pass: pchar, db: pchar): MySQLConn | pub | Stellt MySQL-Verbindung her |
MySQLClose(conn: MySQLConn): void | pub | Schließt MySQL-Verbindung |
mysqlSendCommand(conn: MySQLConn, cmd: int64, data: int64, len: int64): bool | priv | Sendet MySQL-Kommando an Server |
parseOKPacket(conn: MySQLConn, payload: int64, payloadLen: int64): bool | priv | Verarbeitet MySQL-OK-Paket |
parseErrorPacket(conn: MySQLConn, payload: int64, payloadLen: int64): bool | priv | Verarbeitet MySQL-Fehlerpaket |
MySQLQuery(conn: MySQLConn, sql: pchar): MySQLResult | pub | Führt SQL-Abfrage aus |
MySQLError(conn: MySQLConn): pchar | pub | Gibt letzte Fehlermeldung zurück |
MySQLErrno(conn: MySQLConn): int64 | pub | Gibt letzten MySQL-Fehlercode zurück |
MySQLAffectedRows(conn: MySQLConn): int64 | pub | Gibt Anzahl betroffener Zeilen zurück |
MySQLInsertId(conn: MySQLConn): int64 | pub | Gibt Auto-Increment-ID des letzten Inserts zurück |
MySQLNumFields(res: MySQLResult): int64 | pub | Gibt Spaltenanzahl des Ergebnisses zurück |
MySQLNumRows(res: MySQLResult): int64 | pub | Gibt Zeilenanzahl des Ergebnisses zurück |
MySQLFreeResult(res: MySQLResult): void | pub | Gibt Ergebnis-Speicher frei |
MySQLFetchRow(res: MySQLResult): int64 | pub | Liest nächste Ergebniszeile |
MySQLDataSeek(res: MySQLResult, rowNum: int64): void | pub | Setzt Cursor auf bestimmte Zeile |
MySQLGetFieldName(res: MySQLResult, idx: int64): pchar | pub | Gibt Spaltenname nach Index zurück |
MySQLGetFieldType(res: MySQLResult, idx: int64): int64 | pub | Gibt Datentyp einer Spalte zurück |
MySQLGetFieldLength(res: MySQLResult, idx: int64): int64 | pub | Gibt maximale Feldlänge zurück |
skipLenEncStr(row: int64, pos: int64): int64 | priv | Überspringt length-encoded String im Paket |
MySQLGetRowStr(res: MySQLResult, row: int64, idx: int64): pchar | pub | Liest Zellwert als String |
MySQLGetRowInt(res: MySQLResult, row: int64, idx: int64): int64 | pub | Liest Zellwert als Integer |
MySQLIsNull(res: MySQLResult, row: int64, idx: int64): bool | pub | Prüft ob Zellwert NULL ist |
MySQLBegin(conn: MySQLConn): bool | pub | Startet Datenbanktransaktion |
MySQLCommit(conn: MySQLConn): bool | pub | Bestätigt offene Transaktion |
MySQLRollback(conn: MySQLConn): bool | pub | Bricht offene Transaktion zurück |
MySQLSetAutoCommit(conn: MySQLConn, enable: bool): bool | pub | Setzt Auto-Commit-Modus |
MySQLInTransaction(conn: MySQLConn): bool | pub | Prüft ob Transaktion aktiv ist |
newMySQLStmt(): MySQLStmt | priv | Erstellt leere MySQLStmt-Struktur |
freeMySQLStmt(stmt: MySQLStmt): void | priv | Gibt Speicher des Prepared Statement frei |
MySQLStmtPrepare(conn: MySQLConn, sql: pchar): MySQLStmt | pub | Bereitet Prepared Statement vor |
ensureStmtExecBuf(minSize: int64): int64 | priv | Stellt ausreichenden Exec-Puffer sicher |
encodeStmtParamBinary(paramIdx: int64, stmt: MySQLStmt, outBuf: int64): int64 | priv | Kodiert Parameter binär für Execution |
MySQLStmtExecute(conn: MySQLConn, stmt: MySQLStmt): MySQLResult | pub | Führt Prepared Statement aus |
MySQLStmtBindParam(stmt: MySQLStmt, paramIdx: int64, typeCode: int64, buffer: int64, bufferLen: int64): bool | pub | Bindet Puffer an Statement-Parameter |
MySQLStmtBindNull(stmt: MySQLStmt, paramIdx: int64, isNull: bool): bool | pub | Setzt Parameter auf NULL |
MySQLStmtBindInt(stmt: MySQLStmt, paramIdx: int64, value: int64): bool | pub | Bindet Integer an Statement-Parameter |
MySQLStmtBindStr(stmt: MySQLStmt, paramIdx: int64, str: pchar): bool | pub | Bindet String an Statement-Parameter |
MySQLStmtBindResult(stmt: MySQLStmt, idx: int64, typeCode: int64, buffer: int64, bufferLen: int64): bool | pub | Bindet Ergebnispuffer an Statement |
MySQLStmtFetch(stmt: MySQLStmt): int64 | pub | Liest nächste Zeile des Statement-Ergebnisses |
MySQLStmtClose(stmt: MySQLStmt): void | pub | Schließt Prepared Statement |
MySQLStmtReset(stmt: MySQLStmt): void | pub | Setzt Prepared Statement zurück |
MySQLPoolCreate(maxConnections: int64): int64 | pub | Erstellt Connection-Pool |
MySQLPoolDestroy(poolHandle: int64): void | pub | Zerstört Connection-Pool |