PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ get_column_type()

static uint8_t get_column_type ( Oid  typoid)
static

Definition at line 36 of file flatgeobuf.c.

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

Referenced by inspect_table().

Here is the caller graph for this function: