You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
515 B

function getTest() {
var contents;
var xhr = new XMLHttpRequest();
xhr.open('GET', 'database/makeittrue.db', true);
xhr.responseType = 'arraybuffer';
xhr.onload = function (e) {
var uInt8Array = new Uint8Array(this.response);
var db = new SQL.Database(uInt8Array);
var contents = db.exec("SELECT * FROM scores WHERE mode = 'normal'");
contents.forEach(function (element) {
element.values.forEach(function (value) {
console.log(value)
});
});
};
xhr.send();
}