Code: Select all
[color=orange]Oct 12, 2008 - Maarc[/color]
#ifdef'd ODBCManager implementation. You will need to enable through Config.h, and add 2 files to project.
Accounts load and save from a database, falling back to read/write if connection doesn't exist
Both logins are logged into SQL database
ODBCManager exposed to JS Engine - note, columns MUST be fetched in ascending numeric starting from 0
Long strings printed to the console will now wrap in a friendly fashion
Unknown INI file tags will now print out at startup
More robustness and example code to come. I'll try to generate an all in one experimental build with it, along with an example DB, and a script showing off some possibilities. Note with JS exposure, you can happily add your own tables and fetch it.
Few caveats:
GetColumn must occur in ascending col # order from 0, and you can't go back. If you're looking at doing multiple INSERTs or UPDATEs, wrap it in a BeginTransaction/FinaliseTransaction pair for performance. Currently, no abstraction for getdate(), so only SQL Server friendly at the moment.
Enjoy. Ask any questions if you like!