Package: bitsmiths-mettle
MettleBitsmiths-Mettle is the supporting code generators and python libraries for the Mettle project.See ourrepoand mainREADMEfor more details!RequirementsPython 3.10+Installation$pipinstallbitsmiths-mettle---> 100%Change History2.2.9TypeDescriptionFixFixed an exception priority issue with themettle-psycopgdriver where reset connections were being caught by the lock exception.2.2.8TypeDescriptionNewThemettle-sql-buildentry point in the python package now accepts wild card inputs.2.2.7TypeDescriptionFixPython database table generetor respects not null columns that are integers and floats properly for pydantic and dataclass generation.2.2.6TypeDescriptionFixThe python encoded.databases[postgresql] driver was not handling null floats. Bug squashed.2.2.5TypeDescriptionFixChanged PostgreSQL package dependency frompostgrestopostgresql.FixThe python braze serializers now useisinstanceinstead oftypewhen checking value types.2.2.4TypeDescriptionFixImproved package dependencies, thank-you Bradley Kirton.NewAdded a new optionalglobal-settings.file-headersetting to projects. Allows customization or removal or the generated header in all generated files.2.2.3TypeDescriptionNewImplemented auto (reset) to database connections on failure for all python database drivers. (This excludesasynpgbecause it uses a pool that does it for us).BugFixed a python async code generation issue, where somemethodsandwithstatements were not using await or async.2.2.2TypeDescriptionFixFixed an import issue with the Braze TCP overload in python.2.2.1TypeDescriptionFixAppliedcoupletidentifier improvement to braze couplets on python.2.2.0TypeDescriptionNewAdded adatabase_name()method to all db connections.NewSelect one statements that fail, will now raise the newDBNotFounderror code.NewAddedpsycopg3database extension forpython3.NewAddedpsycopg3 asyncdatabase extension forpython3.NewPython generation for__slots__added, requires python 3.10 and up.NewAdded amust_existoptional parameter to the python generatedfetch()methods which will raise an error if the fetch fails.BreakingIn the python generatedfetch_all()methods, renamedclearListtoclear_list.BreakingImproved the genartion ofcoupletidentifier names. This may cause some couplets to be generated with differnt names.BugForeign key, and unique key violations now proplerly thrown for all the python db drivers.2.1.14TypeDescriptionNewAdded a new python generator optionfetch.method. Options arec++which is the legacy option andpythonwhich adds a fetch iterator method and creates a new object for each fetch instead of reusing the existingorec.NewRemoved the__del__dunder from the python DAO code generation as it is not needed.2.1.13TypeDescriptionNewAngular makefile generators can now be dynamically extended with a different CC, and TARGS as well as have optional overwrite commands.BugFixed configuration bug from the 2.1.12 where a null dataclass would cause a generation error.2.1.12TypeDescriptionNewPython database and braze models can now be generated with (pydantic, or dataclass, or attrs) as an option.NewPython database and braze models can now toggle (pk, serializer, dav, clear) features an and off.2.1.11TypeDescriptionBugFixed a refactor oferrCodetoerr_codethat was not rippled through some of the base library code/2.1.10TypeDescriptionChangeGeneral typing improvements, and minor bug fixes.LicenseThis project is licensed under the terms of the MIT license.