com.github.netty.protocol.mysql.Constants Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you 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.
*/
package com.github.netty.protocol.mysql;
/**
*
*/
public interface Constants {
int NUL_BYTE = 0x00;
int RESPONSE_ERROR = 0xFF;
int RESPONSE_EOF = 0xFE;
int RESPONSE_LOCAL_INFILE = 0xFB;
int RESPONSE_OK = 0;
int MINIMUM_SUPPORTED_PROTOCOL_VERSION = 10;
int SQL_STATE_SIZE = 6;
// Handshake constants
int AUTH_PLUGIN_DATA_PART1_LEN = 8;
int AUTH_PLUGIN_DATA_PART2_MIN_LEN = 13;
int AUTH_PLUGIN_DATA_MIN_LEN = AUTH_PLUGIN_DATA_PART1_LEN + AUTH_PLUGIN_DATA_PART2_MIN_LEN;
int HANDSHAKE_RESERVED_BYTES = 10;
// Auth plugins
String MYSQL_NATIVE_PASSWORD = "mysql_native_password";
int DEFAULT_MAX_PACKET_SIZE = 0xFFFFFF;//1048576
String HANDLER_TYPE_FRONTEND = "frontend";
String HANDLER_TYPE_BACKEND = "backend";
}