Skip to content

Commit

Permalink
different url, and no create_tables or metadata in store
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Apr 16, 2024
1 parent 1583e4d commit 2d578e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions stix2/datastore/relational_db/relational_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def __init__(
them.
"""
database_connection = create_engine(database_connection_url)

self.metadata = MetaData()
create_table_objects(
self.metadata, stix_object_classes,
)
print(database_connection)
# self.metadata = MetaData()
# create_table_objects(
# self.metadata, stix_object_classes,
# )

super().__init__(
source=RelationalDBSource(
Expand Down
2 changes: 1 addition & 1 deletion stix2/test/v21/test_datastore_relational_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import stix2.properties

store = RelationalDBStore(
"postgresql://localhost/postgres",
"postgresql://Postgres:5432/postgres",
True,
None,
False,
Expand Down

0 comments on commit 2d578e3

Please sign in to comment.