Hi,
There are no ignorant questions.
Coronium Server is an all-in-one stack. It includes the database(s), simple analytics, Cloud Lua, email sender, Push integration (via external service), User management, etc.
Out of curiosity, are you currently communicating with your backend with a test Corona application?
There is no doubt that you would need to spend some time with the docs, as Coronium is a fairly simple to use, yet deep tool-kit
Just to throw out an (abridged) example:
[lua]
–Corona SDK, on the device.
local coronium = require(‘mod_coronium’)
coronium:init( …see docs… )
coronium:addUser({email=“me@here.com”, password=“1234”, fav_color="Blue})
[/lua]
Now you can use other User module methods.
If you just want to store some data:
[lua]coronium:createObject(“Pets”, { name=“FiFi”, color=“Maroon” } )[/lua]
These calls also return “object” ids, which can be used to call them back, or you can query a datastore as well.
[lua]coronium:getObject(“Pets”, “object-id”)[/lua]
or
[lua]coronium:getObjects(“Pets”, { name=“FiFi” } )[/lua]
This is using Mongo DB as a backend. If you want to use MySQL, you need to create Cloud code (for security). The Server side API is slightly different in how it works, but in general, an SQL query looks like:
[lua]
–This is Cloud Code, on the server.
–Create query
local q = “SELECT * FROM ‘Cars’”
–Run query
local answer = coronium.mysql.query( {database=“mydb”}, q )
[/lua]
You will receive your results in a Lua table format.
All of this doesn’t really matter though if you need GeoLocation queries. It’s something that I have put many hours into solving, but have yet to find a proper conversion for deep table arrays from Lua to the BSON that Mongo wants. I haven’t given up on it though.
Hope some of this helps. Coronium should be considered another “tool” you need to learn and spend time with to really understand it.
You can’t really break anything (that can’t be re-installed) so I would recommend some experimentation time.
Cheers,
Chris