Class: Taggata::DbAdapters::Abstract
- Inherits:
-
Object
- Object
- Taggata::DbAdapters::Abstract
- Defined in:
- lib/taggata/db_adapters/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
- #bulk_insert(klass, values) ⇒ Object
- #destroy(klass, options) ⇒ Object
- #find(klass, options) ⇒ Object
- #find_one(klass, options) ⇒ Object
- #find_tags_without_files ⇒ Object
- #find_untagged_files ⇒ Object
- #initialize_db(db_path) ⇒ Object
- #migrate_db ⇒ Object
- #save(table, id) ⇒ Object
- #transaction(&block) ⇒ Object
Instance Attribute Details
#db ⇒ Object (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
7 8 9 |
# File 'lib/taggata/db_adapters/abstract.rb', line 7 def bulk_insert(klass, values) raise NotImplementedError end |
#destroy(klass, options) ⇒ Object
23 24 25 |
# File 'lib/taggata/db_adapters/abstract.rb', line 23 def destroy(klass, ) raise NotImplementedError end |
#find(klass, options) ⇒ Object
31 32 33 |
# File 'lib/taggata/db_adapters/abstract.rb', line 31 def find(klass, ) raise NotImplementedError end |
#find_one(klass, options) ⇒ Object
27 28 29 |
# File 'lib/taggata/db_adapters/abstract.rb', line 27 def find_one(klass, ) raise NotImplementedError end |
#find_tags_without_files ⇒ Object
15 16 17 |
# File 'lib/taggata/db_adapters/abstract.rb', line 15 def raise NotImplementedError end |
#find_untagged_files ⇒ Object
11 12 13 |
# File 'lib/taggata/db_adapters/abstract.rb', line 11 def find_untagged_files raise NotImplementedError end |
#initialize_db(db_path) ⇒ Object
39 40 41 |
# File 'lib/taggata/db_adapters/abstract.rb', line 39 def initialize_db(db_path) raise NotImplementedError end |
#migrate_db ⇒ Object
43 44 45 |
# File 'lib/taggata/db_adapters/abstract.rb', line 43 def migrate_db raise NotImplementedError end |
#save(table, id) ⇒ Object
35 36 37 |
# File 'lib/taggata/db_adapters/abstract.rb', line 35 def save(table, id) raise NotImplementedError end |
#transaction(&block) ⇒ Object
19 20 21 |
# File 'lib/taggata/db_adapters/abstract.rb', line 19 def transaction(&block) raise NotImplementedError end |