NAME
bif-show-table - display a table's SQL schema
VERSION
0.1.5_4 (2015-08-04)
SYNOPSIS
bif show table NAME [OPTIONS...]
DESCRIPTION
The bif-show-table command displays the SQL schema of a table in a repository.
bif show table projects
# CREATE TABLE topics (
# id INTEGER NOT NULL PRIMARY KEY,
# uuid char(40) NOT NULL UNIQUE,
# first_change_id INTEGER NOT NULL,
# last_change_id INTEGER NOT NULL,
# kind VARCHAR NOT NULL,
# ctime INTEGER NOT NULL,
# ctimetz INTEGER NOT NULL,
# mtime INTEGER NOT NULL,
# mtimetz INTEGER NOT NULL,
# lang VARCHAR(8) NOT NULL DEFAULT 'en',
# hash VARCHAR,
# delta_id INTEGER NOT NULL DEFAULT (nextval('deltas')),
# num_changes INTEGER,
# FOREIGN KEY(first_change_id) REFERENCES changes(id) ON DELETE CASCADE,
# FOREIGN KEY(last_change_id) REFERENCES changes(id) ON DELETE NO ACTION
# )
ARGUMENTS & OPTIONS
- NAME
-
A table name. Required.
- --full, -f
-
Display indexes and triggers as well as the table definition.
SEE ALSO
bif(1)
AUTHOR
Mark Lawrence <nomad@null.net>
COPYRIGHT AND LICENSE
Copyright 2014-2015 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.