https://github.com/rko281/sqlite3
Native (non-ODBC) SQLite3 database binding for Dolphin Smalltalk
https://github.com/rko281/sqlite3
Last synced: 9 months ago
JSON representation
Native (non-ODBC) SQLite3 database binding for Dolphin Smalltalk
- Host: GitHub
- URL: https://github.com/rko281/sqlite3
- Owner: rko281
- License: mit
- Created: 2021-09-27T11:35:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T13:52:17.000Z (about 1 year ago)
- Last Synced: 2025-02-11T12:21:15.605Z (11 months ago)
- Language: Smalltalk
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### SQLite3
Native (non-ODBC) [SQLite3](https://www.sqlite.org) database binding for [Dolphin Smalltalk](https://github.com/dolphinsmalltalk).
Based on [Pharo-SQLite3](https://github.com/pharo-rdbms/Pharo-SQLite3) - refer here for further info and documentation.
## Getting Started
* Install [Dolphin Smalltalk 7.1](https://github.com/dolphinsmalltalk/Dolphin)
* Ensure the 32-bit `sqlite3.dll` is available on your system path (download [here](https://www.sqlite.org/download.html))
* Download and install [GitHub Package Manager](https://github.com/rko281/GitHub)
* Evaluate:
```smalltalk
GitHubPackageManager install: 'rko281/SQLite3'.
```
* Example usage:
```smalltalk
"Inspect it"
sqlite := SQLite3Connection memory.
sqlite open; execute: 'create table test_table(id integer,name varchar(64))'.
insertStmt := sqlite prepare: 'insert into test_table(id,name) values(?,?)'.
#(#(1 'Adele') #(2 'Alan')) do: [ :values | insertStmt execute: values].
(sqlite execute: 'select * from test_table') asArray.
```