File: sqlite3.rb

package info (click to toggle)
ruby-sqlite3 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: ruby: 4,827; ansic: 1,868; sh: 91; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# support multiple ruby version (fat binaries under windows)
begin
  RUBY_VERSION =~ /(\d+\.\d+)/
  require "sqlite3/#{$1}/sqlite3_native"
rescue LoadError
  require "sqlite3/sqlite3_native"
end

require "sqlite3/database"
require "sqlite3/version"

module SQLite3
  # Was sqlite3 compiled with thread safety on?
  def self.threadsafe?
    threadsafe > 0
  end
end

require "sqlite3/version_info"