sportdb-models 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/sportdb/models.rb +10 -1
- data/lib/sportdb/readers/assoc.rb +1 -1
- data/lib/sportdb/readers/event.rb +1 -1
- data/lib/sportdb/readers/game.rb +1 -1
- data/lib/sportdb/readers/ground.rb +1 -1
- data/lib/sportdb/readers/league.rb +1 -1
- data/lib/sportdb/readers/season.rb +1 -1
- data/lib/sportdb/readers/squad_club.rb +1 -1
- data/lib/sportdb/readers/squad_national_team.rb +1 -1
- data/lib/sportdb/readers/team.rb +1 -1
- data/lib/sportdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0affaf2a49747b220279b102590e4ef7c32e6ae6
|
4
|
+
data.tar.gz: 0d4c5930bf8e8840382db68b7632024d7b43498e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 606269936129a868ab143454e76b4d8dc3d69357586499691fbc2a077146c754ae76fc31065fec39a4b9d293ee2898e32414d1bbb64d2171ec0fbd76900902ef
|
7
|
+
data.tar.gz: 20a6a81b5378514d880d6c402e0a58f0a8ee5b63a9526c7443c343f0ec6374c60a37e1e0cf7639098ac41492d7824916d9a00536b80367224c29001179242adf
|
data/README.md
CHANGED
data/lib/sportdb/models.rb
CHANGED
@@ -222,6 +222,15 @@ module SportDb
|
|
222
222
|
pp config
|
223
223
|
ActiveRecord::Base.establish_connection( config )
|
224
224
|
# ActiveRecord::Base.logger = Logger.new( STDOUT )
|
225
|
+
|
226
|
+
## if sqlite3 add (use) some pragmas for speedups
|
227
|
+
if config[:adapter] == 'sqlite3'
|
228
|
+
## check/todo: if in memory e.g. ':memory:' no pragma needed!!
|
229
|
+
con = ActiveRecord::Base.connection
|
230
|
+
con.execute( 'PRAGMA synchronous=OFF;' )
|
231
|
+
con.execute( 'PRAGMA journal_mode=OFF;' )
|
232
|
+
con.execute( 'PRAGMA temp_store=MEMORY;' )
|
233
|
+
end
|
225
234
|
end
|
226
235
|
|
227
236
|
|
@@ -246,4 +255,4 @@ end # module SportDb
|
|
246
255
|
|
247
256
|
|
248
257
|
## say hello
|
249
|
-
puts SportDb.banner if
|
258
|
+
puts SportDb.banner if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
|
data/lib/sportdb/readers/game.rb
CHANGED
data/lib/sportdb/readers/team.rb
CHANGED
data/lib/sportdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: worlddb-models
|