#LuaORM for Garry's Mod

1 messages · Page 1 of 1 (latest)

worn vigil
twin willow
#

Does this have any non-Lua dependencies or is it all pure Lua

worn vigil
#

Im not quite sure. I think its working with LuaSQL

#

And it currently only supports LuaSQL-MySQL

twin willow
#

I assume you want this

worn vigil
#

Yes, i just need MySQL support.

#

AND it doesnt has to be THIS ORM Library. I just didnt found any other one.

twin willow
#

There's this

worn vigil
twin willow
#

Is there any reason as to why you need a different one?

worn vigil
#

I want to use Object Relational Mapping because of its ease of use

#

And its way safer because of abstraction

twin willow
#

I don't think I can help port its entirety to GLua

#

It uses some library that isn't pure Lua and I don't really have any knowledge to port that to work with gmod

worn vigil
#

This is a UI library for gmod which includes a ORM Mapper

#

The documentation of it is lacking though

#

And you have to compile it with laux

twin willow
#

Unless I'm reading it wrong

worn vigil
#

Yes, I dont think the compiling will be difficult

#

The problem im facing in my head is that I want to use this in a gamemode environment. Im not sure I can access addon functions from the gamemode? And also i just need a ORM Mapper and not a whole UI Library

twin willow
#

The library

#

So you can just use that global variable inside the gamemode's Lua files

#

XeninUI.ORM

#

It's created in autorun and gamemode files are included after autorun

twin willow
worn vigil
#

Im working in a sandbox derived custom gamemode so this should be no problem then

twin willow
#

Yeah

worn vigil
#

will try with this then. Thank you for your help.