Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9c93fa2

Browse files
committed
Upgrade to v0.86
1 parent 748fab8 commit 9c93fa2

File tree

6 files changed

+307
-283
lines changed

6 files changed

+307
-283
lines changed

src/bin/pgaccess/README.pga

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---------------------------------------------------------------------------
22

3-
4-
53
Copyright (c) 1994-7 Regents of the University of California
64

75
Permission to use, copy, modify, and distribute this software and its
@@ -21,10 +19,10 @@ AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
2119
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
2220
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2321

22+
---------------------------------------------------------------------------
2423

2524

26-
27-
PGACCESS 0.83 11 March 1998
25+
PGACCESS 0.86 29 March 1998
2826
================================
2927
I dedicate this program to my little 4 year daughter Ana-Maria and my wife
3028
for their understanding. I hope they will forgive me for spending so many
@@ -38,15 +36,15 @@ First of all because PostgreSQL lacks a graphical interface where you
3836
can manage your tables, edit them, define queries, sequences and
3937
functions.
4038

41-
I use Tcl/Tk because it's a powerfull language, and it took me only
39+
I use Tcl/Tk because it's a powerful language, and it took me only
4240
four days of hard work to get it as you see it now.
4341

4442

4543

4644
2.How to INSTALL ?
4745

48-
You will need Tcl/Tk package, I am using now Tcl 7.6 and Tk 4.2. There
49-
are some problems running under Tcl/Tk 8.0 but I will soon fix them.
46+
You will need Tcl/Tk package, I am using now Tcl 7.6 and Tk 4.2.
47+
PgAccess is running also on Tcl/Tk 8.0
5048

5149
Also, you will need the PostgreSQL to Tcl interface library, lined as a
5250
Tcl/Tk 'load'-able module. It is called libpgtcl and the source is
@@ -65,7 +63,9 @@ go for it.
6563

6664
You run it with the command:
6765

68-
wish -f pgaccess.tcl
66+
wish -f pgaccess.tcl [database]
67+
68+
[database] is optional.
6969

7070
Another way of loading the PostgreSQL library is running it with pgwish.
7171
It's a wish compiled with libpgtcl library so it could understand the
@@ -82,7 +82,7 @@ pgaccess.tcl file.
8282
- Saves preferences in ~/pgaccessrc file
8383

8484
Tables
85-
- opening tables for vieweing, max 200 records
85+
- opening tables for viewing, max 200 records
8686
- column resizing by dragging the vertical grid lines
8787
- text will wrap in cells now
8888
- dynamic row height when editing
@@ -93,7 +93,7 @@ Tables
9393
- editing in place, double click the text you want to change
9494
- record deleting , point the record, press Del key
9595
- adding new records ,save new row with right-button-click on table for the moment
96-
- table generator assistant lizzard :-) (not wizzard)
96+
- table generator assistant
9797
- table renaming and deleting (dropping)
9898
- table information retrieving : owner, field information, indexes
9999

@@ -102,7 +102,7 @@ Queries
102102
- save view layout
103103
- can store queries as views
104104
- execution of queries
105-
- vieweing of select type queries result
105+
- viewing of select type queries result
106106
- running action queries (insert, update, delete)
107107
- visual query builder with drag & drop support, table aliasing
108108

@@ -128,7 +128,7 @@ Reports
128128
Forms
129129
- open user defined forms
130130
- form design module available
131-
- query widget allowing access to a recordset
131+
- query widget allowing access to a record set
132132

133133
Scripts
134134
- define, modify and call user defined scripts
@@ -137,17 +137,17 @@ Scripts
137137

138138
- table design (add new fields, renaming, etc)
139139
- sequence and function renaming
140-
- more powerfull report generator and viewer
140+
- more powerful report generator and viewer
141141
- help on line
142142

143143

144144

145145
6. How you should report the errors?
146146
First of all : operating system, PostgreSQL version,Tcl/Tk version.
147-
A more detailed story of what have you done when error had occured.
147+
A more detailed story of what have you done when error had occurred.
148148
Tcl/Tk stops usually with a error message and there is a button there
149149
"Stack Trace" and if you press it, you will see a detailed information
150-
about the place where it stucks. Please send it to me.
150+
about the place where it stuck. Please send it to me.
151151
Some information about table structure, no. of fields, records would
152152
be also good.
153153

src/bin/pgaccess/formdemo.sql

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@ CREATE TABLE pga_reports (reportname varchar(64), reportsource text, reportbody
55
CREATE TABLE phonebook (name varchar(32), phone_nr varchar(16), city varchar(32), company bool, continent char16);
66
CREATE TABLE pga_layout (tablename varchar(64), nrcols int2, colnames text, colwidth text);
77
COPY pga_queries FROM stdin;
8+
Query that can be saved as view S select * from phonebook where continent='usa'
89
\.
910
COPY pga_forms FROM stdin;
11+
A simple demo form asdf 14 {1 2 3 4 5 6 7 8 9 10 11 12 13 14} 377x315+170+155 {label label1 {15 36 99 57} {} {Selected color} {}} {entry entry2 {111 36 225 54} {} entry2 color} {radio red {249 21 342 36} {} {Red as cherry} color} {radio green {249 45 342 60} {} {Green as a melon} color} {radio blue {249 69 342 84} {} {Blue as the sky} color} {button button6 {45 69 198 99} {set color spooky} {Set a weird color} {}} {label label7 {24 129 138 147} {} {The checkbox's value} {}} {entry entry8 {162 129 172 147} {} entry8 cbvalue} {checkbox checkbox9 {180 126 279 150} {} {Check me :-)} cbvalue} {button button10 {219 273 366 303} {destroy .asdf} {Close that simple form} {}} {button button11 {219 237 366 267} {open_form "Phone book"} {Open my phone book} {}} {listbox lb {12 192 162 267} {} listbox12 {}} {button button13 {12 156 162 186} {.asdf.lb insert end red green blue cyan white navy black purple maroon violet} {Add some information} {}} {button button14 {12 273 162 303} {.asdf.lb delete 0 end} {Clear this listbox} {}}
1012
Phone book pb 26 {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26} 444x310+284+246 {label label1 {33 12 63 30} {} Name {}} {entry name_entry {87 9 217 30} {} entry2 pbqs(name)} {label label3 {33 39 73 54} {} Phone {}} {entry entry4 {87 36 195 57} {} entry4 pbqs(phone_nr)} {label label5 {33 66 78 84} {} City {}} {entry entry6 {87 63 195 84} {} entry6 pbqs(city)} {query qs {3 6 33 33} {} query7 {}} {button button8 {126 177 198 203} {.pb.qs:setsql "select oid,* from phonebook where name ~* '$what' order by name"\
1113
.pb.qs:open\
1214
set nrecs [.pb.qs:nrecords]\
1315
.pb.qs:updatecontrols\
14-
.pb.qs:fill .pb.allnames name} Find {}} {button button9 {159 276 229 302} {.pb.qs:close\
16+
.pb.qs:fill .pb.allnames name\
17+
bind .pb.allnames <ButtonRelease-1> {\
18+
set ancr [.pb.allnames curselection]\
19+
if {$ancr!=""} {\
20+
\ .pb.qs:moveto $ancr\
21+
\ .pb.qs:updatecontrols\
22+
}\
23+
}} Find {}} {button button9 {159 276 229 302} {.pb.qs:close\
1524
.pb.qs:clearcontrols\
1625
set nrecs {}\
1726
set what {}\
@@ -46,7 +55,6 @@ tk_messageBox -title Information -message "A new record has been added!"\
4655
# so I force it to 'f' (false)\
4756
set pbqs(company) f\
4857
focus .pb.name_entry} New {}} {listbox allnames {246 12 432 240} {} listbox26 {}}
49-
A simple demo form asdf 14 {1 2 3 4 5 6 7 8 9 10 11 12 13 14} 377x315+170+155 {label label1 {15 36 99 57} {} {Selected color} {}} {entry entry2 {111 36 225 54} {} entry2 color} {radio red {249 21 342 36} {} {Red as cherry} color} {radio green {249 45 342 60} {} {Green as a melon} color} {radio blue {249 69 342 84} {} {Blue as the sky} color} {button button6 {45 69 198 99} {set color spooky} {Set a weird color} {}} {label label7 {24 129 138 147} {} {The checkbox's value} {}} {entry entry8 {162 129 172 147} {} entry8 cbvalue} {checkbox checkbox9 {180 126 279 150} {} {Check me :-)} cbvalue} {button button10 {219 273 366 303} {destroy .asdf} {Close that simple form} {}} {button button11 {219 237 366 267} {open_form "Phone book"} {Open my phone book} {}} {listbox lb {12 192 162 267} {} listbox12 {}} {button button13 {12 156 162 186} {.asdf.lb insert end red green blue cyan white navy black purple maroon violet} {Add some information} {}} {button button14 {12 273 162 303} {.asdf.lb delete 0 end} {Clear this listbox} {}}
5058
\.
5159
COPY pga_scripts FROM stdin;
5260
How are forms keeped inside ? open_table pga_forms\
@@ -69,9 +77,14 @@ MUGADUMBU +92 534662634 \N t africa
6977
Frank Zappa 6734567 Montreal f usa
7078
Jimmy Page 66323452 f europe
7179
Constantin Teodorescu +40 39 611820 Braila f europe
72-
NGBENDU Wazabanga 34577345 \N f africa
80+
Ngbendu Wazabanga 34577345 f africa
81+
Victor Ciorbea 634567 Bucuresti f europe
82+
Mugabe Kandalam 7635745 f africa
7383
\.
7484
COPY pga_layout FROM stdin;
7585
pga_forms 2 formname formsource 82 713
7686
phonebook 5 name phone_nr city company continent 150 105 80 66 85
87+
Usaisti 5 name phone_nr city company continent 150 150 150 150 150
88+
q1 5 name phone_nr city company continent 150 150 150 150 150
89+
view_saved_from_that_query 5 name phone_nr city company continent 150 150 150 150 150
7790
\.

0 commit comments

Comments
 (0)