LazyRecord\ConnectionManager::prepareAndExecute PHP Method

prepareAndExecute() public method

public prepareAndExecute ( $dsId, $sql, array $args = [] )
$args array
    public function prepareAndExecute($dsId, $sql, array $args = array())
    {
        $stm = null;
        try {
            $conn = $this->getConnection($dsId);
            $stm = $conn->prepareAndExecute($sql, $args);
        } catch (PDOException $e) {
            throw new SQLQueryException($dsId, $sql, $args, $e);
        }
        // if failed ?
        // if( false === $success ) {  }
        return $stm;
    }