-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sqlite support #92
Conversation
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 27 27
Lines 1566 1666 +100
==========================================
+ Hits 1566 1666 +100
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
75ff760
to
7fcdcd3
Compare
I've added a section where I've outlined the storage options that can be used in each scenario. Installing sqlite extra for the asynchronous support of sqlite3 is necessary if you want to use the async version of hishel.
Hishel uses anysqlite library for the asynchronous sqlite3 support. Also, you can ass your own sqlite3 connections if you want, like so: import hishel
import sqlite3
client = hishel.CacheClient(
storage=hishel.SQLiteStorage(connection=sqlite3.connect("my_db_path", timeout=5))
) |
Closes #89
This pull request adds basic
sqlite3
support for all kinds of serializers and can work on top of either trio or asyncio.