Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Smalltalk deals with DataBases?

I'm using Squeak4.1. How does it handle Database connections? Does it provides something similar to ODBC/ADO in .NET or the J2EE stuff?

Which packages deal with database operations?

Can anybody give me some hints?

like image 265
parsifal Avatar asked Dec 09 '22 10:12

parsifal


2 Answers

Few links that might be of use to you:

  • Squeak Smalltalk and Databases
  • SqueakDBX
  • Persistence in Seaside (Also see Chapter 8 in the Seaside tutorial)
  • Magma
  • Databases and Persistence
  • Squeak PostreSQL
like image 63
Vijay Mathew Avatar answered Dec 28 '22 23:12

Vijay Mathew


If you want something that's truly an analog to ODBC/JDBC or ADO.NET, then the closest analog would be SqueakDBX, a generic, FFI-based connector to a wide variety of databases. While it uses FFI, the developers have gone to great lengths to ensure that long operations do not block the VM. While I can't honestly say I've used it in production, reviews have been positive, it supports a very wide variety of databases (MySQL, Microsoft SQL Server, PostgreSQL, SQLite3, and more), and it's being actively developed, so it's probably a good bet.

Historically, the downside of SqueakDBX is that you didn't get GLORP, the major ORM used in the Smalltalk world these days. The good news is that's no longer true: SqueakDBX now has GlorpDBX, which brings GLORP to SqueakDBX. Drivers are currently available for PostgreSQL, MS SQL, and MySQL, among others. If you need to connect to a traditional database, this is probably your best bet.

like image 31
Benjamin Pollack Avatar answered Dec 28 '22 23:12

Benjamin Pollack