Skip to content

Commit 4e572e4

Browse files
committed
Merge pull request #3 from whiterock/patch-1
Add keyword arguments support for db connection
2 parents 15c87a3 + f291577 commit 4e572e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easydb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self, filename, schema = None, **kwargs):
77
if not exists and not schema:
88
raise Exception, "The specified database file does not exist, and you haven't provided a schema"
99

10-
self.connection = sqlite3.connect(filename)
10+
self.connection = sqlite3.connect(filename, **kwargs)
1111
if not exists:
1212
for table_name, fields in schema.items():
1313
query = "CREATE TABLE %s (%s)" % (table_name, ", ".join(fields))

0 commit comments

Comments
 (0)