Implement .set_database() for all backends or remove it from the API #2913
Labels
backends
Issues related to all backends
feature
Features or general enhancements
onboarding
Issues that can be addressed by someone less familiar with ibis
In #2909 the method
.set_database()has been standardized, but this does not include making it always available in all backends. There are several backends, such as SQLAlchemy backends, File backends or clickhouse, that don't implement it, and don't let changing the backend.The reason in most cases seems to be that the underlying connection object doesn't support changing the database. But in those cases, we can keep a
_current_databaseattribute ourselves, and use that database on queries.Having
.set_database()always implemented should make things easier for users.Another alternative is to simply remove it from the few databasets that implement it. Users can connect to a different database, and have different variables with connections to different databases.
The text was updated successfully, but these errors were encountered: