query_exec 0.0.4 → 0.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/doc/user_guide.txt +20 -0
  3. data/lib/query_exec.rb +1 -1
  4. metadata +4 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGFhYWM4ODg0YjllMWZlY2Q1NjlhNTYzYWRkYmIyOTIwY2IwNWMwZA==
4
+ NmY4NzY4NzRkNDgxMTgzMjI5ZTExMDA5ZDg5NWVhMjAyMDJmMWE0Nw==
5
5
  data.tar.gz: !binary |-
6
- NzQ4NDk5YzNlYmRmZjk5Y2Y3NjA3OWViYTE2ZWE1MDg5MzcxMjFhZg==
6
+ ZWJjMGUyOTQ5Mjg0Nzg4NDcwMGRhZjEyYzYwYzYxYmM0YTVjNjg2MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2VlZTliMTRiZjBhNTkyZTNlMDA3ZGMxMjNkZTgzMDlkOTc5MmI1YTkzZjQw
10
- YmQ2NjY1YWRjZDg3Njg5ZTQ4YzhjZjVmMWU1Y2UwNDE4ZTgwYzUxNWFjYzdk
11
- NDQ3OTkyNjBkMGExZWM5M2IyNDk3OWQzYjZlMGNmNDUyMjhiOTY=
9
+ MzJlOTAxZDllNTE2NThhMTE4OGVmZjYzMTU1NDZiYTY1M2ZjOTEyMTZhOTVm
10
+ MTg1MjQzYzE4OGYwZGQ2ZmY4ZjNkNWY4ODE2YWRlNTI5MmRlOWE1MTAwMzg4
11
+ NjYwZDQyODYwOTA3MGY4ZjQ1MGUyOTQ2ZjZmNjA5MmVmYTEyNzc=
12
12
  data.tar.gz: !binary |-
13
- OWViYzZlNTYyYWU3ZWEzY2ZkY2VmYzRjZWYyMmQ4MjRmZDI5NzMyOWUxNTQ1
14
- N2ViNjcwMDhjNTZjZjg3OTVhMDQ0N2ZmMzk1YzYwNmNjYzVhMTkyNTMxYTI0
15
- ZThkM2Q5ZjI5MmQ0YzJjNzQ5NTJkYThkNmI1Mzc5ZmQ3YTJmMTc=
13
+ MzI3OGZlNWMwNjAwZTU2N2ZiNGY0OTYwYzJkYzRiYjkxOTQ3ZTNmOWJjN2Y2
14
+ ZmQwMjFmZTllZTZkODM3ZjJiNDdhZTllOTNiYWQ0MjY0MzFhZWQ4YzMxMjYy
15
+ OTMzNjNiYTY2ZTUwMjY3ZTlkNzE4ZGU2YmViZGZmZDUzY2RjYWY=
@@ -0,0 +1,20 @@
1
+ Query Exec Gem:
2
+
3
+ This gem is used to execute SQL commands in our Rails application.
4
+
5
+ Installation:
6
+
7
+ gem install query_exec
8
+
9
+ or
10
+
11
+ add gem 'query_exec' to your gem file.
12
+
13
+
14
+ Example of Usage:
15
+
16
+ QueryExec.run('select * from users') # gives all the users from users table
17
+
18
+ QueryExec.run('update users set name='xxx' where id=2') # updates user with name='xxx' which is having id 2.
19
+
20
+ Using this gem we can do all the SQL operatons.
data/lib/query_exec.rb CHANGED
@@ -21,7 +21,7 @@ module QueryExec
21
21
  result.each do |r|
22
22
  output << r
23
23
  end
24
- return result
24
+ return output
25
25
  else
26
26
  return message
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - M.Viji Kumar
@@ -16,8 +16,10 @@ description: This gem is used to execute SQL queries in our rails application. S
16
16
  email: vijikumar1955@gmail.com
17
17
  executables: []
18
18
  extensions: []
19
- extra_rdoc_files: []
19
+ extra_rdoc_files:
20
+ - doc/user_guide.txt
20
21
  files:
22
+ - doc/user_guide.txt
21
23
  - lib/query_exec.rb
22
24
  homepage:
23
25
  licenses: []