github.com/matrixorigin/matrixone@v1.2.0/pkg/defines/const.go (about) 1 // Copyright 2021 Matrix Origin 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package defines 16 17 import "math" 18 19 // Header information. 20 const ( 21 OKHeader byte = 0x00 22 ErrHeader byte = 0xff 23 EOFHeader byte = 0xfe 24 LocalInFileHeader byte = 0xfb 25 ) 26 27 const ( 28 SharedFileServiceName = "SHARED" 29 LocalFileServiceName = "LOCAL" 30 ETLFileServiceName = "ETL" 31 ) 32 33 const ( 34 // TEMPORARY_DBNAME used to store all temporary table created by session. 35 // when a user tries to create a database with this name, will be rejected at the plan stage. 36 TEMPORARY_DBNAME = "%!%mo_temp_db" 37 38 // TEMPORARY_TABLE_TN_ADDR marked as virtual tn address only for temporary table 39 // When a TargetDN.address in TxnRequest is TEMPORARY_TABLE_TN_ADDR, this TxnRequest is for temporary table 40 // and execution flow will go to the func in handleTemp 41 TEMPORARY_TABLE_TN_ADDR = "%!%mo_temp_db_dn_address" 42 ) 43 44 const ( 45 MORPCMinVersion int64 = math.MinInt64 46 MORPCVersion1 int64 = 1 47 MORPCVersion2 int64 = 2 48 MORPCLatestVersion = MORPCVersion2 49 )