mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
13 lines
294 B
Python
13 lines
294 B
Python
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
import sqlite3
|
|
|
|
def fetchall(database, query, kwds):
|
|
conn = sqlite3.connect(database)
|
|
try:
|
|
cursor = conn.execute(query, kwds)
|
|
return cursor.fetchall()
|
|
|
|
finally:
|
|
conn.close()
|