Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dbrepo functions #32

Merged
merged 1 commit into from
Dec 4, 2023
Merged

added dbrepo functions #32

merged 1 commit into from
Dec 4, 2023

Conversation

Pomog
Copy link
Owner

@Pomog Pomog commented Dec 4, 2023

  1. // CreatePost insert post into SQLite DB
    func (m *SqliteBDRepo) CreatePost(post models.Post) error

  2. // IsThreadExist returns true if a Thread with the same Subject exists
    func (m *SqliteBDRepo) IsThreadExist(thread models.Thread) (bool, error)

  3. // GetAllPostsFromThread returns all slices of all Posts with the given ThreadID, nil if there are no Posts
    func (m *SqliteBDRepo) GetAllPostsFromThread(threadID int) ([]models.Post, error)

@TartuDen TartuDen merged commit 15e89df into main Dec 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants