📄️ Get Function
SwartzDB provides the get function to fetch stored data from the database. Since SwartzDB stores data in encrypted JSON format, the get function automatically decrypts and decodes the data before returning it.
📄️ Put Function
The put function in SwartzDB is used to store data in the database. It takes the input, encrypts it for security, and writes it to the specified .sdb file.
📄️ Add Function
The add function in SwartzDB is used to append multiple rows of data to a file without removing existing records. Unlike put, which overwrites the file, add ensures that new data is merged into the existing dataset.
📄️ Get Row Function
The get_row function allows you to filter and retrieve specific rows from the database based on given conditions. This is useful when searching for records that match certain criteria.
📄️ Add Row Function
The addrow function allows you to **append new data** to an existing database without overwriting previous records. Unlike put, which replaces the entire database, addrow ensures that old data remains intact while adding new entries.
📄️ Update Row Function
The update_row function allows you to modify existing records in the database based on specific conditions. This is useful when updating user data, modifying settings, or making bulk edits.
📄️ Remove Row Function
The remove_row function allows you to delete records from the database based on specific conditions. This is useful when cleaning up old data, removing inactive users, or filtering out irrelevant records.