If you need something that really is an analogue of ODBC / JDBC or ADO.NET, then the closest analogue will be SqueakDBX, a common, FFI connector for a wide range of databases . While he uses FFI, developers have gone to great lengths to ensure that lengthy operations do not block the virtual machine. Although I canβt honestly say that I used it in production, the reviews were positive, it supports a very wide range of databases (MySQL, Microsoft SQL Server, PostgreSQL, SQLite3, etc.), and it is actively developing, so this is probably good bet.
Historically, the downside of SqueakDBX is that you did not get GLORP, the main ORM used in the Smalltalk world these days. The good news is that this is no longer the case: SqueakDBX now has GlorpDBX , which brings GLORP to SqueakDBX. Drivers are currently available for PostgreSQL, MS SQL, and MySQL. If you need to connect to a traditional database, this is probably the best choice.
source share