added unique fields

This commit is contained in:
2026-03-04 10:10:57 +06:00
parent f3f2b7b394
commit 0481cde1c3
8 changed files with 309 additions and 9 deletions

View File

@@ -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()