:py:mod:`own_comments.crud` =========================== .. py:module:: own_comments.crud Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: own_comments.crud.randomword own_comments.crud.delete own_comments.crud.update own_comments.crud.get_thread own_comments.crud.get_threads own_comments.crud.get_thread_by_path own_comments.crud.get_comment own_comments.crud.create_thread own_comments.crud.create_comment own_comments.crud.update_comment .. py:function:: randomword(length, among=string.ascii_letters + string.digits) .. py:function:: delete(db: sqlalchemy.orm.Session, item: own_comments.models.Base) .. py:function:: update(db: sqlalchemy.orm.Session, item: own_comments.models.Base) .. py:function:: get_thread(db: sqlalchemy.orm.Session, thread_id: int) -> own_comments.models.Thread .. py:function:: get_threads(db: sqlalchemy.orm.Session, skip: int = 0, limit: int = 100) -> list[own_comments.models.Thread] .. py:function:: get_thread_by_path(db: sqlalchemy.orm.Session, path: str) -> own_comments.models.Thread .. py:function:: get_comment(db: sqlalchemy.orm.Session, comment_id: int) -> own_comments.models.Comment .. py:function:: create_thread(db: sqlalchemy.orm.Session, thread_path: str) .. py:function:: create_comment(db: sqlalchemy.orm.Session, comment: own_comments.schemas.CommentCreateRequest) .. py:function:: update_comment(db: sqlalchemy.orm.Session, comment: own_comments.models.Comment, comment_patch: own_comments.schemas.CommentPatch)