VbzCart/docs/tables/cache queries: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Jump to navigation Jump to search
imported>Woozle
m (moved VbzCart/tables/data procs to VbzCart/tables/cache queries: rewriting caching processes)
imported>Woozle
(Sort field)
Line 1: Line 1:
==About==
==About==
* '''Purpose''': List of [[VbzCart/procs|stored procedures]] which update one table from others
* '''Purpose''': List of [[VbzCart/procs|stored procedures]] which update one table from others
* '''Future''': rename to cache_procs
* '''History''':
* '''History''':
** '''2010-11-09''' Renamed data_procs -> cache_queries
** '''2010-11-09''' Renamed data_procs -> cache_queries
** '''2011-12-24''' Adding '''Sort''' field so execution order can be specified
==SQL==
==SQL==
<section begin=sql /><mysql>CREATE TABLE `cache_queries` (
<section begin=sql /><mysql>CREATE TABLE `cache_queries` (
Line 9: Line 11:
     `isActive`  BOOL                        COMMENT "FALSE = skip this record",
     `isActive`  BOOL                        COMMENT "FALSE = skip this record",
     `doesClear` BOOL                        COMMENT "TRUE = clears all data from table before starting",
     `doesClear` BOOL                        COMMENT "TRUE = clears all data from table before starting",
    `Sort`      FLOAT          DEFAULT NULL COMMENT "optional: sorting order for execution",
     `Notes`    VARCHAR(255)  DEFAULT NULL COMMENT "explanatory notes",
     `Notes`    VARCHAR(255)  DEFAULT NULL COMMENT "explanatory notes",
     PRIMARY KEY (`ID`)
     PRIMARY KEY (`ID`)
  ) ENGINE = MYISAM;</mysql>
  ) ENGINE = MYISAM;</mysql>
<section end=sql />
<section end=sql />

Revision as of 18:17, 24 December 2011

About

  • Purpose: List of stored procedures which update one table from others
  • Future: rename to cache_procs
  • History:
    • 2010-11-09 Renamed data_procs -> cache_queries
    • 2011-12-24 Adding Sort field so execution order can be specified

SQL

<section begin=sql /><mysql>CREATE TABLE `cache_queries` (

   `ID`        INT AUTO_INCREMENT NOT NULL COMMENT "procedure ID",
   `Name`      VARCHAR(127)       NOT NULL COMMENT "name of SQL stored procedure",
   `isActive`  BOOL                        COMMENT "FALSE = skip this record",
   `doesClear` BOOL                        COMMENT "TRUE = clears all data from table before starting",
   `Sort`      FLOAT          DEFAULT NULL COMMENT "optional: sorting order for execution",
   `Notes`     VARCHAR(255)   DEFAULT NULL COMMENT "explanatory notes",
   PRIMARY KEY (`ID`)
) ENGINE = MYISAM;</mysql>

<section end=sql />