Frontend implementation of Number Mathesar type #258
Labels
ready
Ready for implementation
type: enhancement
New feature or request
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Requirements
Users should be able to:
NUMERIC
SMALLINT
INTEGER
BIGINT
DECIMAL
REAL
DOUBLE PRECISION
filter data by Number-specific filtering optionsgroup data by Number-specific grouping optionsUpdate:
DB Type Mapping
NUMERIC
Integer
will update the DB type toINTEGER
and will set "Integer data size" to 32 bitsBIGINT
SMALLINT
Decimal
will leave the DB type as-is (it could beNUMERIC
orDECIMAL
)precision
andscale
type options.Float
will change the DB type toDOUBLE PRECISION
and will set "Floating Point Type" to "15 digits precision"REAL
DECIMAL
columns should be treated the same asNUMERIC
columns.Implementation
Design
Backend
/api/v0/tables/
lists the name and DB type of each columns/api/v0/tables/<id/columns/
lists column information in more detail/api/v0/databases/<id>/types/
maps Mathesar types to DB types and provides a list of filtering and grouping options per-type.PATCH
requests to/api/v0/tables/<id>/columns/<id>/
. These updates includetype
)type_options
)display_options
)Additional Context
NUMERIC
data type in the backend. #377SMALLINT
data type in the backend. #378INTEGER
data type in the backend. #379BIGINT
data type in the backend. #380DECIMAL
data type in the backend. #381REAL
data type in the backend. #382DOUBLE PRECISION
data type in the backend. #383The text was updated successfully, but these errors were encountered: