SQLWriter¶
- class felis.db.utils.SQLWriter(file=None)¶
Bases:
object
Write SQL statements to stdout or a file.
- Parameters:
file (
Optional
[IO
[str
]], default:None
) – The file to write the SQL statements to. If None, the statements will be written to stdout.
Methods Summary
write
(sql, *multiparams, **params)Write the SQL statement to a file or stdout.
Methods Documentation
- write(sql, *multiparams, **params)¶
Write the SQL statement to a file or stdout.
Statements with parameters will be formatted with the values inserted into the resultant SQL output.
- Parameters:
- Return type:
Notes
The functions arguments are typed very loosely because this method in SQLAlchemy is untyped, amd we do not call it directly.