Files
oxmysql/index.md
T
2021-09-09 12:28:10 +02:00

859 B

Documentation

Introduction

oxmysql is a database wrapper for FiveM utilising node-mysql2 offering improved performance and security.

Query cache

Every executed query is being prepared and stored into cache for faster performance using prepared statements. These statements are also being sanitized from vulnerable SQL injection

'SELECT * FROM `users` WHERE `identifier` = ? AND `group` = ?', { playerIdentifier, playerGroup }

Installation

Configuration

set mysql_connection_string "mysql://user:password@host/database?charset=utf8mb4"
set mysql_slow_query_warning 100