human_sql 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d43fde91937997b59b2239bd8669ecdffb020a7424007b48f1504aa0b3384221
4
- data.tar.gz: 8f219654ff6f0371c76a98aff8e13573b651fcd42d689b8f7556b11a1f7c500d
3
+ metadata.gz: 9465407cb06d1cdf07d92a41df2fbb43f0e6b4fa1d05f5a7023d99ca4d4cc893
4
+ data.tar.gz: ca2584673baa3b67f227fcd44dd05fe0a5dc79f6025b7784377ad43da7a68ac4
5
5
  SHA512:
6
- metadata.gz: '0489de0620281892772e3e26918655e68e349d81858b803355dc33309fc2750dd80419ef6f537b259697a2258848fc5d11a9f0c0fc61051bdb91236a893400cf'
7
- data.tar.gz: 0cb6a1eab9988336932a800193fd733f2baf713a4d31604852fea8bc031e0774f461bb724f65b37e1ae5fad39ea8c01f3684952c022c0d23d3453fc7d9b13cbe
6
+ metadata.gz: a645a5c3a1182492ffb0c6cefe84ebf3fe9d924dea1c31a464e09a68be6f965233a8d01596ee4223a065a48f6953c6479a906589e35fc8b40e2c2b48ab6e433f
7
+ data.tar.gz: d1dd7b6023d0fd76aa3f92d0f10e1a40bf1110d159c61908f7bf9b8b2707d0f6c6094dd520c4c970adf89856040a05e1a1bbbc2ef5f8b5427363ee14994d8054
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HumanSql
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
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.5
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