Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Helpful Conditions Saver

Miku edited this page Mar 17, 2023 · 1 revision

With the module you can easily write conditions in advance and then use them in different builders.

The module works only in all modules where there are conditions too

Setup

ConditionsSaver(table_name)

Repeatable Functions

Using

You simply specify this class when selecting the action, see in example usage.

It is important that you pass it with condition=.

Example Usage

Select

saver = ConditionsSaver("user")
saver.where("id", 19)
conn.table(user).select("*", condition=saver).fetch_one()

Delete

saver = ConditionsSaver("user")
saver.where("id", 25)
conn.table(user).delete(condition=saver).execute()

Clone this wiki locally