pyorient
pyorient copied to clipboard
Get list of databases created 30 days ago?
Hey guys, i am new to using pyorient and trying to get list of databases and that has worked using client.db_list().
However, i am wondering how can i get list of databases 30 days and older?
This is my code so far :-
import pyorient
def list_orient_databases(name):
# Use a breakpoint in the code line below to debug your script.
print(f'{name}')
client = pyorient.OrientDB("10.191.6.48", 2323)
session_id = client.connect("user", "pass")
db_names = client.db_list().__getattr__('databases')
db_count = 0
for db_name in db_names:
print(db_name)
This prints out the list of databases, however how can i get databases created 30 days ago? Thank you