Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slightfoot/sqlite3-extensions
Various SQLite3 Extensions
https://github.com/slightfoot/sqlite3-extensions
Last synced: about 7 hours ago
JSON representation
Various SQLite3 Extensions
- Host: GitHub
- URL: https://github.com/slightfoot/sqlite3-extensions
- Owner: slightfoot
- License: apache-2.0
- Created: 2013-12-23T04:04:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-08T22:26:48.000Z (over 10 years ago)
- Last Synced: 2024-04-16T12:11:07.183Z (7 months ago)
- Language: C
- Size: 1.66 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Various SQLite3 Extensions
*Note: These are not Unicode compatible. Support will be added later.*
### How to build
----------------
Currently the makefiles are targeted to compile the extensions as win32 dll files in MinGW.Simply clone the repo and run ```mingw_msys_make.bat```. If you have installed MinGW to a different default directory you will need to edit the batch file.
### Don't want to build them?
-----------------------------
I have included the precompiled win32 32bit binary DLL files in the repository.https://github.com/slightfoot/sqlite3-extensions/releases/tag/v1.1
### How to use the extensions
-----------------------------
Open the sqlite3 shell application. Type in one or all of the following:
* ```.load /sqlite3_base64_ext.dll```
* ```.load /sqlite3_hex_ext.dll```
* ```.load /sqlite3_pad_ext.dll```### Questions?
If you have any questions, comments or suggestions.
Contact me [email protected]### Extensions
--------------* **sqlite3_base64_ext**
Adds scalar functions:
* ```MIXED base64_encode(value MIXED)```
* ```MIXED base64_decode(value MIXED)```
Examples:
* ```SELECT base64_encode("testing"); // Result: "dGVzdGluZw=="```
* ```SELECT base64_decode("dGVzdGluZw=="); // Result: "testing"```* **sqlite3_hex_ext**
Adds scalar functions:
* ```TEXT hex tohex(MIXED value, uppercase BOOLEAN DEFAULT FALSE)```
* ```INT64 value fromhex(MIXED hex)```
Examples:
* ```SELECT fromhexstr("68656C6C6F20776F726C64"); // Result: "hello world"```
* ```SELECT fromhex(tohex(1234)); // Result: 1234```
* ```SELECT tohex(3735928559, 1); // Result: DEADBEEF```* **sqlite3_pad_ext**
Adds scalar functions:
* ```TEXT lpad(str TEXT, INTEGER length, padstr TEXT)```
* ```TEXT rpad(str TEXT, INTEGER length, padstr TEXT)```
Examples:
* ```SELECT lpad("testing", 16, "12"); // Result: "121212121testing"```
* ```SELECT rpad("testing", 16, "12"); // Result: "testing121212121"```