From a191af7d89c082a0cd1120d94bda5b270fa0342f Mon Sep 17 00:00:00 2001
From: Ben Boonstra
For those who want more control and advanced features,
- Effortless offers powerful capabilities. Here's how to use
+ Effortless offers powerful capabilities. You should have a
+ strong understanding of Python for this! Here's how to use
Effortless with advanced features:
- Start by importing the necessary advanced components from
- Effortless:
- Create a new Effortless instance with a custom directory:
+ You can create a Effortless instances with custom directories
+ and filenames.
+
- Change "/path/to/custom/directory" to the path of where you'd
- like the db to be stored.
- You can futher customize the database with a configuration: Add multiple entries with more complex data structures:
+ You can put pretty much anything in an entry, and Effortless
+ will interperet structures like dates, lists, etc.
+ Use advanced filtering techniques to find specific entries:
+ Use advanced filtering techniques with Fields to find specific
+ entries. For example, to find anyone who knows Python and joined
+ in Jan/Feb:
+
- Use You can update multiple entries that match a condition:
- Use Create custom queries using the Query class: Update the database configuration for advanced settings: Effortless 1.1 introduces powerful filtering capabilities: You can also use custom functions with the `passes` method: You can write your own complex checks and use them in Check the type of a field:
These advanced features allow you to create more complex
database structures, perform intricate queries, and have finer
diff --git a/docs/docs/index.html b/docs/docs/index.html
index a5c74df..156fe06 100644
--- a/docs/docs/index.html
+++ b/docs/docs/index.html
@@ -16,12 +16,15 @@ Advanced Usage
Importing Advanced Components
- You'll Need These
Creating a Custom Database Instance
- Configuring the Database
+ Adding Multiple Entries
- Adding Entries
+ Adding Multiple Entries
Complex Filtering
- Batch Updates
- db.batch()
to update multiple entries that
- match a condition:
- Erasing Multiple Entries
db.erase()
to remove multiple entries that
+ You can also erase
to remove multiple entries that
match a condition:
Custom Queries
- Configuring the Database
- Advanced Filtering Capabilities
- Custom conditions
+ Field.passes()
.Advanced Filtering Capabilities
result = db.filter(Field("skills").passes(is_experienced))
Effortless Documentation
Welcome to the Effortless documentation. Here you'll find
everything you need to know about using Effortless.