Skip to main content

The Python ORM for PostgreSQL

Project description

Cloey ORM

The Python ORM for PostgreSQL

Documentation: cloey.wolk.host

Installing

pip install cloey-orm

Changelog


Version 0.0.5 - 2024-11-15

New Features

  • Internal Helper Utilities: Added internal utility functions to support development and reduce repetition in core code (not exposed to library users).

Improvements

  • Update Method Return: .update() method now returns the updated record as an object of the class.
  • Delete Method Return: .delete() method now returns a boolean indicating whether the deletion was successful.

Bug Fixes

  • Database Migrations: Fixed an issue where schema changes could not be applied to the database in the previous version.

Version 0.0.4 - 2024-11-08

New Features

  • Table name: Use class name as the table name.
  • Tables in plural: create tables in plural, adding "s" at the end when the class name.

Improvements

  • **tablename**: Use __tablename__ attribute as it is when provided as table name.
  • Return created row: on .create() method return the created row as an object of the class.

Bug Fixes


Versão 0.0.5 - 2024-11-15

Novas Funcionalidades

  • Funções Utilitárias Internas: Adicionadas funções auxiliares internas para apoiar o desenvolvimento e reduzir repetição no código (não disponíveis para usuários da biblioteca).

Melhorias

  • Retorno do Método .update(): O método .update() agora retorna o registro atualizado como objeto da classe.
  • Retorno do Método .delete(): O método .delete() agora retorna um valor booleano indicando se a exclusão foi bem-sucedida.

Correções de Bugs

  • Migrações de Banco de Dados: Corrigido um problema que impedia a aplicação de alterações no esquema do banco de dados na versão anterior.

Version 0.0.3 - 2024-11-01

New Features

  • ULID for PostgreSQL: Added support for using ULID (Universally Unique Lexicographically Sortable Identifier) for PostgreSQL database connections.
  • Incremental ID for SQLite and PostgreSQL: Introduced the use of incremental IDs for SQLite and PostgreSQL connections.
  • Automatic created_at Field: Added automatic created_at as a default field for all models.

Improvements

  • Database Connection Check: Enhanced CRUD operations to include automatic checks for database connectivity before execution.

Bug Fixes

  • Query Execution: Fixed an issue where queries were not being executed on the correct database connection.

Versão 0.0.4 - 2024-11-08

Novas Funcionalidades

  • Table name: Usar a nome da classe como nome da tabela.
  • Tabelas em plural: criar tabelas em plural adicionando 's' no final do nome da classe.

Melhorias

  • **tablename**: Usar o atributo __tablename__ como nome da tabela exatamente como fornecido.
  • Returnar o registro criado: no método .create() returnar o registro criado como objecto da classe em causa.

Correções de Bugs


Changelog

Versão 0.0.3 - 2024-11-01

Novas Funcionalidades

  • ULID para PostgreSQL: Adicionado suporte para usar ULID (Identificador Lexicograficamente Ordenável Universalmente Único) nas conexões com bancos de dados PostgreSQL.
  • ID Incremental para SQLite e PostgreSQL: Introduzido o uso de IDs incrementais para conexões com bancos de dados SQLite e PostgreSQL.
  • Campo created_at Automático: Adicionado o campo created_at como padrão para todos os modelos.

Melhorias

  • Verificação de Conexão com o Banco de Dados: Melhoradas as operações CRUD para incluir verificações automáticas de conectividade com o banco de dados antes da execução.

Correções de Bugs

  • Execução de Consultas: Corrigido um problema onde as consultas não estavam sendo executadas na conexão correta do banco de dados.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloey_orm-0.0.5.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloey_orm-0.0.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file cloey_orm-0.0.5.tar.gz.

File metadata

  • Download URL: cloey_orm-0.0.5.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cloey_orm-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7185ffac3ca2f66aeee05cd266bf6b229a93e28a0ca440d13810e898a7f6afae
MD5 6a1bee5cb923472e92d3ea39aa78bd26
BLAKE2b-256 3905437c3cd1d18ed20152833a42b313955ecf5a84b2cd3ea3da203768c4ae4c

See more details on using hashes here.

File details

Details for the file cloey_orm-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: cloey_orm-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cloey_orm-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3c0071a0adc9aeebc93f5508ddaa37384101958a2a5be37edef583685274393a
MD5 c9b38a9661fd19dd3424c6b135610da3
BLAKE2b-256 a62d1b39da3f4e99a390ff17f60f0f1b69a0c26fc7788b55ea37d30e5d516079

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page