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.7 - 2025-06-04

Improvements

  • Relationships: Allow record.relation_table to return a list of the relation_table's item related to record.

Version 0.0.6 - 2025-05-07

New Features

  • Relationships: Add support for foreign keys.

Improvements

  • **select**: enable fetch one with .get and .filter to return a all that matches the condition.

Bug Fixes

Version 0.0.5 - 2025-05-02

New Features

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.7 - 2025-06-04

Melhorias

  • Relacionamentos: Permite que record.relation_table retorne uma lista dos itens da relation_table relacionados ao record.

Versão 0.0.6 - 2025-05-07

Novas Funcionalidades

  • Relacionamentos: Adicionado suporte para chaves estrangeiras (foreign keys).

Melhorias

  • select: Habilitado para buscar um único registro com .get e .filter retorna todos que correspondem à condição.

Correções de Bugs

Versão 0.0.5 - 2025-05-02

Novas Funcionalidades

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.7.tar.gz (11.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.7-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloey_orm-0.0.7.tar.gz
  • Upload date:
  • Size: 11.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.7.tar.gz
Algorithm Hash digest
SHA256 cf520cc7069d29a59b1989ab37f4b070aa73cde50d57d579847a1bf162353eac
MD5 0a4bf3fdb5070de8d00992b7a1a6743b
BLAKE2b-256 8432d1c39fdc8e0dddfed8c5c471f54cbb4a8fee0cb7800e8511a92fad98894b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloey_orm-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f02fc30fc61d15cbe59cfec3c1a3cc7a864a6abbbba7f227ec5b9b1e242c7bd1
MD5 dd5fb13af8d8c1c76cddafbffa8b9f3b
BLAKE2b-256 1858716b6ad586669941fc3f0e34e83113afe0001c0f87d443c21371ecd935ce

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