/// <summary> /// Retrieves comments for a database routine, if available. /// </summary> /// <param name="routineName">A routine name.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Comments for the given database routine, if available.</returns> /// <exception cref="ArgumentNullException"><paramref name="routineName"/> is <c>null</c>.</exception> public OptionAsync <IDatabaseRoutineComments> GetRoutineComments(Identifier routineName, CancellationToken cancellationToken = default) { if (routineName == null) { throw new ArgumentNullException(nameof(routineName)); } return(RoutineCommentProvider.GetRoutineComments(routineName, cancellationToken)); }
/// <summary> /// Retrieves all database routine comments defined within a database. /// </summary> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A collection of routine comments.</returns> public IAsyncEnumerable <IDatabaseRoutineComments> GetAllRoutineComments(CancellationToken cancellationToken = default) { return(RoutineCommentProvider.GetAllRoutineComments(cancellationToken)); }