Document¶

class database.service.document.DocumentService¶
get_by_url(db: Session, url: str)¶

Get a document by its URL field

Parameters:
  • db (Session) – Database session

  • url (str) – Document

Return type:

Document

get_count(db: Session)¶

Get the number of documents in the database

Parameters:

db (Session) – Database session

Return type:

int

get_all_documents(db: Session, tag: str = None)¶

Get all documents from the database

Parameters:

db (Session) – Database session

Return type:

List[Model]