Skip to content

tDB

tDB banner

tDB answers every oxmysql export, translates MySQL SQL to SQLite as it goes, and runs an embedded PocketBase underneath. No MySQL to install, no connection string, nothing to keep running alongside it.

lua
-- Existing oxmysql code. Unchanged.
local row = exports.oxmysql:single_async('SELECT * FROM players WHERE citizenid = ?', { cid })
database servers to install
0
resource names provided: oxmysql, mysql-async, ghmattimysql
3
port, and it's tLib's
1
licence, source included
MIT

What it is not

  • Not a MySQL server. SQL is translated to SQLite, and a few constructs are refused — see MySQL compatibility.
  • Not a drop-in for a database you already have data in. tDB starts empty; moving an existing MySQL database across is a migration, not a swap.
  • Not something to run next to oxmysql. Remove oxmysql.

Requirements

RequirementDetail
tLibv1.0 or later. tDB declares tlib_min_version '1.0' and will not start without it
PlatformWindows or Linux, x86-64. The bundled PocketBase builds are windows_amd64 and linux_amd64; there is no ARM build
FiveM artifactNew enough for Node 22, which the manifest declares as node_version '22'
FrameworkNone
OneSyncNot required

Credits and licence

tDB bundles PocketBase (MIT, Gani Georgiev) and the Polyglot SQL transpiler @polyglot-sql/sdk (MIT, TobiLG) as WebAssembly. tDB itself is MIT; see LICENSE.md in the repository.

Still stuck? Support can answer it directly.

Was this page helpful?