Skip to content

Commit a324a1d

Browse files
committed
re-added create_all helper method
1 parent 32c130f commit a324a1d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rdflib_sqlalchemy/store.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ def open(self, configuration, create=True):
235235
self.engine = sqlalchemy.create_engine(configuration)
236236
with self.engine.connect():
237237
if create:
238-
# Create all of the database tables (idempotent)
239-
self.metadata.create_all(self.engine)
238+
self.create_all()
240239

241240
ret_value = self._verify_store_exists()
242241

@@ -245,6 +244,10 @@ def open(self, configuration, create=True):
245244

246245
return ret_value
247246

247+
def create_all(self):
248+
"""Create all of the database tables (idempotent)."""
249+
self.metadata.create_all(self.engine)
250+
248251
def close(self, commit_pending_transaction=False):
249252
"""
250253
Close the current store engine connection if one is open.

0 commit comments

Comments
 (0)