All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tarantool.TarantoolSQLOps Maven / Gradle / Ivy

package org.tarantool;

/**
 * Defines a common SQL operations for DQL or DML/DDL.
 *
 * @param   type of rows to be passed as parameters
 * @param  type of result for DML/DDL operations
 * @param  type of result for DQL operations
 */
public interface TarantoolSQLOps {

    /**
     * Executes a DQL query, typically {@code SELECT} query,
     * and returns an obtained result set.
     *
     * @param sql  query
     * @param bind arguments to be bound with query parameters
     *
     * @return result of query
     */
    Result query(String sql, Tuple... bind);

    /**
     * Executes a DML/DDL query using optional parameters.
     *
     * @param sql  query
     * @param bind arguments to be bound with query parameters
     *
     * @return result of query
     */
    Update update(String sql, Tuple... bind);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy