Basic Usage
Here's how to use Effortless with a bit more control over your database:
Importing Effortless
Start by importing the necessary components from Effortless:
Creating a Database Instance
Create a new Effortless instance:
Adding Entries to the Database
Use db.add()
to insert new entries into the
database:
Filtering Entries
Use db.filter()
with a Field
condition
to find specific entries:
Updating Entries
Use db.update()
to modify a single entry that
matches a condition:
Removing Entries
Use db.remove()
to delete a single entry that
matches a condition:
This basic usage allows you to create a specific database instance, add entries, perform filtering operations, and update or remove individual entries.