sqdbpp review

This commit is contained in:
Sébastien Rombauts 2012-04-07 08:58:53 +02:00
parent 9b641a5f59
commit 37f3bd506f

View File

@ -3,7 +3,6 @@ http://stackoverflow.com/questions/120295/what-is-a-good-oo-c-wrapper-for-sqlite
http://stackoverflow.com/questions/818155/sqlite-alternatives-for-c http://stackoverflow.com/questions/818155/sqlite-alternatives-for-c
- **sqdbcpp**: RAII design, no depandencies, UTF-8/UTF-16, new BSD license (http://code.google.com/p/sqdbcpp/)
- **sqlite3pp**: uses boost, MIT License (http://code.google.com/p/sqlite3pp/) - **sqlite3pp**: uses boost, MIT License (http://code.google.com/p/sqlite3pp/)
- **SQLite++**: uses boost build system, Boost License 1.0 (http://sqlitepp.berlios.de/) - **SQLite++**: uses boost build system, Boost License 1.0 (http://sqlitepp.berlios.de/)
- **CppSQLite**: famous Code Project but old design, BSD License (http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite/) - **CppSQLite**: famous Code Project but old design, BSD License (http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite/)
@ -15,6 +14,7 @@ http://stackoverflow.com/questions/818155/sqlite-alternatives-for-c
- (++) very well documented, in code and with a very good informal presentation - (++) very well documented, in code and with a very good informal presentation
- (+) is maintained (recent), initial release is 0.1.0, January 2012 (started in 2010) - (+) is maintained (recent), initial release is 0.1.0, January 2012 (started in 2010)
- (+/-) uses boost (some more dependancies...) - (+/-) uses boost (some more dependancies...)
- (-) uses boost coding style (I tend to prefer CamelCaps or Java coding style)
- (-) a bit complicated : offer many way to do the same thing where I would prefer a clean choice - (-) a bit complicated : offer many way to do the same thing where I would prefer a clean choice
- (-) thus it does not impose RAII, as it is still possible to open or close a database outside constructor/destructor - (-) thus it does not impose RAII, as it is still possible to open or close a database outside constructor/destructor
- (---) LPGPL : for me, this is a stopper as I would like to be able to use it in commercial products - (---) LPGPL : for me, this is a stopper as I would like to be able to use it in commercial products
@ -25,3 +25,13 @@ http://stackoverflow.com/questions/818155/sqlite-alternatives-for-c
- comment on returning error code instead of exception that shall not be thrown when exepected (!?) - comment on returning error code instead of exception that shall not be thrown when exepected (!?)
- explain the noncopyable property for RAII design - explain the noncopyable property for RAII design
**sqdbcpp**:
- (++) new BSD license (http://code.google.com/p/sqdbcpp/)
- (+) CamelCaps
- (+) STL is the only depandancy
- (+) RAII design, with some good ideas,
- (-) but with some unnecessary complexity, and some unused code (RefCount...)
- (-) UTF-8/UTF-16 : the second is not portable
- (--) Not documented
- (---) Not maintained/not finished : contact author !?