Skip to content

yaslam-dev/sqlite-gen-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

sqlite-gen-rs

Blazing fast Sqlite extension that generates a series written in rust.

Useage

  1. Compile the code using cargo build.
  2. install sqlite; enter this command in sqlite terminal .load ./target/debug/libsqlite_gen_rs. This command will load the extension in SQLite.
  3. To generate a Virtual table run this command select value, start, stop, step from generate_series_rs(1,1000,2).
  4. The Syntax for generate_series_rs is start, stop, and step. In the above example, the start is 1; the stop is 1000 and the step is 2.

Benchmark

SQLite version 3.45.2 2024-03-12 11:06:23
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .load ./target/debug/libsqlite_gen_rs
sqlite> .timer on
sqlite> select count(value) from generate_series_rs(1,1e7,1);
10000000
Run Time: real 0.695 user 0.665762 sys 0.002378
sqlite>

About

๐—•๐—น๐—ฎ๐˜‡๐—ถ๐—ป๐—ด ๐—™๐—ฎ๐˜€๐˜ ๐—ฆ๐—พ๐—น๐—ถ๐˜๐—ฒ ๐—ฒ๐˜…๐˜๐—ฒ๐—ป๐˜€๐—ถ๐—ผ๐—ป ๐˜๐—ต๐—ฎ๐˜ ๐—ด๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ ๐—ฎ ๐˜€๐—ฒ๐—ฟ๐—ถ๐—ฒ๐˜€ ๐˜„๐—ฟ๐—ถ๐˜๐˜๐—ฒ๐—ป ๐—ถ๐—ป ๐—ฟ๐˜‚๐˜€๐˜.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages