Skip to content

Sleet ORMElegant ORM for FiveM

Schema-as-code philosophy inspired by Drizzle ORM, bringing type-safe queries to Lua scripting environment.

Sleet ORM

Quick Preview

lua
local sl = Sleet
local s  = require 'server.schema'
local db = sl.connect()

-- Full type inference — no manual ---@type needed
local players = db.select()
    .from(s.players)
    .where(sl.eq(s.players.identifier, identifier))
    .execute()
-- players: PlayersRecord[]  ✓  (inferred by LuaLS automatically)

Why Sleet ORM?

  • Modern Development: Brings modern ORM concepts to FiveM's Lua environment
  • Type Safety: Catch errors at development time, not runtime
  • Developer Experience: Excellent IDE support with autocomplete and type checking
  • Performance: Generates efficient parameterized queries
  • Maintainable: Schema-as-code approach makes database changes trackable

Released under the MIT License.