added unique fields
This commit is contained in:
@@ -362,8 +362,10 @@ func (db *LineDb) Select(filter any, collectionName string, options LineDbAdapte
|
||||
|
||||
// ReadByFilter читает записи по фильтру
|
||||
func (db *LineDb) ReadByFilter(filter any, collectionName string, options LineDbAdapterOptions) ([]any, error) {
|
||||
db.mutex.RLock()
|
||||
defer db.mutex.RUnlock()
|
||||
if !options.InTransaction {
|
||||
db.mutex.RLock()
|
||||
defer db.mutex.RUnlock()
|
||||
}
|
||||
|
||||
if collectionName == "" {
|
||||
collectionName = db.getFirstCollection()
|
||||
|
||||
Reference in New Issue
Block a user