Class: Arc::DataStores::SqliteDataStore

Inherits:
AbstractDataStore show all
Defined in:
lib/arc/data_stores/sqlite/store.rb

Constant Summary

Constants included from Casting

Casting::CAST_METHODS, Casting::TYPES

Instance Method Summary collapse

Methods inherited from AbstractDataStore

#[], #create, #destroy, #last_insert_rowid, #read, #result_for, #type_mappings_for, #update

Methods included from Casting

#cast

Methods included from Quoting

#quote, #quote_column, #quote_table

Methods included from ArelCompatibility

#columns_hash, #connection, #connection_pool, #primary_key, #quote_hash, #spec, #table_exists?, #visitor, #with_connection

Instance Method Details

#execute(query) ⇒ Object



8
9
10
11
12
# File 'lib/arc/data_stores/sqlite/store.rb', line 8

def execute query
  with_store do |connection|
    result = connection.execute(query).symbolize_keys!
  end
end

#schemaObject



14
15
16
# File 'lib/arc/data_stores/sqlite/store.rb', line 14

def schema
  @schema ||= ObjectDefinitions::SqliteSchema.new self
end