Skip to content

Releases: kkharji/sqlite.lua

v1.2.2

17 Jun 13:08
6c00ab4
Compare
Choose a tag to compare
tests: auto disable network related tests (#141)

* added .editorconfig

to ease contributing to the project

* tests: autodisable test in absence of curl

When running the test in the nix sandbox, there is no internet access
and this specific test fails.
The best solution would probably be to download these files only when
they dont exist.
The current fix skips the test when curl is not available and allows to move on.

🔖 release v1.2.1

14 Jun 00:51
ade5bc2
Compare
Choose a tag to compare

Highlights

  • Fix CI #139
  • Add alternate way to set clib path #136

🐛 Bug Fixes

  • 74b3844 false is treat as nil when inserting (closes #123)
f9326aa sqlite:tbl(...) doesn't pass schema

This what happens with dealing with function that can take self or
other.

Refs: AckslD/nvim-neoclip.lua#20

👷 CI Updates

41c4440 remove changelog generator

Very bad idea, basically missed up git history

✅ Add/Update Test Cases

9ccd2a6 field types are always uppercase

At first I thought this issue introduced in
#132 but it's most likely
something todo with sqlite3 core changes.

🔖 release v1.2.0

21 Sep 09:38
Compare
Choose a tag to compare

✨ Features

3420a3a make opts.lazy false by default and add opts.keep_open

Before lazy was default and there was no way of changing that. I've
decided to make it optional because it seems that:

  1. People expects sqlite {} or sqlite:extend {} to create all the
    defined table in advance.

  2. Performance impact of initializing db object is only 1.0 slower in
    microseconds, so it seems to not be as important as I thought it
    would:

    -- test/lazy.lua
     Benchmark #1: 'Logical Component'
       Time(mean ± σ):     23.7 μs ±  18.7 μs
       Range(minmax):   17.4 μs102.3 μs  20 runs
     Benchmark #2: 'Full Initialization'
       Time(mean ± σ):     28.7 μs ±  12.9 μs
       Range(minmax):   24.1 μs83.1 μs  20 runs
     Summary
       'Logical Component' ran
       1.2 ± 1.1 times faster than 'Full Initialization'
  • 3d89dc1 add Bookmark Manager Example

🐛 Bug Fixes

edf642e fix Emmylua completion

This used to work, but maybe with new versions of sumneko_lua. It
stopped working.

🔖 release v1.1.0

09 Sep 08:01
Compare
Choose a tag to compare

🐛 Bug Fixes

43f5e0c luarocks auto-generate script (closes #115)

Having "/" in the start of path breaks luarocks installation.

✨ Features

  • 5b39526 activate release workflow

⚡ Performance Improvements

  • ca8233f improve handling of sqlite builtin functions (closes #114)
f9a1060 improve require time (#111)

decrease require time (cost on startup) from 0.791636 ms to 4.140682 (423% faster)

🔖 release v1.0.0 (#105)

01 Sep 05:34
78ff09f
Compare
Choose a tag to compare

♻️ refactor

  • rename emmyclass to be prefixed by sqlite
  • enforce sqlite prefix on exported docs. a hack till tree-sitter-lua@#33 is closed
  • rename export module to sqlite with backward compatibility with warring (for now)
  • remove date from changelog template to avoid unnecessary commits + run daily.

✨ New

  • add examples for all sqlite api functions and use code-block in place of @usage
  • add support for installing sqlite.lua wtih luarocks (WIP)
  • add CI workflow to create github release among other things
  • add script to auto-generate rockspec on every release.
  • extended sqlite_db and sqlite_tbl original methods after overwrite can be accessed through pre-appending __.

💥 Breaking

  • remove dot notation support totally.
  • rename sqlite.db:table sqlite.db:tbl with a simple depreciation warning
  • Add deprecation warnings for using sql namespace.
  • sqlite.tbl:new is changed to sqlite.tbl.new to match sqlite.db.new
  • change sqlite.tbl.new signature to accept optional db object as last param.

🐛 Fixes

  • sqlite.lib strfun use "now" instead of nil.
  • sqlite.lib strfun doesn't work inside table schema.