Skip to content

Commit 2343deb

Browse files
Merge pull request #64 from terminusdb/python_updates
Use has_database in python tutorials instead
2 parents 5587c18 + e2f8d62 commit 2343deb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nuclear/nuclear.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ a read!
408408
```python
409409
if __name__ == "__main__":
410410

411-
exists = client.get_database(dbid)
411+
exists = client.has_database(dbid)
412412

413413
if exists:
414414
client.delete_database(dbid, team=team, force=True)

python-ast/python-ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def import_program(client, code):
125125
# https://docs.terminusdb.com/beta/#/terminusx/get-your-api-key
126126
client.connect(team=team) # , use_token=True)
127127

128-
exists = client.get_database(dbid)
128+
exists = client.has_database(dbid)
129129

130130
if exists:
131131
print(f"Recreating {dbid}")

stock_index/script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
client = WOQLClient(endpoint)
1111
client.connect(account=team,user=user,key=key)
1212

13-
exists = client.get_database(db)
13+
exists = client.has_database(db)
1414

1515
if not exists:
1616
client.create_database(db,

0 commit comments

Comments
 (0)