getTypeInfo extracts type info from a ColumnTyper (e.g. *sql.ColumnType).
(colType ColumnTyper)
| 220 | |
| 221 | // getTypeInfo extracts type info from a ColumnTyper (e.g. *sql.ColumnType). |
| 222 | func getTypeInfo(colType ColumnTyper) TypeInfo { |
| 223 | return mapDuckDBType(colType.DatabaseTypeName()) |
| 224 | } |
| 225 | |
| 226 | // parseNumericTypmod parses precision and scale from a type name like "DECIMAL(10,2)" |
| 227 | // and encodes them as a PostgreSQL typmod: ((precision << 16) | scale) + 4. |
no test coverage detected