MagicStack / MagicStack/asyncpg

prepared statement get_attributes

Open
#911 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.1k
Forks
468
PR merge metrics
No merged PRs in 30d

Description

How can i get scale and precision from get_attributes()?

psycopg returns (Column(name='column_name', type_code=1043, display_size=None, internal_size=-1, precision=None, scale=None, null_ok=None)

asyncpg returns Attribute( name='typname', type=Type(oid=19, name='name', kind='scalar', schema='pg_catalog')

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the prepared-statement get_attributes() API and asks for scale and precision metadata. Start by locating that API and comparing its Attribute/Type result with the psycopg example and PostgreSQL metadata. Done means the supported way to obtain these values is established and documented or implemented with coverage for the returned metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.