Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brodycj/sqlite3-base64
https://github.com/brodycj/sqlite3-base64
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/brodycj/sqlite3-base64
- Owner: brodycj
- Created: 2016-12-14T12:13:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T04:55:11.000Z (over 2 years ago)
- Last Synced: 2024-07-31T00:18:04.121Z (5 months ago)
- Language: C
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sqlite3-base64
Add base-64 encoding & decoding functions to SQLite3:
- `BASE64`
- `BLOBFROMBASE64`**LICENSE:** UNLICENSE (public domain) ref:
## External dependencies
- `cencode.h`, `cencode.c`, `cdecode.h`, `cdecode.c` from or a fork such as (public domain)
- `sqlite3.h`**NOTE:** `cencode.h` and `cdecode.h` must be in the build path.
## Sample usage
After opening sqlite3 database:
```c
sqlite3_base64_init(db);
```Then the following SQL:
```sql
SELECT BASE64(X'010203')
```returns the following value _ending with a newline (`\n`)_:
```
AQID
```And the following SQL:
```sql
SELECT HEX(BLOBFROMBASE64('AQID'))
```returns the following value: `010203`