-
Notifications
You must be signed in to change notification settings - Fork 1
Custom SQL
Miku edited this page Mar 17, 2023
·
2 revisions
from mariadb_sqlbuilder import Connector
connection: Connector = Connector(...)
# execute your own SQL, without receiving
result = connection.execute("YourSQL")
# execute your own SQL, with receiving
result = connection.execute_fetchone("YourSQL") # return with fetchOne
result = connection.execute_fetchall("YourSQL") # return with fetchMany
# execute more than one SQL Statement
result = connection.execute_script("YourSQLScript")