Class: Acta::Adapters::SQLite
- Inherits:
-
Base
- Object
- Base
- Acta::Adapters::SQLite
show all
- Defined in:
- lib/acta/adapters/sqlite.rb
Instance Method Summary
collapse
Methods inherited from Base
#install_schema, #json_column_type, #uuid_column_type
Instance Method Details
#fetch_records ⇒ Object
17
18
19
|
# File 'lib/acta/adapters/sqlite.rb', line 17
def fetch_records
Acta::Record.order(:id)
end
|
#insert_event(attributes) ⇒ Object
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/acta/adapters/sqlite.rb', line 6
def insert_event(attributes)
stream_type = attributes[:stream_type]
stream_key = attributes[:stream_key]
if stream_type && stream_key
insert_streamed(attributes, stream_type:, stream_key:)
else
Acta::Record.create!(**attributes)
end
end
|