~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/information_schema.rst

  • Committer: Stewart Smith
  • Date: 2011-12-05 01:00:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2467.
  • Revision ID: stewart@flamingspork.com-20111205010019-ou3hg92pqefvft7u
add a bit more information on some I_S tables in docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 * VIEW_COLUMN_USAGE
29
29
 * VIEW_TABLE_USAGE
30
30
 
 
31
The INFORMATION_SCHEMA is implemented as a standard set of plugins that use the FunctionEngine. The FunctionEngine is a Drizzle Storage Engine plugin that allows table function plugins to iterate over internal data structures and present them to the user as normal SQL data. For all normal queries that either scan or do lookups on INFORMATION_SCHEMA, no tempory table is created; the data structures internal to Drizzle are iterated through and returned row by row to the user. The only exception is when the rnd_pos access method is used, then a copy of the table is made in memory so that we will not have to continually perform full table scans.
 
32
 
 
33
All of the INFORMATION_SCHEMA tables are read-only.
31
34
 
32
35
CHECK_CONSTRAINTS
33
36
-----------------
41
44
   `CHECK_CLAUSE` VARCHAR(256) NOT NULL
42
45
 ) ENGINE=FunctionEngine COLLATE = utf8_general_ci REPLICATE = FALSE DEFINER 'SYSTEM'
43
46
 
 
47
Since Drizzle does not currentl support CHECK constraints, this table is (currently) always empty and is provided for standards compatibility
 
48
 
44
49
 
45
50
COLUMNS
46
51
-------
376
381
    `TABLE_TYPE` VARCHAR(256) NOT NULL
377
382
  ) ENGINE=FunctionEngine COLLATE = utf8_general_ci REPLICATE = FALSE DEFINER 'SYSTEM'
378
383
 
 
384
This table contains a row for every table and view in this catalog that the current user has permission to see.
 
385
 
 
386
The tuple of TABLE_CATALOG, TABLE_SCHEMA and TABLE_NAME uniquely identify a table.
 
387
 
379
388
TABLE_CONSTRAINTS
380
389
-----------------
381
390
 
395
404
  ) ENGINE=FunctionEngine COLLATE = utf8_general_ci REPLICATE = FALSE DEFINER 'SYSTEM'
396
405
 
397
406
 
 
407
The tuple of TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME uniquely identifies the table that this constraint applies to.
 
408
 
 
409
CONSTRAINT_TYPE is one of UNIQUE, PRIMARY KEY, FOREIGN KEY or CHECK.
 
410
 
398
411
TABLE_PRIVILEGES
399
412
----------------
400
413