git clone https://@opensourceprojects.eu/git/p/sqlscreens/code sqlscreens-code



File Date Author Commit
aux 1998-06-12 dockes dockes [89bfa3] small cleanup related to mysql3.21
doc 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [bad72d] bump version to 1.2.2
samples 2013-02-15 Jean-Francois Dockes Jean-Francois Dockes [e4c2b6] 1.2.1 candidate?
.hgtags 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [67f8af] Added tag SQLSCREENS_1_2_2 for changeset cee4bd...
00TODO.txt 2011-12-07 dockes dockes [9a46d3] *** empty log message ***
BUGS 1997-11-27 dockes dockes [be3141] After primarykey->updateindex bug fix
CHANGES 2013-08-23 medoc medoc [96f0e1] doc
ChangeLog 2005-11-10 dockes dockes [0f7682] Version 1.1.10
LICENSE 1997-04-25 dockes dockes [88f404] 1st version
Makefile.in 2013-02-15 Jean-Francois Dockes Jean-Francois Dockes [e4c2b6] 1.2.1 candidate?
README 2015-06-09 medoc medoc [3fdd83] README edited online with Bitbucket
README-DYNAMIC 1999-09-29 dockes dockes [91d404] rdynamic
VERSION 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [bad72d] bump version to 1.2.2
configure 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [bad72d] bump version to 1.2.2
configure.in 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [bad72d] bump version to 1.2.2
excludefile 2014-12-30 Jean-Francois Dockes Jean-Francois Dockes [bad72d] bump version to 1.2.2
findpkgdir.tcl 2008-12-31 dockes dockes [0d6d96] also check auto_path for /usr/lib
install-sh 1997-11-21 dockes dockes [c352ce] ntermediary commit, converted to autoconf, not ...
instlinks 1999-06-06 dockes dockes [0fc595] small cleanup
ixtcsq.tcl 2004-01-16 dockes dockes [b0e845] 1.1.8
makedist.sh 2013-08-23 medoc medoc [96f0e1] doc
msqltcsq.tcl 2004-01-16 dockes dockes [b0e845] 1.1.8
mysqltcl.c 2014-05-24 Jean-Francois Dockes Jean-Francois Dockes [640bdb] get rid of deprecated accesses to tcl interp->r...
notes.txt 1999-02-09 dockes dockes [aee13d] *** empty log message ***
odbctcsq.tcl 2000-03-06 dockes dockes [39bfca] stupid bug would prevent user/pass from working
pkgdir.tcl 2011-12-07 dockes dockes [000da7] *** empty log message ***
sqlite3tcsq.tcl 2013-02-15 Jean-Francois Dockes Jean-Francois Dockes [e4c2b6] 1.2.1 candidate?
sqlscreens.tcl 2013-02-15 Jean-Francois Dockes Jean-Francois Dockes [e4c2b6] 1.2.1 candidate?
tcsq.tcl 2013-02-14 Jean-Francois Dockes Jean-Francois Dockes [ee788b] added sqlite3 support
tkAppInit.c 2011-12-07 dockes dockes [111ea9] misc small changes to run with newer tcl versions

Read Me

Sqlscreens: TCL/TK code to generate database screens

Author: Jean-Francois Dockes <jf@dockes.org> (CDKIT, SAINT CLOUD, FRANCE, Circa 1996). 

This is very old (close to 20 years), but can still be useful. See the doc here:
http://lesbonscomptes.com/sqlscreens/

PLEASE read the installation section in doc/sqlscreens.txt or
doc/sqlscreens.html. Especially if you get messages about undefined
symbols during compilation.

For the very hurried (but this might not work the first time):

./configure
make
make install
SQLSCHOST=yourhost SQLSCUSER=you SQLSCPASSWORD=yourpass \
    samples/tablescreen.tcl yourdb yourtable

Note: setting the password in the environment is NOT required by
sqlscreens. It is just done this way in the sample scripts.

- In some cases, the version that loads the extension modules
  dynamically may not work (with problems like the install failing
  because of undefined symbols like__umoddi3 or with other
  miscellaneous error messages). You can use mysqlwish (static link)
  to test, and there are explanations in the documentation to get the
  dynamic version to work (and see README-DYNAMIC).

There are sample applications in the "samples" directory. You can copy
them in another place

See samples/tablescreen.tcl for a minimal example application:
==============================================================
 This is the very minimum possible program, it just generates a
default screen for the table you point it to.

See samples/wines.tcl for a more complete application:
======================================================
 This is a small app to manage a wine cellar. It's not supposed to be
a good wine-cellar managing application, just an exemple of what you
can easily do with sqlscreens, and I happened to have the data
available.

If you want to try this, you should create the tables and load the
data first (You may first need to change the top of the script to add the
suitable -h, -u, etc... options):
    cd samples
    sh createloadwines.sh

 You can then start wines.tcl. It has two possible options: -query or
-input, which start slightly different screens for querying the
database or adding data into it.
 
There are 5 tables in the wines db. 
 - "wines" lists the wines,
 - "producers" lists who made them, 
 - "providers" lists where you bought them, 
 - "origins" lists the official wine denominations
 - tastings is for your tasting comments

"origins" would normally be a closed list, created once and very
seldom updated, here it is far from complete and limited to the wines
that are actually there. Still, it is handled as not updateable (that
is, you would use another application, maybe tablescreen, to update
it). 

The application has 5 subscreens. The subscreens are linked so that
querying or inserting in "providers", "producers", "origins" or
tastings will set the corresponding join column in "wines".

Because this is TCL, it would be easy to add more code, for example to
generate lists, statistics, etc... The goal was not to make a complete
application.