Module: SqliteVss

Defined in:
lib/version.rb,
lib/sqlite_vss.rb

Overview

automatically generated, do not edit by hand.

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.load(db) ⇒ Object



17
18
19
20
# File 'lib/sqlite_vss.rb', line 17

def self.load(db)
  self.load_vector(db)
  self.load_vss(db)
end

.load_vector(db) ⇒ Object



11
12
13
# File 'lib/sqlite_vss.rb', line 11

def self.load_vector(db)
  db.load_extension(self.vector_loadable_path)
end

.load_vss(db) ⇒ Object



14
15
16
# File 'lib/sqlite_vss.rb', line 14

def self.load_vss(db)
  db.load_extension(self.vss_loadable_path)
end

.vector_loadable_pathObject



8
9
10
# File 'lib/sqlite_vss.rb', line 8

def self.vector_loadable_path
  File.expand_path('../vector0', __FILE__)
end

.vss_loadable_pathObject



5
6
7
# File 'lib/sqlite_vss.rb', line 5

def self.vss_loadable_path
  File.expand_path('../vss0', __FILE__)
end