Module ksqldb_confluent.types.sql_type_enum
Expand source code
# Copyright 2022 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Refer to LICENSE for more information.
from enum import Enum
class SqlTypeEnum(Enum):
"""
An enum representing all the types known in ksqlDB. If we parse a type that is unknown,
a UNKNOWN type is used. If new types use different syntax, it's possible we won't know
how to parse it and will throw an error.
"""
UNKNOWN = 0
BOOLEAN = 1
INTEGER = 2
BIGINT = 3
DOUBLE = 4
STRING = 5
TIME = 6
DATE = 7
TIMESTAMP = 8
BYTES = 9
ARRAY = 10
MAP = 11
STRUCT = 12
DECIMAL = 13
Classes
class SqlTypeEnum (value, names=None, *, module=None, qualname=None, type=None, start=1)
-
An enum representing all the types known in ksqlDB. If we parse a type that is unknown, a UNKNOWN type is used. If new types use different syntax, it's possible we won't know how to parse it and will throw an error.
Expand source code
class SqlTypeEnum(Enum): """ An enum representing all the types known in ksqlDB. If we parse a type that is unknown, a UNKNOWN type is used. If new types use different syntax, it's possible we won't know how to parse it and will throw an error. """ UNKNOWN = 0 BOOLEAN = 1 INTEGER = 2 BIGINT = 3 DOUBLE = 4 STRING = 5 TIME = 6 DATE = 7 TIMESTAMP = 8 BYTES = 9 ARRAY = 10 MAP = 11 STRUCT = 12 DECIMAL = 13
Ancestors
- enum.Enum
Class variables
var ARRAY
var BIGINT
var BOOLEAN
var BYTES
var DATE
var DECIMAL
var DOUBLE
var INTEGER
var MAP
var STRING
var STRUCT
var TIME
var TIMESTAMP
var UNKNOWN