// RegisterRPC registers the SQL RPC endpoint. func (s Server) RegisterRPC(rpcServer *rpc.Server) error { return rpcServer.RegisterPublic(driver.RPCMethod, s.executeCmd, &driver.Request{}) }
func registerBatch(t *testing.T, s *rpc.Server, d time.Duration) { if err := s.RegisterPublic("Node.Batch", Node(d).Batch, &roachpb.BatchRequest{}); err != nil { t.Fatal(err) } }