The ultimate set of SQLite extensions
Even more encode/decode algorithms in the crypto extension.
Base85 (aka Ascii85):
select encode('hello', 'base85');
-- BOu!rDZ
select decode('BOu!rDZ', 'base85');
-- hello
select encode('hello', 'hex');
-- 68656c6c6f
select decode('68656c6c6f', 'hex');
-- hello
select encode('/hello?text=(ಠ_ಠ)', 'url');
-- %2Fhello%3Ft%3D%28%E0%B2%A0_%E0%B2%A0%29
select decode('%2Fhello%3Ft%3D%28%E0%B2%A0_%E0%B2%A0%29', 'url');
-- /hello?t=(ಠ_ಠ)
New functions:
regexp_capture(source, pattern [, n])
extracts a captured group from the source string (regexp extension).sqlean_version()
returns the current version (all extensions).Changes in the fileio extension:
fileio_append(path, str)
appends a string to a file.fileio_read(path, offset, limit)
reads a file fragment.Thanks to @phrrngtn for fileio_read
improvements! (#68)
Consistent function naming for the fileio extension:
readfile -> fileio_read
scanfile -> fileio_scan
writefile -> fileio_write
mkdir -> fileio_mkdir
symlink -> fileio_symlink
lsdir -> fileio_ls
lsmode -> fileio_mode
Old names still work for the sake of backward compatibility.
Added the scanfile
function to the fileio extension:
Reads the file specified by path
line by line, without loading the whole file into memory.
sqlite> select rowid, value, name from scanfile('hello.txt');
┌───────┬───────┬───────────┐
│ rowid │ value │ name │
├───────┼───────┼───────────┤
│ 1 │ one │ hello.txt │
│ 2 │ two │ hello.txt │
│ 3 │ three │ hello.txt │
└───────┴───────┴───────────┘
Optimized regexp performance.
Unicode support in the regexp extension.
This release brings the regexp extension for all operating systems. It supports all major regular expression features. The old re
extension is deprecated.