Git Product home page Git Product logo

Comments (7)

vietj avatar vietj commented on May 21, 2024

the is a varargs builder Tuple#of(Object... elements)

from vertx-sql-client.

willks avatar willks commented on May 21, 2024

Thanks for that! I'll give it another shot now. Looks like a promising project!

from vertx-sql-client.

willks avatar willks commented on May 21, 2024

Apologies - One more question on the topic. Using the latest release, I can't find that varargs method. Am I missing something or using a wrong version? I'm using the "reactivex" flavour, not the default.

THanks

from vertx-sql-client.

BillyYccc avatar BillyYccc commented on May 21, 2024

Hi, the method static Tuple of(Object... elements) is marked with the annotation @GenIgnore,so you may not be able to use this directly in a reactiveX style, instead you can call the method in com.julienviet.pgclient.Tuple, then wrap this delegate within the reactivex Tuple.

from vertx-sql-client.

vietj avatar vietj commented on May 21, 2024

ah, it is normal then, you can workaround using:

new com.julienviet.reactivex.pgclient.Tuple(Tuple.of(varargs));

In the next version of Vert.x (3.6), we will allow the @GenIgnore methods to be present on the rxified API.

from vertx-sql-client.

willks avatar willks commented on May 21, 2024

@vietj Worked great! Thanks again. Closing for now.

from vertx-sql-client.

smahad786 avatar smahad786 commented on May 21, 2024

Can you please elaborate. Do I have to do the following?

String INSERT_SQL =
"insert into dummy_tbl (id, a, b,c,d,e,f,g,h) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)";

final com.julienviet.reactivex.pgclient.Tuple tuple1 =
    new com.julienviet.reactivex.pgclient.Tuple(
        com.julienviet.pgclient.Tuple.of("1", "a", "b", "c", "d", "e", "f", "g", "h"));

final io.reactiverse.reactivex.pgclient.Tuple val =
    io.reactiverse.reactivex.pgclient.Tuple.of(tuple1);

and in the prepared Query, I am supplying val - tx.rxPreparedQuery(INSERT_SQL, val )...

from vertx-sql-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.