summaryrefslogtreecommitdiff
path: root/modules/database/db_flatfile.cpp
AgeCommit message (Collapse)Author
2025-03-26Add a typedef for the serializable id.Sadie Powell
2025-03-26Initialize the db_flatfile LoadData stream reference from the ctor.Sadie Powell
2025-03-13Fix setting keepbackups to 0 in db_flatfile.Sadie Powell
2025-03-13Fix deleting old db_flatfile database backups.Sadie Powell
2025-03-12Move serialization from Serializable to a Serialize::Type child.Sadie Powell
2025-03-12Fix the id data type in db_flatfile.Sadie Powell
2025-03-02Return references instead of pointers from the config system.Sadie Powell
We used to return NULL from these methods but now we return an empty block so this can never actually be null now.
2025-01-14Merge branch '2.0' into 2.1.Sadie Powell
2025-01-14Update the copyright headers for 2025.2.0Sadie Powell
2024-08-14Remove the unused KeySet method in Serialize::Data.Sadie Powell
2024-04-29Merge branch '2.0' into 2.1.Sadie Powell
2024-04-29Skip serializing data without a type in db_flatfile.Sadie Powell
2024-03-19Allow using absolute paths in more places.Sadie Powell
2024-03-11Replace convertTo/stringify with non-throwing alternatives.Sadie Powell
Having these throw is terrible for ergonomics and there are loads of places where the exception was either silently ignored or not handled at all. Having a function which returns an optional and another that returns a default works a lot better imo.
2024-02-26Fix some coding style issues.Sadie Powell
2024-02-17Update the copyright headers for 2024.Sadie Powell
2024-01-23Mark types that have no inheritors as final.Sadie Powell
2024-01-23Improve the layout of types that inherit from another type.Sadie Powell
2024-01-04Update the copyright headers for 2024.Sadie Powell
2023-12-17Remove some unnecessary spaces that break editor indentation.Sadie Powell
2023-10-11Start migrating to range-based for loops.Sadie Powell
2022-12-31Merge branch '2.0' into 2.1.Sadie Powell
2022-12-31Update the copyright headers for 2023.Sadie Powell
2022-09-15Merge branch '2.0' into 2.1.Sadie Powell
2022-07-27database: write to temporary file and rename.Michael Stapelberg
This decreases the likelihood of ending up with a zero-byte (or missing) anope.db. Co-authored-by: Michael Stapelberg <michael@robustirc.net>
2022-01-12Merge branch '2.0' into 2.1.Sadie Powell
2022-01-06Update the copyright headers for 2022.Sadie Powell
2022-01-04Use C++11 style class/struct initialisation.Sadie Powell
2022-01-03Replace anope_{final,override} with their C++11 equivalent.Sadie Powell
2021-01-07Update copyright to 2021.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2020-01-04Update copyright to 2020.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2019-12-14Fix a bunch of broken indentation.Peter Powell
2019-01-01Update copyright to 2019.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2018-04-25Update copyright to 2018.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2017-01-17Cleanup some excess whitespaces and tabs, and fix a few typos along the way.Robby
2017-01-16Update copyright to 2017.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet.
2016-01-28Update copyright to 2016. This was done with:Robby
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet. Fixed some whitespace and blank lines along the way.
2015-07-11Fix db_flatfile to read "nobackupokay"Thomas Fargeix
2014-06-15Log more when unable to backup databases in db_flatfileAdam
2014-05-27Fix default db name in db_flatfifle in a couple placesAdam
2014-03-05Open database files using std::ios_base::binary in db_flatfile, which ↵Adam
Windows can require
2014-01-01Update copyright to 2014. This was done with:Adam
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
2013-12-26If using db_flatfile:fork, don't allow multiple saves to happen at one time ↵Adam
on shutdown/restart wait for any pending saves to finish
2013-11-12Set the default db name to anope.dbAdam
2013-05-27Initially attach all modules to all events, and detach them as the events ↵Adam
are run if they are not implemented per module
2013-05-26Get rid of the remaining references in the core to specific services. Move ↵Adam
more stuff out of the core to the proper modules.
2013-05-20made our database backup filenames more readableDukePyrolator
2013-05-05That doesn't work either, just don't use references.Adam
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
2013-05-05Rework the config file reader to be much more flexible and move many ↵Adam
configuration directives to the actual modules they are used in.
2013-04-11Pass new config and the new config reader to the OnReload event, aswell as ↵Adam
call it on module load on modules that hook to it