128
}
129
131
>
var rows []sqlplugin.NexusEndpointsRow
132
>
retErr := s.txExecute(ctx, "ListNexusEndpoints", func(tx sqlplugin.Tx) error {
133
>
curTableVersion, err := tx.GetNexusEndpointsTableVersion(ctx)
134
>
if err != nil {
135
return err
136
}
138
>
if request.LastKnownTableVersion != 0 && request.LastKnownTableVersion != curTableVersion {
139
return p.ErrNexusTableVersionConflict
140
}
141
143
// PageSize could be zero when fetching just the table version.
144
rows, err = tx.ListNexusEndpoints(ctx, &sqlplugin.ListNexusEndpointsRequest{