func GetMembershipStore(db *gorm.DB) MembershipStore {
	return &membershipStore{store: newStore(db)}
}
GetMembershipStore returns an MembershipStore on the given db (or transaction).
package store
import (
	"context"
	"fmt"
	"runtime/trace"
	"github.com/jinzhu/gorm"
	"go.thethings.network/lorawan-stack/v3/pkg/errors"
	"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
)