package
0.0.0-20211105144125-e9b145e8b5d4
Repository: https://github.com/pydio/minio-srv.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Execute is the function where all the blocking occurs, It writes to the HTTP response writer in a streaming fashion so that the client can actively use the results before the query is finally finished executing.
New - initialize new select format.
ParseSelect parses the SELECT expression, and effectively tokenizes it into its separate parts.

# Constants

Constants for file header info.
Constants for file header info.
Constants for file header info.
Constants for csv quote styles.
Constants for csv quote styles.
Constants for JSONTypes.
Constants for JSONTypes.
The maximum character per record is set to be 1 MB.
MaxExpressionLength - 256KiB.
Constants for expression type.
Constants for compression types under select API.
Constants for compression types under select API.
Constants for compression types under select API.

# Variables

ErrAmbiguousFieldName is an error that occurs if the column name which is not case sensitive, is not descriptive enough to retrieve a singular column.
ErrBusy is an error if the service is too busy.
ErrCastFailed occurs if the attempt to convert data types in the cast is not done correctly.
ErrColumnTooLong is an error if your query results in a column that is greater than the max amount of characters per column of 1mb.
ErrEvaluatorBindingDoesNotExist is an error that occurs if a column name or path provided in the expression does not exist.
ErrEvaluatorInvalidArguments is an error that occurs if there are not the correct number of arguments in a functional call to a SQL expression.
ErrEvaluatorInvalidTimestampFormatPattern is an error that occurs if the Time Stamp Format needs more additional fields to be filled.
ErrEvaluatorInvalidTimestampFormatPatternSymbol is an error that occurs if the time stamp format pattern has an invalid symbol within the SQL expression.
ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing is an error that occurs if the format of the time stamp can not be parsed.
ErrEvaluatorInvalidTimestampFormatPatternToken is an error that occurs if there is an invalid token in the time stamp format within the SQL expression.
ErrEvaluatorTimestampFormatPatternDuplicateFields is an error that occurs if the time stamp format pattern contains multiple format specifications which can not be clearly resolved.
ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch is an error thatoccurs if the time stamp format pattern contains a 12 hour day of format butdoes not have an AM/PM field.
ErrEvaluatorUnterminatedTimestampFormatPatternToken is an error that occurs if there is an unterminated token in the SQL expression for time stamp format.
ErrExpressionTooLong is an error if your SQL expression too long for processing.
ErrExternalEvalException is an error that arises if the query can not be evaluated.
ErrIllegalSQLFunctionArgument is an error if you provide an illegal argument in the SQL function.
ErrIncorrectSQLFunctionArgumentType is an error that occurs if the wrong argument is provided to a SQL function.
ErrIntegerOverflow is an error that occurs if there is an IntegerOverflow or IntegerUnderFlow in the SQL expression.
ErrInvalidCast is an error that occurs if the attempt to convert data types failed and was done in an improper fashion.
ErrInvalidCompressionFormat is an error if an unsupported compression type is utilized with the select object query.
ErrInvalidDataType is an error that occurs if the SQL expression contains an invalid data type.
ErrInvalidFileHeaderInfo is an error if the argument provided to the FileHeader Argument is incorrect.
ErrInvalidJSONType is an error if the json format provided as an argument is invalid.
ErrInvalidKeyPath is an error if you provide a key in the SQL expression that is invalid.
ErrInvalidQuoteFields is an error if the arguments provided to the QuoteFields options are not valid.
ErrInvalidRequestParameter is an error if the value of a parameter in the request element is not valid.
ErrInvalidTableAlias is an error that arises if the table alias provided in the SQL expression is invalid.
ErrInvalidTextEncoding is an error if the text encoding is not valid.
ErrLexerInvalidChar is an error that occurs if the SQL expression contains an invalid character.
ErrLexerInvalidIONLiteral is an error that occurs if an invalid operator is used.
ErrLexerInvalidLiteral is an error that occurs if an invalid literal is used.
ErrLexerInvalidOperator is an error that occurs if an invalid operator is used.
ErrLikeInvalidInputs is an error that occurs if invalid inputs are provided to the argument LIKE Clause.
ErrMissingHeaders is an error if some of the headers that are requested in the Select Query are not present in the file.
ErrMissingRequiredParameter is an error that arises if a required argument is omitted from the Request.
ErrMultipleDataSourcesUnsupported is an error that arises if multiple data sources are provided.
ErrObjectSerializationConflict is an error that arises if an unsupported output seralization is provided.
ErrOverMaxColumn is an error if the number of columns from the resulting query is greater than 1Mb.
ErrOverMaxRecordSize is an error if the length of a record in the result is greater than 1 Mb.
ErrParseAsteriskIsNotAloneInSelectList is an error that occurs if in addition to an asterix, more column names are provided as arguments in the SQL expression.
ErrParseCannotMixSqbAndWildcardInSelectList is an error that occurs if list indexing and an asterix are mixed in the SQL expression.
ErrParseCastArity is an error that occurs because the CAST has incorrect arity.
ErrParseEmptySelect is an error that occurs because the SQL expression contains an empty Select.
ErrParseExpected2TokenTypes is an error that occurs if 2 token types are not found.
ErrParseExpectedArgumentDelimiter is an error that occurs if the argument delimiter for the SQL expression is not provided.
ErrParseExpectedDatePart is an error that occurs if the date part is not found in the SQL expression.
ErrParseExpectedExpression is an error that occurs if the SQL expression is not found.
ErrParseExpectedIdentForAlias is an error that occurs if expected identifier for alias is not in the SQL expression.
ErrParseExpectedIdentForAt is an error that occurs if after "AT" an Alias identifier is not provided.
ErrParseExpectedIdentForGroupName is an error that occurs because Group is not supported in the SQL expression.
ErrParseExpectedKeyword is an error that occurs if the expected keyword was not found in the expression.
ErrParseExpectedLeftParenAfterCast is an error that occurs if the left parenthesis is missing after a cast in the SQL expression.
ErrParseExpectedLeftParenBuiltinFunctionCall is an error that occurs if the left parenthesis is not found in the SQL expression function call.
ErrParseExpectedLeftParenValueConstructor is an error that occurs if the left parenthesis is not found in the SQL expression.
ErrParseExpectedMember is an error that occurs if there is an unsupported use of member in the SQL expression.
ErrParseExpectedNumber is an error that occurs if a number is expected but not found in the expression.
ErrParseExpectedRightParenBuiltinFunctionCall is an error that occurs if a right parenthesis is missing.
ErrParseExpectedTokenType is an error that occurs if the expected token is not found in the SQL expression.
ErrParseExpectedTypeName is an error that occurs if a type name is expected but not found.
ErrParseExpectedWhenClause is an error that occurs if a When clause is expected but not found.
ErrParseInvalidContextForWildcardInSelectList is an error that occurs if the asterix is used improperly within the SQL expression.
ErrParseInvalidTypeParam is an error that occurs because there is an invalid parameter value.
ErrParseMalformedJoin is an error that occurs if a "join" operation is attempted in the SQL expression as this is not supported.
ErrParseMissingIdentAfterAt is an error that occurs if the wrong symbol follows the "@" symbol in the SQL expression.
ErrParseNonUnaryAgregateFunctionCall is an error that occurs if more than one argument is provided as an argument for aggregation functions.
ErrParseSelectMissingFrom is an error that occurs because there is a missing From after the Select List.
ErrParseUnexpectedKeyword is an error that occurs if the SQL expression contains an unexpected keyword.
ErrParseUnexpectedOperator is an error that occurs if the SQL expression contains an unexpected operator.
ErrParseUnexpectedTerm is an error that occurs if the SQL expression contains an unexpected term.
ErrParseUnexpectedToken is an error that occurs if the SQL expression contains an unexpected token.
ErrParseUnknownOperator is an error that occurs if there is an invalid operator present in the SQL expression.
ErrParseUnsupportedAlias is an error that occurs if there is an unsupported use of Alias.
ErrParseUnsupportedCallWithStar is an error that occurs if COUNT is used with an argument other than "*".
ErrParseUnsupportedCase is an error that occurs if there is an unsupported use of case.
ErrParseUnsupportedCaseClause is an error that occurs if there is an unsupported use of case.
ErrParseUnsupportedLiteralsGroupBy is an error that occurs if the SQL expression has an unsupported use of Group By.
ErrParseUnsupportedSelect is an error that occurs if there is an unsupported use of Select.
ErrParseUnsupportedSyntax is an error that occurs if there is an UnsupportedSyntax in the SQL expression.
ErrParseUnsupportedToken is an error that occurs if the SQL expression contains an unsupported token.
ErrUnauthorizedAccess is an error if you lack the appropriate credentials to access the object.
ErrUnrecognizedFormatException is an error that arises if there is an invalid record type.
ErrUnsupportedRangeHeader is an error that occurs if a range header is provided.
ErrUnsupportedSQLOperation is an error that arises if an unsupported SQL operation is used.
ErrUnsupportedSQLStructure is an error that occurs if an unsupported SQL structure is used.
ErrUnsupportedStorageClass is an error that occurs if an invalid storace class is present.
ErrUnsupportedSyntax is an error that occurs if invalid syntax is present in the query.
ErrValueParseFailure is an error that occurs if the Time Stamp is not parsed correctly in the SQL expression.

# Structs

ObjectSelectRequest - represents the input select body.
ParseSelectTokens tokenizes the select query into required Columns, Alias, limit value where clause, aggregate functions, myFunctions, error.
Row is a Struct for keeping track of key aspects of a row.
SelectFuncs contains the relevant values from the parser for S3 Select Functions.

# Type aliases

CSVFileHeaderInfo -Can be either USE IGNORE OR NONE, defines what to do with the first row.
CSVQuoteFields - Can be either Always or AsNeeded.
JSONType determines json input serialization type.
QueryExpressionType - Currently can only be SQL.
SelectCompressionType - ONLY GZIP is supported.