Adding tests for deleting notes
This commit is contained in:
@@ -155,6 +155,10 @@ func (s *SQLiteStore) GetAllNotes(ctx context.Context) ([]models.Note, error) {
|
||||
return notes, nil
|
||||
}
|
||||
|
||||
func (s *SQLiteStore) DeleteNoteByID(ctx context.Context, id int) error {
|
||||
return fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
func (s *SQLiteStore) validateSchema(ctx context.Context) error {
|
||||
_, err := s.write.ExecContext(ctx, `
|
||||
CREATE TABLE IF NOT EXISTS notes (
|
||||
|
||||
Reference in New Issue
Block a user