Class: Taggata::DbAdapters::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/taggata/db_adapters/abstract.rb

Direct Known Subclasses

Sequel

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dbObject (readonly)

Returns the value of attribute db.



5
6
7
# File 'lib/taggata/db_adapters/abstract.rb', line 5

def db
  @db
end

Instance Method Details

#bulk_insert(klass, values) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/taggata/db_adapters/abstract.rb', line 7

def bulk_insert(klass, values)
  raise NotImplementedError
end

#destroy(klass, options) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/taggata/db_adapters/abstract.rb', line 23

def destroy(klass, options)
  raise NotImplementedError
end

#find(klass, options) ⇒ Object

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/taggata/db_adapters/abstract.rb', line 31

def find(klass, options)
  raise NotImplementedError
end

#find_one(klass, options) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/taggata/db_adapters/abstract.rb', line 27

def find_one(klass, options)
  raise NotImplementedError
end

#find_tags_without_filesObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/taggata/db_adapters/abstract.rb', line 15

def find_tags_without_files
  raise NotImplementedError
end

#find_untagged_filesObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/taggata/db_adapters/abstract.rb', line 11

def find_untagged_files
  raise NotImplementedError
end

#initialize_db(db_path) ⇒ Object

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/taggata/db_adapters/abstract.rb', line 39

def initialize_db(db_path)
  raise NotImplementedError
end

#migrate_dbObject

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/taggata/db_adapters/abstract.rb', line 43

def migrate_db
  raise NotImplementedError
end

#save(table, id) ⇒ Object

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/taggata/db_adapters/abstract.rb', line 35

def save(table, id)
  raise NotImplementedError
end

#transaction(&block) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/taggata/db_adapters/abstract.rb', line 19

def transaction(&block)
  raise NotImplementedError
end