Path: news.cs.au.dk!not-for-mail From: Stephan Erbs Korsholm Newsgroups: comp.lang.beta Subject: Re: Would someone test it? Date: 28 Nov 2000 14:49:35 +0100 Organization: --- Lines: 88 Message-ID: References: <8vun5o$7dh6c$1@gjallar.cs.au.dk> <3A23ABC1.47D693CA@skynet.be> NNTP-Posting-Host: bifrost.mjolner.dk X-Trace: gjallar.cs.au.dk 975419375 7882131 130.225.4.254 (28 Nov 2000 13:49:35 GMT) X-Complaints-To: usenet@cs.au.dk NNTP-Posting-Date: Tue, 28 Nov 2000 13:49:35 +0000 (UTC) X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: news.cs.au.dk comp.lang.beta:12661 Hello, The experiment, I've now tried out the programs successfully. The distribution contained, - somesympts.txt Some data in a textual format. - gensympt.bet A beta program that reads the data from 'somesympts.txt' and inserts it into a PostGreSQL database. - listsympt.bet A beta program that scans the PostGreSQL database and prints out the contents. - pqlib.bet A beta library that supports an interface to the PostGreSQL database server. First I downloaded PostGreSQL from 'http://www.se.postgresql.org/sites.html'. Then I installed it on my linux system. No problems where encountered. Then I initialized the database by using the command 'initdb' which is part of the PostGreSQL distribution. Next, I used 'createdb' to create the database which must be named 'acubase': (sek@brage.mjolner.dk) bin> ./createdb -e acubase CREATE DATABASE "acubase" CREATE DATABASE Then I started the database server: sek@brage.mjolner.dk) bin> ./postmaster -i -D /users/sek/postgresql/lib/data DEBUG: Data Base System is starting up at Tue Nov 28 14:06:26 2000 DEBUG: Data Base System was shut down at Tue Nov 28 14:03:39 2000 DEBUG: Data Base System is in production state at Tue Nov 28 14:06:26 2000 Now it was time to compiled gensympt.bet and executed it: (sek@brage.mjolner.dk) ~/atle> ./gensympt PGRES_COMMAND_OK PGRES_EMPTY_QUERY PGRES_EMPTY_QUERY Then I compiled 'listsympt.bet' and executed it, (sek@brage.mjolner.dk) ~/atle> ./listsympt ---------------------------------------- Contents of database 1, 1001, Headache 2, 1002, Pain in lateral 3, 1003, Headache & pain in back of neck 4, 1004, Headache involving top of head ..... Discussion, Two hours ago I did not know what PostGreSQL was. Still it was surprisingly easy to find, download and install. The beta interface you've made for PostGreSQL seems very simple and straight forward. I did not know it was this easy to save and retrieve data from a relational database into beta programs. Other comments, You write the terminals of the beta language in capital letters. The indentation of the source files indicate that you did not use the 'mjolner' editing tool for creating the source, why is that? Alternatively, you can also use emacs which comes with a beta-mode that will make your programs look really nice, and if you insist on writing the terminals in capital letters, I'm sure you can have emacs recognize them for you and capitalize them. Regards, Stephan Korsholm --