query_lens 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/db/migrate/20260207000001_create_query_lens_tables.rb +32 -0
- data/lib/query_lens/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9aaf93d111afdef8297ecd5bbd1272351f54a7539e76dd9c995a474861e07c75
|
|
4
|
+
data.tar.gz: 3ac00b2450ecd61da67f68995718cdb2f89ba227a4136bdb0d8aac9cae5c66e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd7f9d8da037af3eb24f18806137d9e5abc6a19c445b2242ade57153c2f0d36a2b7387e3a9e320cb322e89ade259d3eaeedabece561cb773db272c01d4e6f762
|
|
7
|
+
data.tar.gz: 828078b8c9a7a2fb7143e74de58c79f174087c28a8a70b6edfb8e5163891020379384995c4fb7ad81e393963b96d5a3b5f7f63bc517a4dc28ad1942e6ff52c00
|
data/README.md
CHANGED
|
@@ -4,6 +4,12 @@ A mountable Rails engine that lets users write natural language questions and ge
|
|
|
4
4
|
|
|
5
5
|
Powered by [RubyLLM](https://rubyllm.com), QueryLens works with any major AI provider: OpenAI, Anthropic (Claude), Google Gemini, DeepSeek, Mistral, Ollama (local models), and more.
|
|
6
6
|
|
|
7
|
+
[Watch the demo (90 seconds)](https://www.loom.com/share/595ed0ea3c1f42b28152a345db586c85)
|
|
8
|
+
|
|
9
|
+
[](https://www.loom.com/share/595ed0ea3c1f42b28152a345db586c85)
|
|
10
|
+
|
|
11
|
+
**Want to try it without touching your own database?** The [QueryLens Testbed](https://github.com/bryanbeshore/query_lens_testbed) is a ready-to-go Rails app with sample data — clone, run, and start querying in under 2 minutes.
|
|
12
|
+
|
|
7
13
|
## Features
|
|
8
14
|
|
|
9
15
|
- Natural language to SQL conversion powered by any LLM
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
class CreateQueryLensTables < ActiveRecord::Migration[7.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :query_lens_projects do |t|
|
|
4
|
+
t.string :name, null: false
|
|
5
|
+
t.text :description
|
|
6
|
+
t.integer :position
|
|
7
|
+
t.timestamps
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
add_index :query_lens_projects, :name, unique: true
|
|
11
|
+
|
|
12
|
+
create_table :query_lens_saved_queries do |t|
|
|
13
|
+
t.string :name, null: false
|
|
14
|
+
t.text :description
|
|
15
|
+
t.text :sql, null: false
|
|
16
|
+
t.references :project, foreign_key: { to_table: :query_lens_projects, on_delete: :nullify }
|
|
17
|
+
t.integer :position
|
|
18
|
+
t.timestamps
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
add_index :query_lens_saved_queries, [:project_id, :name], unique: true
|
|
22
|
+
|
|
23
|
+
create_table :query_lens_conversations do |t|
|
|
24
|
+
t.string :title, null: false
|
|
25
|
+
t.text :messages
|
|
26
|
+
t.text :last_sql
|
|
27
|
+
t.timestamps
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
add_index :query_lens_conversations, :updated_at
|
|
31
|
+
end
|
|
32
|
+
end
|
data/lib/query_lens/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: query_lens
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Beshore
|
|
@@ -107,6 +107,7 @@ files:
|
|
|
107
107
|
- app/views/query_lens/layouts/application.html.erb
|
|
108
108
|
- app/views/query_lens/queries/show.html.erb
|
|
109
109
|
- config/routes.rb
|
|
110
|
+
- db/migrate/20260207000001_create_query_lens_tables.rb
|
|
110
111
|
- lib/generators/query_lens/install/install_generator.rb
|
|
111
112
|
- lib/generators/query_lens/install/templates/initializer.rb
|
|
112
113
|
- lib/query_lens.rb
|