Skip to content

A small wrapper made for Nanos World to help you execute queries.

Notifications You must be signed in to change notification settings

Morbe17/sql-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

sql-wrapper

A small wrapper made for Nanos World to help you execute queries.

Requires module

luasql

Require the package on top of your script.

Package:RequirePackage("mysql")

Edit your db config in ./server/index.lua

Example Usage

local result = sqlFetch("SELECT characters_names FROM accounts WHERE username='%s'", "Resmurf")
local query = sqlExecute("UPDATE accounts SET characters='%s' WHERE username='%d'", JSON.encode(characters), accountId)
local result = sqlFetchAll('accounts')

Will be detailed more indepth later on.

Feel free to report any bugs directly to this github thread.

About

A small wrapper made for Nanos World to help you execute queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages