shopcube icon indicating copy to clipboard operation
shopcube copied to clipboard

clean as per db type

Open Abdur-rahmaanJ opened this issue 4 years ago • 3 comments

@rehmanis we can clean db as per type. If using mysql, erase tables. If sqlite delete file. We must think of nice db configs to handle both

Abdur-rahmaanJ avatar Feb 10 '21 03:02 Abdur-rahmaanJ

@Abdur-rahmaanJ yeah that good but I am not sure how this can be done. Might have to look into it more.

rehmanis avatar Feb 10 '21 07:02 rehmanis

Detect db type by sqlalchemy uri

Abdur-rahmaanJ avatar Feb 10 '21 07:02 Abdur-rahmaanJ

@Abdur-rahmaanJ Why not use SQLALCHEMY_BINDS to define multiple databases and then clean them as needed?

rehmanis avatar Feb 19 '21 02:02 rehmanis