evolve icon indicating copy to clipboard operation
evolve copied to clipboard

SQLite and MySQL Support

Open Xandaros opened this issue 12 years ago • 2 comments

It'd be nice to have database support in evolve. The current textfile system is kinda weird.

Xandaros avatar Dec 26 '12 06:12 Xandaros

Working on MySQL support. A lot of code will have to change, especially the _GetProperty_ functions. They actually return values, but using mysqloo we'll have to use callbacks. Example :

--! current version
local nick = evolve:GetProperty(uniqueid, "Nick", "Error")

--! future version
evolve:GetProperty(uniqueid, "Error", function(nick)
     -- do something with nick
end)

Also I'm going to change the UniqueID to SteamID64 to make it compatible with multiple servers.

Thoughts ?

Tommy228 avatar Oct 28 '14 07:10 Tommy228

One of the main reasons I haven't implemented this yet is that I don't like how evolve is accessing data at the moment. If you can be arsed restructuring everything to be event-based, go ahead.

SteamID64 instead of UniqueID is also a good idea. When I was working on MySQL-Support, I did the same. (I just don't have the time atm, I'm way too busy. If you can implement this in a way that I like, I'd be grateful.)

Xandaros avatar Oct 28 '14 10:10 Xandaros