Page cover

What's wise?

This wiki documented for wise 1.0.0

Wise is a lightweight, modern, and flexible ORM (Object-Relational Mapper) for Garry's Mod, inspired by tools like Prisma. It frees you from writing raw SQL queries, escaping strings, and handling results manually. Wise does the heavy lifting so you can focus on game logic.

With Wise, you define your data models once — and instantly get a safe, clean, and expressive API for working with your database directly from Lua. Table creation, query building, type conversion, relationships — all handled for you.

Why use wise?

  • 🧼 No more SQL hell Stop writing ugly SELECT and INSERT statements, stop worrying about injections and escaping. Wise builds queries for you, safely and efficiently.

  • 🔌 Database-agnostic Wise works with any relational SQL-compatible database — MySQL, MariaDB, PostgreSQL, and others.

  • 📦 Simple API, no bloat Fully written in pure Lua. Zero dependencies. Works with any gamemode or script, from small tools to complex frameworks.

How does it work?

Wise generates SQL queries based on your models. You write User:find({ name = "admin" }), and Wise takes care of everything under the hood — safe, structured queries, type handling, result parsing, and more.

It also keeps your models and tables in sync at runtime — no need to write migrations by hand.

Who it is for?

  • Server devs building RP systems or admin tools who want reliable data storage

  • Developers who are sick of dealing with raw SQL strings

  • Anyone who wants type-safe, declarative data modeling in GMod Lua

TL;DR

Wise is the modern way to deal with data in Garry's Mod. No raw SQL. No escaping. No bullshit. Just clean Lua models and a powerful query engine behind the scenes.

Last updated