jcabi / jcabi-jdbc

Fluent Object-Oriented Wrapper of JDBC
https://jdbc.jcabi.com/
Other
104 stars 30 forks source link

Multi-line queries #251

Open andreoss opened 10 months ago

andreoss commented 10 months ago

Let's allow JdbcSession#sql accept multiple String values, instead of explicitly using String.join

        new JdbcSession(this.source())
                .sql(
                                "CREATE TABLE IF NOT EXISTS foo (",
                                "id INT NOT NULL AUTO_INCREMENT, ",
                                "name VARCHAR(50), ",
                                "PRIMARY KEY (id)",
                                ")"
                )
                .execute();