]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Improve and modernize the SQL system API.
authorPeter Powell <petpow@saberuk.com>
Fri, 22 Dec 2017 02:47:54 +0000 (02:47 +0000)
committerPeter Powell <petpow@saberuk.com>
Fri, 22 Dec 2017 16:49:01 +0000 (16:49 +0000)
commitb6f57c0f06f4905b04de6ec2069522d2263626c4
treed682ab49c248abeaf68f90d49f3322feb738f492
parentc8f515121fbdf3e4de693712ef2311cece45477d
Improve and modernize the SQL system API.

- Move everything into the SQL namespace and drop the SQL prefix.
- Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo.
- Rename SQLEntry to SQL::Field and clean up.
- Rename SQLEntries to SQL::Row.
- Rename SQLerror to SQL::Error and clean up.
- Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix.
- Rename ParamL to SQL::ParamList.
- Rename ParamM to SQL::ParamMap;
- Make implementing SQLQuery::OnError mandatory.
- Redo most of the documentation in the sql header.
include/modules/sql.h
src/modules/extra/m_mysql.cpp
src/modules/extra/m_pgsql.cpp
src/modules/extra/m_sqlite3.cpp
src/modules/m_sqlauth.cpp
src/modules/m_sqloper.cpp