A three tier systems code generator that targets serveral databases and languages
Project description
Mettle
Bitsmiths-Mettle is the supporting code generators and python libraries for the Mettle project.
See our repo and main README for more details!
Requirements
Python 3.10+
Installation
$ pip install bitsmiths-mettle
---> 100%
Change History
2.2.0
Type | Description |
---|---|
New | Added a database_name() method to all db connections. |
New | Select one statements that fail, will now raise the new DBNotFound error code. |
New | Added psycopg3 database extension for python3 . |
New | Added psycopg3 async database extension for python3 . |
New | Python generation for __slots__ added, requires python 3.10 and up. |
New | Added a must_exist optional parameter to the python generated fetch() methods which will raise an error if the fetch fails. |
Breaking | In the python generated fetch_all() methods, renamed clearList to clear_list . |
Breaking | Improved the genartion of couplet identifier names. This may cause some couplets to be generated with differnt names. |
Bug | Foreign key, and unique key violations now proplerly thrown for all the python db drivers. |
2.1.14
Type | Description |
---|---|
New | Added a new python generator option fetch.method . Options are c++ which is the legacy option and python which adds a fetch iterator method and creates a new object for each fetch instead of reusing the existing orec . |
New | Removed the __del__ dunder from the python DAO code generation as it is not needed. |
2.1.13
Type | Description |
---|---|
New | Angular makefile generators can now be dynamically extended with a different CC, and TARGS as well as have optional overwrite commands. |
Bug | Fixed configuration bug from the 2.1.12 where a null dataclass would cause a generation error. |
2.1.12
Type | Description |
---|---|
New | Python database and braze models can now be generated with (pydantic, or dataclass, or attrs) as an option. |
New | Python database and braze models can now toggle (pk, serializer, dav, clear) features an and off. |
2.1.11
Type | Description |
---|---|
Bug | Fixed a refactor of errCode to err_code that was not rippled through some of the base library code/ |
2.1.10
Type | Description |
---|---|
Change | General typing improvements, and minor bug fixes. |
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitsmiths-mettle-2.2.0.tar.gz
(166.1 kB
view hashes)
Built Distribution
Close
Hashes for bitsmiths_mettle-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b00303b5a1e81b2bbec8b452aee2d950e7a8efcde142aa4813ceb2dfacf6c4f |
|
MD5 | c282582c56383827433c9879b114aa8e |
|
BLAKE2b-256 | 5c4328ddb0ec1ba7eed470125e2c34b8a8270e6b244db111f22ce23b9b4428a8 |