databases icon indicating copy to clipboard operation
databases copied to clipboard

add execute_script function

Open Olivier-Berg opened this issue 4 years ago • 0 comments

aiosqlite and sqlite3 have this function too, in their case you would do something like:

async with aiofiles.open("path/to/file.sql", "r") as f:
    await cxn.executescript(await f.read())

it could be like that, or just give the path to exeuctescript.

Olivier-Berg avatar May 05 '21 07:05 Olivier-Berg