tiny_tds 3.1.0-x64-mingw32 → 3.2.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +187 -74
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/README.md +59 -50
- data/Rakefile +46 -37
- data/VERSION +1 -1
- data/ext/tiny_tds/extconf.rb +169 -70
- data/ext/tiny_tds/extconsts.rb +3 -4
- data/lib/tiny_tds/2.7/tiny_tds.so +0 -0
- data/lib/tiny_tds/3.0/tiny_tds.so +0 -0
- data/lib/tiny_tds/bin.rb +12 -26
- data/lib/tiny_tds/client.rb +38 -42
- data/lib/tiny_tds/error.rb +0 -2
- data/lib/tiny_tds/gem.rb +5 -9
- data/lib/tiny_tds/result.rb +0 -2
- data/lib/tiny_tds/version.rb +1 -1
- data/lib/tiny_tds.rb +28 -47
- data/ports/x64-mingw32/{freetds/1.4.23/bin → bin}/defncopy.exe +0 -0
- data/ports/x64-mingw32/bin/libsybdb-5.dll +0 -0
- data/ports/x64-mingw32/bin/tsql.exe +0 -0
- data/tasks/native_gem.rake +11 -18
- data/tasks/package.rake +1 -3
- data/tasks/ports.rake +7 -91
- data/tasks/test.rake +3 -5
- data/test/bin/install-freetds.sh +2 -4
- data/test/bin/restore-from-native-gem.ps1 +10 -0
- data/test/client_test.rb +106 -112
- data/test/gem_test.rb +31 -107
- data/test/result_test.rb +208 -221
- data/test/schema_test.rb +177 -181
- data/test/test_helper.rb +58 -63
- data/test/thread_test.rb +22 -31
- data/tiny_tds.gemspec +28 -29
- metadata +25 -41
- data/ports/x64-mingw32/freetds/1.4.23/bin/bsqldb.exe +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/datacopy.exe +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/freebcp.exe +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/libct-4.dll +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/libsybdb-5.dll +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/osql +0 -393
- data/ports/x64-mingw32/freetds/1.4.23/bin/tdspool.exe +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/bin/tsql.exe +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/lib/libct.dll.a +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/lib/libct.la +0 -41
- data/ports/x64-mingw32/freetds/1.4.23/lib/libsybdb.dll.a +0 -0
- data/ports/x64-mingw32/freetds/1.4.23/lib/libsybdb.la +0 -41
- data/ports/x64-mingw32/libiconv/1.17/bin/iconv.exe +0 -0
- data/ports/x64-mingw32/libiconv/1.17/bin/libcharset-1.dll +0 -0
- data/ports/x64-mingw32/libiconv/1.17/bin/libiconv-2.dll +0 -0
- data/ports/x64-mingw32/libiconv/1.17/lib/libcharset.dll.a +0 -0
- data/ports/x64-mingw32/libiconv/1.17/lib/libcharset.la +0 -41
- data/ports/x64-mingw32/libiconv/1.17/lib/libiconv.dll.a +0 -0
- data/ports/x64-mingw32/libiconv/1.17/lib/libiconv.la +0 -41
- data/ports/x64-mingw32/openssl/3.4.0/bin/c_rehash +0 -252
- data/ports/x64-mingw32/openssl/3.4.0/bin/libcrypto-3-x64.dll +0 -0
- data/ports/x64-mingw32/openssl/3.4.0/bin/libssl-3-x64.dll +0 -0
- data/ports/x64-mingw32/openssl/3.4.0/bin/openssl.exe +0 -0
- data/tasks/ports/freetds.rb +0 -32
- data/tasks/ports/libiconv.rb +0 -26
- data/tasks/ports/openssl.rb +0 -62
- data/tasks/ports/recipe.rb +0 -64
- data/test/benchmark/query.rb +0 -77
- data/test/benchmark/query_odbc.rb +0 -106
- data/test/benchmark/query_tinytds.rb +0 -126
@@ -1,126 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bench_press'
|
3
|
-
$:.unshift File.expand_path('../../../lib',__FILE__)
|
4
|
-
require 'tiny_tds'
|
5
|
-
|
6
|
-
extend BenchPress
|
7
|
-
|
8
|
-
author 'Ken Collins'
|
9
|
-
summary 'Benchmark TinyTds Querys'
|
10
|
-
|
11
|
-
reps 1_000
|
12
|
-
|
13
|
-
@client = TinyTds::Client.new({
|
14
|
-
:dataserver => ENV['TINYTDS_UNIT_DATASERVER'],
|
15
|
-
:username => 'tinytds',
|
16
|
-
:password => '',
|
17
|
-
:database => 'tinytdstest',
|
18
|
-
:appname => 'TinyTds Dev',
|
19
|
-
:login_timeout => 5,
|
20
|
-
:timeout => 5
|
21
|
-
})
|
22
|
-
|
23
|
-
@query_nothing = "SELECT NULL AS [null]"
|
24
|
-
@query_ints = "SELECT [int], [bigint], [smallint], [tinyint] FROM [datatypes]"
|
25
|
-
@query_binaries = "SELECT [binary_50], [image], [varbinary_50] FROM [datatypes]"
|
26
|
-
@query_bits = "SELECT [bit] FROM [datatypes]"
|
27
|
-
@query_chars = "SELECT [char_10], [nchar_10], [ntext], [nvarchar_50], [text], [varchar_50] FROM [datatypes]"
|
28
|
-
@query_dates = "SELECT [datetime], [smalldatetime] FROM [datatypes]"
|
29
|
-
@query_decimals = "SELECT [decimal_9_2], [decimal_16_4], [numeric_18_0], [numeric_36_2] FROM [datatypes]"
|
30
|
-
@query_floats = "SELECT [float], [real] FROM [datatypes]"
|
31
|
-
@query_moneys = "SELECT [money], [smallmoney] FROM [datatypes]"
|
32
|
-
@query_guids = "SELECT [uniqueidentifier] FROM [datatypes]"
|
33
|
-
@query_all = "SELECT * FROM [datatypes]"
|
34
|
-
|
35
|
-
def select_all(query)
|
36
|
-
@client.execute(query).each
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
measure "Nothing" do
|
41
|
-
select_all @query_nothing
|
42
|
-
end
|
43
|
-
|
44
|
-
measure "Integers" do
|
45
|
-
select_all @query_ints
|
46
|
-
end
|
47
|
-
|
48
|
-
measure "Binaries" do
|
49
|
-
select_all @query_binaries
|
50
|
-
end
|
51
|
-
|
52
|
-
measure "Bits" do
|
53
|
-
select_all @query_bits
|
54
|
-
end
|
55
|
-
|
56
|
-
measure "Chars" do
|
57
|
-
select_all @query_chars
|
58
|
-
end
|
59
|
-
|
60
|
-
measure "Dates" do
|
61
|
-
select_all @query_dates
|
62
|
-
end
|
63
|
-
|
64
|
-
measure "Decimals" do
|
65
|
-
select_all @query_decimals
|
66
|
-
end
|
67
|
-
|
68
|
-
measure "Floats" do
|
69
|
-
select_all @query_floats
|
70
|
-
end
|
71
|
-
|
72
|
-
measure "Moneys" do
|
73
|
-
select_all @query_moneys
|
74
|
-
end
|
75
|
-
|
76
|
-
measure "Guids" do
|
77
|
-
select_all @query_guids
|
78
|
-
end
|
79
|
-
|
80
|
-
measure "All" do
|
81
|
-
select_all @query_all
|
82
|
-
end
|
83
|
-
|
84
|
-
|
85
|
-
=begin
|
86
|
-
|
87
|
-
Query Tinytds
|
88
|
-
=============
|
89
|
-
Author: Ken Collins
|
90
|
-
Date: September 11, 2011
|
91
|
-
Summary: Benchmark TinyTds Querys
|
92
|
-
|
93
|
-
System Information
|
94
|
-
------------------
|
95
|
-
Operating System: Mac OS X 10.7.1 (11B26)
|
96
|
-
CPU: Quad-Core Intel Xeon 2.66 GHz
|
97
|
-
Processor Count: 4
|
98
|
-
Memory: 24 GB
|
99
|
-
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.1.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
|
100
|
-
|
101
|
-
----------------------------------------------------
|
102
|
-
(before 64bit times) (after 64bit times)
|
103
|
-
Nothing 0.287657022476196 secs Nothing 0.289273977279663 secs
|
104
|
-
Bits 0.406533002853394 secs Bits 0.424988031387329 secs
|
105
|
-
Guids 0.419962882995605 secs Guids 0.427381992340088 secs
|
106
|
-
Floats 0.452103137969971 secs Floats 0.455377101898193 secs
|
107
|
-
Moneys 0.481696844100952 secs Moneys 0.485175132751465 secs
|
108
|
-
Integers 0.496185064315796 secs Integers 0.525003910064697 secs
|
109
|
-
Binaries 0.538873195648193 secs Decimals 0.541536808013916 secs
|
110
|
-
Decimals 0.540570974349976 secs Binaries 0.542865991592407 secs
|
111
|
-
Dates 0.761389970779419 secs Dates 1.51440119743347 secs
|
112
|
-
Chars 0.793163061141968 secs Chars 0.666505098342896 secs
|
113
|
-
All 4.4630811214447 secs All 5.17242312431335 secs
|
114
|
-
|
115
|
-
=end
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|