swift-db-mysql 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.md +120 -0
- data/ext/swift/db/mysql/adapter.c +434 -0
- data/ext/swift/db/mysql/adapter.h +15 -0
- data/ext/swift/db/mysql/common.c +76 -0
- data/ext/swift/db/mysql/common.h +27 -0
- data/ext/swift/db/mysql/datetime.c +99 -0
- data/ext/swift/db/mysql/datetime.h +8 -0
- data/ext/swift/db/mysql/extconf.rb +35 -0
- data/ext/swift/db/mysql/main.c +34 -0
- data/ext/swift/db/mysql/result.c +415 -0
- data/ext/swift/db/mysql/result.h +10 -0
- data/ext/swift/db/mysql/statement.c +145 -0
- data/ext/swift/db/mysql/statement.h +14 -0
- data/ext/swift/db/mysql/typecast.c +105 -0
- data/ext/swift/db/mysql/typecast.h +24 -0
- data/lib/swift-db-mysql.rb +1 -0
- data/lib/swift/db/mysql.rb +1 -0
- data/test/helper.rb +8 -0
- data/test/test_adapter.rb +81 -0
- data/test/test_async.rb +36 -0
- data/test/test_encoding.rb +32 -0
- data/test/test_ssl.rb +10 -0
- metadata +87 -0
data/test/test_ssl.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
describe 'adapter ssl' do
|
4
|
+
# TODO: this seems to rely on openssl versions used to build the mysql server.
|
5
|
+
# it 'should connect to database with ssl options' do
|
6
|
+
# key = File.join(File.dirname(__FILE__), 'server.key')
|
7
|
+
# cert = File.join(File.dirname(__FILE__), 'server.crt')
|
8
|
+
# assert Swift::DB::Mysql.new(db: 'swift_test', ssl: {key: key, cert: cert})
|
9
|
+
# end
|
10
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: swift-db-mysql
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Bharanee Rathna
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Swift adapter for MySQL database
|
31
|
+
email:
|
32
|
+
- deepfryed@gmail.com
|
33
|
+
executables: []
|
34
|
+
extensions:
|
35
|
+
- ext/swift/db/mysql/extconf.rb
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- ext/swift/db/mysql/datetime.c
|
39
|
+
- ext/swift/db/mysql/statement.c
|
40
|
+
- ext/swift/db/mysql/main.c
|
41
|
+
- ext/swift/db/mysql/typecast.c
|
42
|
+
- ext/swift/db/mysql/result.c
|
43
|
+
- ext/swift/db/mysql/adapter.c
|
44
|
+
- ext/swift/db/mysql/common.c
|
45
|
+
- ext/swift/db/mysql/typecast.h
|
46
|
+
- ext/swift/db/mysql/datetime.h
|
47
|
+
- ext/swift/db/mysql/adapter.h
|
48
|
+
- ext/swift/db/mysql/result.h
|
49
|
+
- ext/swift/db/mysql/common.h
|
50
|
+
- ext/swift/db/mysql/statement.h
|
51
|
+
- ext/swift/db/mysql/extconf.rb
|
52
|
+
- test/helper.rb
|
53
|
+
- test/test_ssl.rb
|
54
|
+
- test/test_encoding.rb
|
55
|
+
- test/test_async.rb
|
56
|
+
- test/test_adapter.rb
|
57
|
+
- lib/swift/db/mysql.rb
|
58
|
+
- lib/swift-db-mysql.rb
|
59
|
+
- README.md
|
60
|
+
- CHANGELOG
|
61
|
+
homepage: http://github.com/deepfryed/swift-db-mysql
|
62
|
+
licenses: []
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
- ext
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 1.8.24
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: Swift mysql adapter
|
86
|
+
test_files: []
|
87
|
+
has_rdoc:
|