Skip to content

Commit

Permalink
Support litedb (#120)
Browse files Browse the repository at this point in the history
Litedb is a part of litestack, and provide its own active record adapter
atop sqlite3:
https://github.com/oldmoe/litestack?tab=readme-ov-file#activerecord
  • Loading branch information
segiddins authored Sep 4, 2024
1 parent d06fb34 commit 6a33b5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/hair_trigger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ def pg_schema
end

def adapter_name_for(adapter)
adapter.adapter_name.downcase.sub(/\d$/, '').to_sym
adapter_name = adapter.adapter_name.downcase
adapter_name.sub!(/\d$/, '')
case adapter_name
when "litedb"
:sqlite
else
adapter_name.to_sym
end
end
end
end
Expand Down

0 comments on commit 6a33b5a

Please sign in to comment.