Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c93fa2

Browse files
committed
Upgrade to v0.86
1 parent748fab8 commit9c93fa2

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 apowerfull language, and it took me only
39+
I use Tcl/Tk because it's apowerful 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 problemsrunningunderTcl/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 isrunningalso onTcl/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 forvieweing, max 200 records
85+
- opening tables forviewing, 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 arecordset
131+
- query widget allowing access to arecord 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-
- morepowerfull report generator and viewer
140+
- morepowerful 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 hadoccured.
147+
A more detailed story of what have you done when error hadoccurred.
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 itstucks. Please send it to me.
150+
about the place where itstuck. 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
CREATETABLEphonebook (namevarchar(32), phone_nrvarchar(16), cityvarchar(32), company bool, continent char16);
66
CREATETABLEpga_layout (tablenamevarchar(64), nrcols int2, colnamestext, colwidthtext);
77
COPY pga_queriesFROM stdin;
8+
Query that can be savedas viewSselect*from phonebookwhere continent='usa'
89
\.
910
COPY pga_formsFROM stdin;
11+
A simple demo formasdf 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 bookpb26 {1234567891011121314151617181920212223242526} 444x310+284+246 {label label1 {33126330} {} Name {}} {entry name_entry {87921730} {} entry2 pbqs(name)} {label label3 {33397354} {} Phone {}} {entry entry4 {873619557} {} entry4 pbqs(phone_nr)} {label label5 {33667884} {} City {}} {entry entry6 {876319584} {} entry6 pbqs(city)} {query qs {363333} {} query7 {}} {button button8 {126177198203} {.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 {159276229302} {.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 {159276229302} {.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 formasdf 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\Ntafrica
6977
Frank Zappa6734567Montrealfusa
7078
Jimmy Page66323452feurope
7179
Constantin Teodorescu+40 39 611820Brailafeurope
72-
NGBENDU Wazabanga34577345\Nfafrica
80+
Ngbendu Wazabanga34577345fafrica
81+
Victor Ciorbea634567Bucurestifeurope
82+
Mugabe Kandalam7635745fafrica
7383
\.
7484
COPY pga_layout FROM stdin;
7585
pga_forms2formname formsource82 713
7686
phonebook5name phone_nr city company continent150 105 80 66 85
87+
Usaisti5name phone_nr city company continent150 150 150 150 150
88+
q15name phone_nr city company continent150 150 150 150 150
89+
view_saved_from_that_query5name phone_nr city company continent150 150 150 150 150
7790
\.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp