Skip to content

Commit

Permalink
Update FlightSQL GetSqlInfo: switch info from String to int for perfo…
Browse files Browse the repository at this point in the history
…rmance optimation
  • Loading branch information
Abner Eduardo Ferreira authored and rafael-telles committed Dec 6, 2021
1 parent 0e3aa74 commit fbae614
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,4 +663,20 @@ private Schemas() {
// Prevent instantiation.
}
}

/**
* Reserved options for the SQL command `GetSqlInfo` used by {@link FlightSqlProducer}.
*/
final class SqlInfo {
public static final int FLIGHT_SQL_SERVER_NAME = 0;
public static final int FLIGHT_SQL_SERVER_VERSION = 1;
public static final int FLIGHT_SQL_SERVER_ARROW_VERSION = 2;
public static final int FLIGHT_SQL_SERVER_READ_ONLY = 3;
public static final int SQL_DDL_CATALOG = 4;
public static final int SQL_DDL_SCHEMA = 5;
public static final int SQL_DDL_TABLE = 6;
public static final int SQL_IDENTIFIER_CASE = 7;
public static final int SQL_IDENTIFIER_QUOTE_CHAR = 8;
public static final int SQL_QUOTED_IDENTIFIER_CASE = 9;
}
}

0 comments on commit fbae614

Please sign in to comment.