"Adapted from: http://smalltalkhub.com/#!/~PharoExtras/NBSQLite3" | db | "Creating and open a connection" db := NBSQLite3Connection on: 'myfile.db'. db open. "Executing a command" db execute: 'CREATE TABLE IF NOT EXISTS BLOGPOSTS (id integer primary key, post text);'. "Adding info to the database" db execute: 'INSERT INTO BLOGPOSTS values (1, "HelloWorld");'. db execute: 'INSERT INTO BLOGPOSTS values (?, "Hola mundo");' with: #(2). "Quering the database" db execute: 'SELECT * FROM BLOGPOSTS;'. db close.