Skip to content

Get list of databases created 30 days ago? #291

Description

@paarth1995

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions