Use Java API

    Introducing Maven dependency

    1. Perform the business logic
    1. try (Connection conn = dataSource.getConnection()) { // use ShardingSphereDataSource
    2. conn.setAutoCommit(false);
    3. ps.setObject(1, 1000);
    4. ps.setObject(2, "init");
    5. conn.commit();