Browsable Relational Database Schema Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/tabular/schema/extracted
Source used for this grammar: Hugo Brunelière, RelationalDBSchema 1.0, RelationalDBSchema.ecore, 2006/10/31

Summary

Syntax

NamedElement ::=
	DataBase
NamedElement ::=
	Table
NamedElement ::=
	Column
DataBase ::=
	[SGBDname]::String [tables]::Table+
Table ::=
	[database]::DataBase [columns]::Column+ [key]::Column+
Column ::=
	[dataType]::String [null]::Boolean [defaultValue]::String [owner]::Table [keyOf]::Table
Integer ::=
	integer
String ::=
	string
Boolean ::=
	"true"
	"false"

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []