Axios integration

Find out how to integrate JSQL with Axios

Stack requirements

The JSQL Axios library will not work without an account in the JSQL cloud, a backend application (API) integrated with JSQL and integration with the tasks of the runner. To learn more see overview.

Installation

Install JSQL Axios plugin to your project.

npm install jsql-axios-plugin

Integration

Include JSQL Plugin in your App.vue file.

import JsqlService from 'jsql-axios-plugin';

Usage

First of all, you need to initiate JSQL object:

function importPluginAxios() {
        vueJSQL = new JsqlService({host:'http://localhost:18088'});
        }

        var vueJSQL;

vueJSQL.jsql.update('update person set age = 40h')
        .then((res) => {
        console.log(res);
        }).catch((e) => {
        console.log(e);
        });
Close Menu