[ANN] J2SBridge - A JDBC to Squeak Bridge

Frank Gerlach frankgerlach22 at gmx.de
Sun Dec 26 17:33:24 UTC 2004


Samples of J2Sbridge usage are in the simpleTestDBConnection* 
methods of DatabaseTest.

Here is a an example:

simpleTestDBConnection3
	|con table |

con:=(DBConnection new)
        connectToHost: 'localhost' 
        port: 1444 
	driverName:  'com.mysql.jdbc.Driver'
	url: 'jdbc:mysql:///test'
	user:'frank'
	password:'geheim'.
		


table:=con simpleQuery:'select * from sttest'.

[table next] whileTrue:[
	Transcript show:'name=',(table getString:'name'),
          'zahl=',(table getInt32:'zahl') printString;cr.
].

con disConnect.

-- 
Psssst! Mit GMX Handyrechnung senken: http://www.gmx.net/de/go/mail
100 FreeSMS/Monat (GMX TopMail), 50 (GMX ProMail), 10 (GMX FreeMail)



More information about the Squeak-dev mailing list