https://github.com/miyako/4d-plugin-simple-sqlite-client
Simple SQLite client using libsqlite3
https://github.com/miyako/4d-plugin-simple-sqlite-client
4d-plugin sql
Last synced: 9 months ago
JSON representation
Simple SQLite client using libsqlite3
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-simple-sqlite-client
- Owner: miyako
- License: mit
- Created: 2020-03-03T06:18:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T03:38:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T17:55:18.113Z (over 1 year ago)
- Topics: 4d-plugin, sql
- Language: C
- Homepage:
- Size: 14.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

use [miyako/4d-plugin-soci](https://github.com/miyako/4d-plugin-soci)


[](LICENSE)

# simple-sqlite-client
Simple SQLite client using libsqlite3
* macOS library version:
* `libsqite3-tbd` (system library)
* Windows library version:
* `sqlite-amalgamation-329000` (vcpkg)
### Syntax
[miyako.github.io](https://miyako.github.io/2024/08/23/4d-plugin-simple-sqlite-client.html)
### Example
```4d
$path:=Get 4D folder(Current resources folder)+"chinook.db"
$SQL:="SELECT trackid, name, composer, unitprice FROM tracks;"
$params:=New collection()
$status:=SQLite EXECUTE ($path;$SQL;$params)
```
```json
{
"values": [
{
"TrackId": 1,
"Name": "For Those About To Rock (We Salute You)",
"Composer": "Angus Young, Malcolm Young, Brian Johnson",
"UnitPrice": 0.99
},
{
"TrackId": 2,
"Name": "Balls to the Wall",
"Composer": null,
"UnitPrice": 0.99
},
{
"TrackId": 3503,
"Name": "Koyaanisqatsi",
"Composer": "Philip Glass",
"UnitPrice": 0.99
}
]
}
```