Skip to content

A repository for Novett API usage with test scripts avialable for AngularJS and JQuery AJAX.

Notifications You must be signed in to change notification settings

0xfemi/JS-to-MySQL-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Novett API Usage

Novett is an API for connecting to MySQL Database directly from Javascript Applications.

Features

  • connects with all MySQL servers.
  • Simple, chainable, unambiguous API.
  • Parsing and formatting for common and custom formats.
  • Supports all MySQL query syntaxes.

Download/install

Download/install instructions

API required parameters

$db_host \\Hostname of the remote server e.g www.github.com
$db_portnumber \\Port number of the remote server e.g 3306
$db_name    \\name of the database e.g db_test_name
$db_username \\username to access the database
$db_password \\password to access the database
$db_query_statement \\mysql query to run e.g SELECT name from USERS WHERE id = 3

AngularJS(1) code snippet

    post : function(postData) {		
		return $http({
			method : 'POST', 
			url : 'http://novett.herokuapp.com/postQuery', 
			data: $.param(postData), 
			headers:{'Content-Type': 'application/x-www-form-urlencoded'}
                     })}
});

JQuery AJAX code snippet

$.getJSON("http://novett.herokuapp.com/getQuery?"+$getData, function(response){ 
        console.log(response);
});

Resources and Documentation

About

A repository for Novett API usage with test scripts avialable for AngularJS and JQuery AJAX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published