github.com/christoph-karpowicz/db_mediator@v0.0.0-20210207102849-61a28a1071d8/internal/server/synch/table.go (about)

     1  package synch
     2  
     3  import "github.com/christoph-karpowicz/db_mediator/internal/server/db"
     4  
     5  type table struct {
     6  	id            string
     7  	db            *db.Database
     8  	name          string
     9  	activeRecords *records
    10  }
    11  
    12  func (t *table) setActiveRecords(records []map[string]interface{}) {
    13  	t.activeRecords = mapToRecords(records)
    14  }