mysql_blob_streaming 2.0.0 → 2.0.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 +15 -0
- data/README.markdown +19 -2
- data/ext/mysql_blob_streaming/mysql_blob_streaming.c +4 -2
- metadata +41 -60
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjA0MGNhMTlkYzFlMDhkZGNlZjBlZGYyZDliODg5NzMyOGYxOTZjMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MWZjNTk1YzYyYWQ4NDViMjAwMjcxNGFmZTk3ZDIzNWFhNzFkNjAwNw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YWIzZWU0NTEzMTljODNlNmM1YTU3Njk1ZWY0ZGNiMDRlYjA0YjA4OTRjMjIy
|
10
|
+
Mzk5ZTZmZDgyZDNjZTBjZGJkZGJmODZiYzgzYmYxNWY1NjU2NzMwMjdkZDVk
|
11
|
+
ZmJlZTg3NGZlMjEyZmExYzJjMzY3MGFjOGY5ZmQ3ZDM0M2YwMmI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
M2JlNjE3NGEyNmM0NGVmMmNlMmEyYzhkMjRhMGFmYWI3NTllNGVmYmViMWIw
|
14
|
+
NWQ4NWVlN2Y0NjI1ZjExYzYyNzhhYjVlMDU1YmJjYjI3Njk1N2I3ZjgwZjYx
|
15
|
+
OTBhZGQyMzMwOGZkNmZjZmZkZmFhNTdjZjExYjQ5YjI0OTJhZGU=
|
data/README.markdown
CHANGED
@@ -1,10 +1,27 @@
|
|
1
|
-
#
|
1
|
+
# MysqlBlobStreaming
|
2
|
+
[][travis]
|
2
3
|
|
3
|
-
|
4
|
+
[travis]: http://travis-ci.org/infopark/mysql_blob_streaming
|
5
|
+
|
6
|
+
A blob streaming extension for the native Ruby-MySQL2 adaptor.
|
7
|
+
It provides the class `MysqlBlobStreaming`, which gives the mysql2 adaptor the ability
|
4
8
|
of streaming blobs right out of the MySQL database.
|
5
9
|
|
6
10
|
(c) 2008-2012 Infopark AG. See MIT-LICENSE for licensing details.
|
7
11
|
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
require 'mysql_blob_streaming'
|
15
|
+
require 'mysql2'
|
16
|
+
|
17
|
+
client = Mysql2::Client.new(...)
|
18
|
+
query = "SELECT data FROM table_name WHERE id = '23'"
|
19
|
+
buffer_size = 1024000 # number of bytes per chunk
|
20
|
+
|
21
|
+
MysqlBlobStreaming.stream(client, query, buffer_size) do |chunk|
|
22
|
+
# do something with the chunk e.g. write it to file.
|
23
|
+
end
|
24
|
+
|
8
25
|
## Dependencies
|
9
26
|
|
10
27
|
* Ruby-headers
|
metadata
CHANGED
@@ -1,88 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_blob_streaming
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 2.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Infopark AG
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: mysql2
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 5
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 3
|
33
|
-
- 11
|
34
|
-
version: 0.3.11
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.3.12b6
|
35
20
|
type: :runtime
|
36
|
-
|
37
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.3.12b6
|
27
|
+
description: ! ' This GEM is required by the Infopark Rails Connector (RC) when
|
28
|
+
using MySQL.
|
29
|
+
|
30
|
+
'
|
38
31
|
email: info@infopark.de
|
39
32
|
executables: []
|
40
|
-
|
41
|
-
extensions:
|
33
|
+
extensions:
|
42
34
|
- ext/mysql_blob_streaming/extconf.rb
|
43
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
44
36
|
- README.markdown
|
45
|
-
files:
|
37
|
+
files:
|
46
38
|
- lib/mysql_blob_streaming.rb
|
47
39
|
- ext/mysql_blob_streaming/mysql_blob_streaming.c
|
48
40
|
- ext/mysql_blob_streaming/extconf.rb
|
49
41
|
- README.markdown
|
50
|
-
has_rdoc: true
|
51
42
|
homepage: http://www.infopark.de/
|
52
|
-
licenses:
|
43
|
+
licenses:
|
53
44
|
- MIT
|
45
|
+
metadata: {}
|
54
46
|
post_install_message:
|
55
|
-
rdoc_options:
|
47
|
+
rdoc_options:
|
56
48
|
- --main
|
57
49
|
- README.markdown
|
58
|
-
require_paths:
|
50
|
+
require_paths:
|
59
51
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
hash: 57
|
66
|
-
segments:
|
67
|
-
- 1
|
68
|
-
- 8
|
69
|
-
- 7
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
70
56
|
version: 1.8.7
|
71
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
requirements:
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements:
|
81
63
|
- Infopark Rails Connector (RC)
|
82
64
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
65
|
+
rubygems_version: 2.0.3
|
84
66
|
signing_key:
|
85
|
-
specification_version:
|
67
|
+
specification_version: 4
|
86
68
|
summary: A blob streaming extension for the native Ruby-MySQL2 adapter
|
87
69
|
test_files: []
|
88
|
-
|