Skip to content

Commit

Permalink
Reintroduce refresh_db noop to avoid errors on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Feb 24, 2024
1 parent eab49b5 commit 704c92a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/replit/database/default_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def get_db_url() -> Optional[str]:
return os.environ.get("REPLIT_DB_URL")


def refresh_db() -> None:
"""Deprecated: refresh_db is now located inside the LazyDB singleton instance."""
pass


class LazyDB:
"""A way to lazily create a database connection."""

Expand Down

0 comments on commit 704c92a

Please sign in to comment.