Debian Codegraph @

playpen/pggrok/README

raw
1
2 pggrok -- code to introspect the postgres database and compare database schemas
3
4 Copyright (C) 2004-2005 Karl Lehenbauer
5
6 freely redistributable under the Berkeley license as long as this copyright
7 is maintained.
8
9 $Id$
10
11 programs:
12
13 tclsh8.4 dump.tcl oldDbString >olddb.out
14 tclsh8.4 dump.tcl newDbString >newdb.out
15
16 tclsh8.4 compare.tcl olddb.out newdb.out
17
18 pggrok package:
19
20 ::pggrok::tables $conn
21
22 Return a list of the names of all the tables in the database.
23
24
25 ::pggrok::schema $conn
26
27 Return a list of the names of all the schema in the database
28
29 ::pggrok::users $conn
30
31 Return a list of the names of all the users in the database
32
33
34 ::pggrok::views $conn
35
36 Return a list of the names of all the views in the datbase
37
38 ::pggrok::attributes $conn tableName arrayName codeBody
39
40 Populate the array with information about each field of the table,
41 in turn, executing the code body.
42
43 ::pggrok::indices $conn tableName arrayName codeBody
44
45 Populate the array with information about each index of the table,
46 in turn, executing the code body.
47
48 ::pggrok::dump $conn
49
50 Dump the names of the tables, schema, users and views to stdout.
51