Class: ActiveRecord::ConnectionAdapters::LitedbAdapter
- Inherits:
-
SQLite3Adapter
- Object
- SQLite3Adapter
- ActiveRecord::ConnectionAdapters::LitedbAdapter
- Defined in:
- lib/active_record/connection_adapters/litedb_adapter.rb
Constant Summary collapse
- ADAPTER_NAME =
"litedb"
- NATIVE_DATABASE_TYPES =
{ primary_key: "integer PRIMARY KEY NOT NULL", string: {name: "text"}, text: {name: "text"}, integer: {name: "integer"}, float: {name: "real"}, decimal: {name: "real"}, datetime: {name: "text"}, time: {name: "integer"}, date: {name: "text"}, binary: {name: "blob"}, boolean: {name: "integer"}, json: {name: "text"}, unixtime: {name: "integer"} }
Class Method Summary collapse
Class Method Details
.dbconsole(config, options = {}) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/active_record/connection_adapters/litedb_adapter.rb', line 46 def dbconsole(config, = {}) args = [] args << "-#{[:mode]}" if [:mode] args << "-header" if [:header] args << File.(config.database, Rails.respond_to?(:root) ? Rails.root : nil) find_cmd_and_exec("sqlite3", *args) end |