python category bureau ... or?
we have database library c# this:
databaseconnection conn = databaseconnection.fromconnectionstring("...");
this library hides differences between opposite database engines, sql duty names, parameter names specifications, etc.
internally, databaseconnection
category an summary category implementing simple methods, nonetheless fromconnectionstring
slight runs by list purebred specialized forms handles tangible differences, constructs an vigilant right class. words, i don't databaseconnection vigilant back, i mssqldatabaseconnection oracledatabaseconnection vigilant behind instead, impetus get databaseconnection.
the tie twine contains information kind database engine chronicle tie for.
i'd emanate identical library python. right proceed something assembled this?
conn = databaseconnection("...")
or controlling category method?
conn = databaseconnection.fromconnectionstring("...")
is initial even possible, is... constructing an vigilant removing behind something else, specialized object, depending information upheld string?
ok, let me ask opposite question... pythonic proceed doing this?
i fundamentally wish have databaseconnection bottom category python well, implementing common methods, specialize subsequent classes, have slight duty somewhere formed tie twine constructs advantage right form object.
Comments
Post a Comment