class OpenAssets::Cache::SQLiteBase
The base class of SQLite3 cache implementation.
Attributes
db[R]
Public Class Methods
new(path)
click to toggle source
Initializes the connection to the database, and creates the table if needed. @param path The path to the database file. Use ':memory:' for an in-memory database.
# File lib/openassets/cache/sqlite_base.rb, line 13 def initialize(path) @db = SQLite3::Database.new path setup end
Public Instance Methods
setup()
click to toggle source
Setup table ddl, implements by subclass.
# File lib/openassets/cache/sqlite_base.rb, line 19 def setup raise StandardError.new('need setup method implementation.') end