mysql_blob_streaming 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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=
@@ -1,10 +1,27 @@
1
- # A blob streaming extension for the native Ruby-MySQL2 adaptor.
1
+ # MysqlBlobStreaming
2
+ [![Build Status](https://travis-ci.org/infopark/mysql_blob_streaming.png?branch=master)][travis]
2
3
 
3
- It provides the module MysqlBlobStreaming, which gives the mysql2 adaptor the ability
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
@@ -7,9 +7,11 @@
7
7
 
8
8
  typedef struct {
9
9
  VALUE encoding;
10
- int active;
10
+ VALUE active_thread;
11
11
  int reconnect_enabled;
12
- int closed;
12
+ int active;
13
+ int connected;
14
+ int initialized;
13
15
  MYSQL *client;
14
16
  } mysql_client_wrapper;
15
17
 
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
- hash: 15
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
- date: 2013-01-14 00:00:00 +01:00
19
- default_executable:
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
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
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
- version_requirements: *id001
37
- description: " This GEM is required by the Infopark Rails Connector (RC) when using MySQL.\n"
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
- none: false
62
- requirements:
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
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
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: 1.6.2
65
+ rubygems_version: 2.0.3
84
66
  signing_key:
85
- specification_version: 3
67
+ specification_version: 4
86
68
  summary: A blob streaming extension for the native Ruby-MySQL2 adapter
87
69
  test_files: []
88
-