PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ get_column_type()

static uint8_t get_column_type ( Oid  typoid)
static

Definition at line 37 of file flatgeobuf.c.

37  {
38  switch (typoid)
39  {
40  case BOOLOID:
41  return flatgeobuf_column_type_bool;
42  case INT2OID:
43  return flatgeobuf_column_type_short;
44  case INT4OID:
45  return flatgeobuf_column_type_int;
46  case INT8OID:
47  return flatgeobuf_column_type_long;
48  case FLOAT4OID:
49  return flatgeobuf_column_type_float;
50  case FLOAT8OID:
51  return flatgeobuf_column_type_double;
52  case TEXTOID:
53  case VARCHAROID:
54  return flatgeobuf_column_type_string;
55  case JSONBOID:
56  return flatgeobuf_column_type_json;
57  case BYTEAOID:
58  return flatgeobuf_column_type_binary;
59  case DATEOID:
60  case TIMEOID:
61  case TIMESTAMPOID:
62  case TIMESTAMPTZOID:
63  return flatgeobuf_column_type_datetime;
64  }
65  elog(ERROR, "flatgeobuf: get_column_type: '%d' column type not supported",
66  typoid);
67 }

Referenced by inspect_table().

Here is the caller graph for this function: