File: demo/table1.js

Recommend this page to a friend!
  Classes of Alexey Znaev  >  XBSDB  >  demo/table1.js  >  Download  
File: demo/table1.js
Role: Example script
Content type: text/plain
Description: Demo table one - just numbers & strings
Class: XBSDB
Manipulate arrays with an SQL-like language
Author: By
Last change: changed access
Date: 10 years ago
Size: 2,030 bytes


Class file image Download
//    XBSDB - Cross-Browser JavaScript Database library
//    Copyright (C) 2010 Alexey A.Znayev
//    This file is part of XBSDB demo.
//    Alexey A.Znayev, znaeff@mail.ru

// All tables related data are in global variables for better viewing

var sTable1Name = 'table1';

//JSON dump
var sTable1Dump = '{\

//table description
var sTable1Description = 'Just small example of numbers and strings';

//field descriptions
var aTable1StructureDescription = [
 'Numeric field',
 'String field',
 'String field too'

//values of demo page fields
var sTable1QueryFieldsValue = '    n1   s1 s2 ';
var sTable1QueryWhereValue  = "(s1='101' or s1='201') and s2='s101'";
var sTable1QueryOrderByValue = "  '' + s1 + s2  ";
var sTable1QueryLimitValue = '   10';