github.com/matrixorigin/matrixone@v0.7.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  // Header information.
    18  const (
    19  	OKHeader          byte = 0x00
    20  	ErrHeader         byte = 0xff
    21  	EOFHeader         byte = 0xfe
    22  	LocalInFileHeader byte = 0xfb
    23  )
    24  
    25  const (
    26  	SharedFileServiceName = "SHARED"
    27  	LocalFileServiceName  = "LOCAL"
    28  	ETLFileServiceName    = "ETL"
    29  )
    30  
    31  const (
    32  	// TEMPORARY_DBNAME used to store all temporary table created by session.
    33  	// when a user tries to create a database with this name, will be rejected at the plan stage.
    34  	TEMPORARY_DBNAME = "%!%mo_temp_db"
    35  
    36  	// TEMPORARY_TABLE_DN_ADDR marked as virtual dn address only for temporary table
    37  	// When a TargetDN.address in TxnRequest is TEMPORARY_TABLE_DN_ADDR, this TxnRequest is for temporary table
    38  	// and execution flow will go to the func in handleTemp
    39  	TEMPORARY_TABLE_DN_ADDR = "%!%mo_temp_db_dn_address"
    40  )