Sha256: c5496ba7b4b3bd58422359644db4d3df97e6e3d8215a2054be2f6e09b4aad677
Contents?: true
Size: 1.87 KB
Versions: 79
Compression:
Stored size: 1.87 KB
Contents
# -*- ruby -*- # frozen_string_literal: true module CipherStashPG # cipherstash-pg *always* ships a "fat" gem with precompiled libs for # each popular major.minor version of Ruby that is still in use. major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}" begin require "#{major_minor}/pg_ext" rescue => e STDERR.puts "Failed to load pg_ext for #{RUBY_VERSION.dump}" exit 1 end # Provide a means to read the extension installation scripts DB_EXT_DIR = File.join(__dir__, '../vendor/database-extensions') def self.install_script File.read(File.join(DB_EXT_DIR, "install.sql")) end def self.uninstall_script File.read(File.join(DB_EXT_DIR, "uninstall.sql")) end class NotAllCopyDataRetrieved < CipherStashPG::Error end class NotInBlockingMode < CipherStashPG::Error end # Get the CipherStashPG library version. # # +include_buildnum+ is no longer used and any value passed will be ignored. def self.version_string( include_buildnum=nil ) "%s %s" % [ self.name, VERSION ] end ### Convenience alias for CipherStashPG::Connection.new. def self.connect( *args, &block ) Connection.new( *args, &block ) end require 'cipherstash-pg/exceptions' require 'cipherstash-pg/constants' require 'cipherstash-pg/coder' require 'cipherstash-pg/binary_decoder' require 'cipherstash-pg/text_encoder' require 'cipherstash-pg/text_decoder' require 'cipherstash-pg/basic_type_registry' require 'cipherstash-pg/basic_type_map_based_on_result' require 'cipherstash-pg/basic_type_map_for_queries' require 'cipherstash-pg/basic_type_map_for_results' require 'cipherstash-pg/type_map_by_column' require 'cipherstash-pg/connection' require 'cipherstash-pg/result' require 'cipherstash-pg/tuple' require 'cipherstash-pg/version' end # module CipherStashPG
Version data entries
79 entries across 79 versions & 1 rubygems