Skip to content

Commit 53335e2

Browse files
committed
feat: improvement of SQL tables and introduction of browse options table
1 parent e99f694 commit 53335e2

File tree

10 files changed

+524
-468
lines changed

10 files changed

+524
-468
lines changed

cmd/mb3server/src/api_default_service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ func (s *DefaultApiService) GetRecord(ctx context.Context, accession string) (Im
7474

7575
record, err := GetRecord(accession)
7676
return Response(200, record), err
77-
78-
return Response(http.StatusNotImplemented, nil), errors.New("GetRecord method not implemented")
7977
}
8078

8179
// GetRecords - Get a list of records

pkg/database/db_interface.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package database
22

33
import (
4-
"github.com/Code-Hex/dd"
5-
"github.com/MassBank/MassBank3/pkg/massbank"
64
"log"
75
"math"
6+
7+
"github.com/Code-Hex/dd"
8+
"github.com/MassBank/MassBank3/pkg/massbank"
89
)
910

1011
// Filters is the abstract description of filters used to find MassBank records

pkg/database/mongodb.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ package database
33
import (
44
"context"
55
"errors"
6+
"log"
7+
"reflect"
8+
"strconv"
9+
"time"
10+
611
"github.com/MassBank/MassBank3/pkg/massbank"
712
"go.mongodb.org/mongo-driver/bson"
813
"go.mongodb.org/mongo-driver/bson/primitive"
914
"go.mongodb.org/mongo-driver/mongo"
1015
"go.mongodb.org/mongo-driver/mongo/options"
1116
bson2 "gopkg.in/mgo.v2/bson"
12-
"log"
13-
"reflect"
14-
"strconv"
15-
"time"
1617
)
1718

1819
// Mb3MongoDB represents a mongodb connection and should implement [MB3Database]

0 commit comments

Comments
 (0)