public static ResultProducer<ResultBearing> returningGeneratedKeys(String... generatedKeyColumnNames) {
        return (preparedStatementSupplier, ctx) -> {
            ctx.setReturningGeneratedKeys(true);

            if (generatedKeyColumnNames.length > 0) {
                ctx.setGeneratedKeysColumnNames(generatedKeyColumnNames);
            }

            return createResultBearing(preparedStatementSupplier, Statement::getGeneratedKeys, ctx);
        };
    }
Result producer that returns a {@link ResultBearing} over the statement-generated keys.

@param generatedKeyColumnNames optional list of generated key column names.
@return ResultBearing of generated keys
@see PreparedStatement#getGeneratedKeys()
core/src/main/java/org/jdbi/v3/core/result/ResultProducers.java