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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloey_orm-0.0.6.tar.gz
  • Upload date:
  • Size: 10.9 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.6.tar.gz
Algorithm Hash digest
SHA256 e28fdcaa3c114bffe60aecec088400526d080cd0fdaaf71660175e478aef667f
MD5 3a81c11ce19535eb3c122fd22cf20b41
BLAKE2b-256 56f8d8e98dc52c8930803e0e688b0997e447894e92e66a1dba3d4f24d5c709ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloey_orm-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a5edfb6c17cb50167f2e20f3eb7ad4ec8424722f245e81366fcb2cfd66a6d462
MD5 8f625ca93638dfa70f14c1a28812599b
BLAKE2b-256 f94280ca5d70c09aa4c25e76626165e805e9b32341cdaefd4b2555f07d35ff3a

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