human_sql 0.1.5 → 0.1.7
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/human_sql-0.1.5.gem +0 -0
- data/human_sql-0.1.6.gem +0 -0
- data/lib/human_sql/version.rb +1 -1
- data/lib/human_sql.rb +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9465407cb06d1cdf07d92a41df2fbb43f0e6b4fa1d05f5a7023d99ca4d4cc893
|
|
4
|
+
data.tar.gz: ca2584673baa3b67f227fcd44dd05fe0a5dc79f6025b7784377ad43da7a68ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a645a5c3a1182492ffb0c6cefe84ebf3fe9d924dea1c31a464e09a68be6f965233a8d01596ee4223a065a48f6953c6479a906589e35fc8b40e2c2b48ab6e433f
|
|
7
|
+
data.tar.gz: d1dd7b6023d0fd76aa3f92d0f10e1a40bf1110d159c61908f7bf9b8b2707d0f6c6094dd520c4c970adf89856040a05e1a1bbbc2ef5f8b5427363ee14994d8054
|
data/human_sql-0.1.5.gem
ADDED
|
Binary file
|
data/human_sql-0.1.6.gem
ADDED
|
Binary file
|
data/lib/human_sql/version.rb
CHANGED
data/lib/human_sql.rb
CHANGED
|
@@ -52,6 +52,7 @@ module HumanSQL
|
|
|
52
52
|
|
|
53
53
|
Please generate an ActiveRecord query based on this schema. The query should be in a single line of code and return the result according to the user's request.
|
|
54
54
|
If it's necessary to access multiple related tables, prefer to use `includes` over `joins` to optimize data loading.
|
|
55
|
+
If the user indicates a date and time type field, only the value of the indicated date or time is saved without considering the time zone.
|
|
55
56
|
PROMPT
|
|
56
57
|
prompt
|
|
57
58
|
end
|
|
@@ -132,6 +133,7 @@ module HumanSQL
|
|
|
132
133
|
#{formatted_results}
|
|
133
134
|
|
|
134
135
|
Please generate a natural language description that clearly and understandably explains these results to the user in #{HumanSQLConfig[:default_language]}.
|
|
136
|
+
Do not ask for confirmation, just confirm what has already been done.
|
|
135
137
|
PROMPT
|
|
136
138
|
|
|
137
139
|
call_openai_service(prompt)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: human_sql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Bertin
|
|
@@ -56,6 +56,8 @@ files:
|
|
|
56
56
|
- human_sql-0.1.2.gem
|
|
57
57
|
- human_sql-0.1.3.gem
|
|
58
58
|
- human_sql-0.1.4.gem
|
|
59
|
+
- human_sql-0.1.5.gem
|
|
60
|
+
- human_sql-0.1.6.gem
|
|
59
61
|
- lib/human_sql.rb
|
|
60
62
|
- lib/human_sql/version.rb
|
|
61
63
|
- sig/human_sql.rbs
|