Class MSSQLDriver

    • Field Detail

    • Constructor Detail

      • MSSQLDriver

        public MSSQLDriver()
    • Method Detail

      • appendQueryPlaceholder

        public int appendQueryPlaceholder​(StringBuilder queryBuilder,
                                          int index,
                                          int current)
        Description copied from interface: Driver
        Append a parameter placeholder in the query.

        The index starts at 0.

        • When index == current indicates it is a new parameter and therefore the same * value should be returned.
        • When index < current indicates the builder wants to reuse a parameter. The implementation can either return the same value to indicate the parameter can be reused or return the next index to use (which is shall be the current value
        Specified by:
        appendQueryPlaceholder in interface Driver<MSSQLConnectOptions>
        Parameters:
        queryBuilder - the builder to append to
        index - the parameter placeholder index
        Returns:
        the index at which the parameter placeholder could be added