summaryrefslogtreecommitdiff
path: root/src/dal/dataprovider.h
AgeCommit message (Collapse)AuthorFilesLines
2010-10-30Have the PerformTransaction class automatically handle nestingThorbjørn Lindeijer1-0/+6
No need to fiddle around with "startTransaction" booleans now that the helper class is a little more intelligent. When the database is already performing a transaction, no new one will be started.
2010-10-30Introduced a helper class for performing transactionsThorbjørn Lindeijer1-0/+22
Avoids having to remember to call rollbackTransaction and makes transactions exception-safe (since the destructor of PerformTransaction will be called when an exception is thrown).
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2009-12-06Moved DALStorage documentation into source fileThorbjørn Lindeijer1-16/+1
Some methods were documented twice. Stuff moved to source file since this keeps the header more readable, and makes it easier to keep the documentation up to date with the implementation. Also, my IDE jumps to the definition when navigating. Removed two methods that were without an implementation.
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-13/+13
Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
2009-12-06Removed "TMW" and "TMWSERV" from header guardsThorbjørn Lindeijer1-3/+3
2009-12-06A host of code style changesThorbjørn Lindeijer1-25/+12
Removed pointless void in method parameter lists, fixed methods and variables that started with upper case, removed pointless 'const' for stuff passed by value, made some getters const, etc.
2009-07-10Changed BindInteger and BindString to BindValueDavid Athay1-11/+4
2009-07-10Changed database to using prepared statements, to stop SQL injection attacksDavid Athay1-5/+30
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-3/+0
2008-11-05* Account server now loads item database on startup and synchronizes ↵Andreas Habel1-0/+8
tmw_items table in the database. * Added method to DataProvider to escape quotes in strings so that they can be used in SQL statements.
2008-09-17* Added installation scripts to set up database schemas for mysql, sqlite ↵Andreas Habel1-7/+47
and postgresql. The create table statements have been completely removed out from the c++ source into separate, provider specific sql files. Accountserver will no longer create a sqlite file if none present. * Added database specific config parameters to configure each provider independent. * Simplified the connect routine of DALStorage class since every dataprovider is now responsible to retrieve its own parameters. * Extended abstract dataprovider to support transactions, functionally implemented for SQLite and mySQL. * Added methods to retrieve last inserted auto-increment value and the number of modified rows by the last statement. * Rewrite of DALStorage class to be a little more transactional. * Fixed a bug when deleting a character. Old function left data in quests table and guilds table. * Doxygen now also includes non-documented functions and provides a dictionary for all classes
2006-07-27First step toward a restructured class hierarchy for world actors: addGuillaume Melquiond1-6/+0
MovingObject and Player classes.
2006-03-06Cleaned up unnecessary header dependencies and fixed some indentations.Björn Steinbrink1-1/+0
2005-10-23Grammar Corrections, and a little bit of work on getting the name of the Db.Yohann Ferreira1-0/+7
2005-06-21Made sure that pointers are initalized and reset to null after deallocation ↵Huynh Tran1-1/+2
and some reformatting.
2005-06-19Added PostgreSQL DAL class.Aaron Marks1-1/+2
Updated configure.ac to include PostgreSQL & MySQL. (MySQL needs to be adjusted, and it seems that using --with-sqlite will drop out of configure after check for atexit. I dont know why, as i didn't touch the SQLite stuff) :)
2005-06-16Simplified APIs, change namespace from tmw to tmwserv, implemented MySQL ↵Huynh Tran1-94/+36
data provider, added unit tests (require CPPUnit) and bug fixes.
2005-06-16Created Storage child which uses DAL (used by default now).Aaron Marks1-1/+1
Updated RecoredSet to allow access to rows() and cols().
2005-06-14Reworked RecordSet and implemented the SQLite Data ProviderHuynh Tran1-1/+35
2005-06-13Initial release of the Database Abstraction LayerHuynh Tran1-0/+175