Documentation ¶
Index ¶
- func ADInSet(AChar byte, ASet TADCharSet) bool
- func AnsiCompareText(str1, str2 string) int
- func AnsiQuotedStr(S string, Quote byte) string
- func Copy(value string, col_ini, qtde_caracteres int) string
- func Exclude[T comparable](slice []T, value T) []T
- func In[T any](valor T, lista []T) bool
- func InIn[T any](lista1 []T, lista2 []T) bool
- func Include[T comparable](slice []T, value T) []T
- func IntToStr(num int) string
- func IsQuotedBase(value string, ACh1, ACh2 byte) bool
- func Move(source []byte, dest []byte, count int)
- func PreprocessSQL(commandtext string, ...) (*TParams, *TMacros, *TMacros, error)
- func QuotedStr(s string) string
- func UnQuoteBase(value string, ACh1, ACh2 byte) string
- type FDException
- type IFDPhysCommand
- type NameQuoteSides
- type TADCharSet
- type TCommandKind
- type TConnectionMetadata
- func (cm *TConnectionMetadata) AddEscapeSequenceArgs(ASeq *TEscapeData) string
- func (cm *TConnectionMetadata) EncodeObjName(AParsedName TParsedName, ACommand IFDPhysCommand, AOpts TEncodeOptions) string
- func (cm *TConnectionMetadata) EscapeFuncToID(ASeq *TEscapeData) error
- func (cm *TConnectionMetadata) GetNameParts() TNameParts
- func (cm *TConnectionMetadata) GetNameQuoteChar(AQuote TNameQuoteLevel, ASide TNameQuoteSide) byte
- func (cm *TConnectionMetadata) InternalEscapeBoolean(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeDate(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeDateTime(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeEscape(AEscape byte, AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeFloat(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeFunction(ASeq *TEscapeData) string
- func (cm *TConnectionMetadata) InternalEscapeInto(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeString(AStr string) string
- func (cm *TConnectionMetadata) InternalEscapeTime(AStr string) string
- func (cm *TConnectionMetadata) TranslateEscapeSequence(seq *TEscapeData) (string, error)
- type TDBMSKind
- type TDBMSKinds
- type TEncodeOption
- type TEncodeOptions
- type TEscapeData
- type TEscapeFunction
- type TEscapeKind
- type TListByte
- type TMacro
- type TMacros
- type TNamePart
- type TNameParts
- type TNameQuoteLevel
- type TNameQuoteLevels
- type TNameQuoteSide
- type TParam
- type TParamBindMode
- type TParamMark
- type TParamType
- type TParamTypes
- type TParams
- type TParsedName
- type TPhysPreprocessor
- func (pp *TPhysPreprocessor) Commit(ASkip int)
- func (pp *TPhysPreprocessor) Execute() error
- func (pp *TPhysPreprocessor) GetChar() byte
- func (pp *TPhysPreprocessor) Missed(AStr string) error
- func (pp *TPhysPreprocessor) PopWriter() string
- func (pp *TPhysPreprocessor) ProcessCommand() (string, error)
- func (pp *TPhysPreprocessor) ProcessEscape() (TEscapeKind, error)
- func (pp *TPhysPreprocessor) ProcessIdentifier(ADotAllowed bool, AIsQuoted *bool) (string, error)
- func (pp *TPhysPreprocessor) ProcessMacro(AFirstCh byte) error
- func (pp *TPhysPreprocessor) ProcessParam() error
- func (pp *TPhysPreprocessor) ProcessQuestion()
- func (pp *TPhysPreprocessor) ProcessQuoteTag()
- func (pp *TPhysPreprocessor) PushWriter()
- func (pp *TPhysPreprocessor) PutBack()
- func (pp *TPhysPreprocessor) SkipWS()
- func (pp *TPhysPreprocessor) TranslateEscape(aEscape *TEscapeData) (string, error)
- func (pp *TPhysPreprocessor) UnCommit(AChars int)
- func (pp *TPhysPreprocessor) WriteStr(AStr string)
- type TPreprocessorInstr
- type TPreprocessorInstrs
- type TStrings
- type TTextEndOfLine
- type TTextEndOfLines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ADInSet ¶
func ADInSet(AChar byte, ASet TADCharSet) bool
ADInSet verifica se um caractere está presente em um conjunto de caracteres
func AnsiCompareText ¶
func AnsiQuotedStr ¶
func Exclude ¶
func Exclude[T comparable](slice []T, value T) []T
func Include ¶
func Include[T comparable](slice []T, value T) []T
Include adds a given value to a slice, if it doesn't already exist.
func IsQuotedBase ¶
func PreprocessSQL ¶
func PreprocessSQL(commandtext string, ACreateParams, ACreateMacros, AExpandMacros, AExpandEscape, AParseSQL bool) (*TParams, *TMacros, *TMacros, error)
PreprocessSQL:
PreprocessSQL(commandtext string)(Params, MacrosUpd, MacrosRead,Errors)
func UnQuoteBase ¶
Types ¶
type FDException ¶
type FDException struct {
Msg string
}
func NewFDException ¶
func NewFDException(msg string) FDException
func (FDException) Error ¶
func (e FDException) Error() string
type IFDPhysCommand ¶
type IFDPhysCommand interface { }
type NameQuoteSides ¶
type NameQuoteSides []TNameQuoteSide
type TADCharSet ¶
type TCommandKind ¶
type TCommandKind int
type TConnectionMetadata ¶
type TConnectionMetadata struct { }
func NewConnectionMetadata ¶
func NewConnectionMetadata() *TConnectionMetadata
func (*TConnectionMetadata) AddEscapeSequenceArgs ¶
func (cm *TConnectionMetadata) AddEscapeSequenceArgs(ASeq *TEscapeData) string
func (*TConnectionMetadata) EncodeObjName ¶
func (cm *TConnectionMetadata) EncodeObjName(AParsedName TParsedName, ACommand IFDPhysCommand, AOpts TEncodeOptions) string
func (*TConnectionMetadata) EscapeFuncToID ¶
func (cm *TConnectionMetadata) EscapeFuncToID(ASeq *TEscapeData) error
func (*TConnectionMetadata) GetNameParts ¶
func (cm *TConnectionMetadata) GetNameParts() TNameParts
func (*TConnectionMetadata) GetNameQuoteChar ¶
func (cm *TConnectionMetadata) GetNameQuoteChar(AQuote TNameQuoteLevel, ASide TNameQuoteSide) byte
func (*TConnectionMetadata) InternalEscapeBoolean ¶
func (cm *TConnectionMetadata) InternalEscapeBoolean(AStr string) string
func (*TConnectionMetadata) InternalEscapeDate ¶
func (cm *TConnectionMetadata) InternalEscapeDate(AStr string) string
func (*TConnectionMetadata) InternalEscapeDateTime ¶
func (cm *TConnectionMetadata) InternalEscapeDateTime(AStr string) string
func (*TConnectionMetadata) InternalEscapeEscape ¶
func (cm *TConnectionMetadata) InternalEscapeEscape(AEscape byte, AStr string) string
func (*TConnectionMetadata) InternalEscapeFloat ¶
func (cm *TConnectionMetadata) InternalEscapeFloat(AStr string) string
func (*TConnectionMetadata) InternalEscapeFunction ¶
func (cm *TConnectionMetadata) InternalEscapeFunction(ASeq *TEscapeData) string
func (*TConnectionMetadata) InternalEscapeInto ¶
func (cm *TConnectionMetadata) InternalEscapeInto(AStr string) string
func (*TConnectionMetadata) InternalEscapeString ¶
func (cm *TConnectionMetadata) InternalEscapeString(AStr string) string
func (*TConnectionMetadata) InternalEscapeTime ¶
func (cm *TConnectionMetadata) InternalEscapeTime(AStr string) string
func (*TConnectionMetadata) TranslateEscapeSequence ¶
func (cm *TConnectionMetadata) TranslateEscapeSequence(seq *TEscapeData) (string, error)
type TDBMSKinds ¶
type TDBMSKinds []TDBMSKind
type TEncodeOption ¶
type TEncodeOption int
type TEncodeOptions ¶
type TEncodeOptions []TEncodeOption
type TEscapeData ¶
type TEscapeData struct { Kind TEscapeKind Args TStrings Name string Func TEscapeFunction }
func NewEscapedData ¶
func NewEscapedData() *TEscapeData
type TEscapeFunction ¶
type TEscapeFunction int
type TEscapeKind ¶
type TEscapeKind int
type TNameParts ¶
type TNameParts []TNamePart
type TNameQuoteLevel ¶
type TNameQuoteLevel int
type TNameQuoteLevels ¶
type TNameQuoteLevels []TNameQuoteLevel
func NewTNameQuoteLevels ¶
func NewTNameQuoteLevels() TNameQuoteLevels
type TNameQuoteSide ¶
type TNameQuoteSide int
type TParam ¶
type TParam struct { Index int Name string Position int IsCaseSensitive bool ParamType TParamType }
type TParamBindMode ¶
type TParamBindMode int
type TParamMark ¶
type TParamMark int
type TParamType ¶
type TParamType int
type TParamTypes ¶
type TParamTypes []TParamType
type TParams ¶
type TParams struct { Items []*TParam BindMode TParamBindMode Markers TStrings }
type TParsedName ¶
type TPhysPreprocessor ¶
type TPhysPreprocessor struct { Source string Destination string Kind TDBMSKind //----------------------------- Params *TParams MacrosUpd *TMacros MacrosRead *TMacros Markers TStrings Instrs TPreprocessorInstrs ConnMetadata *TConnectionMetadata Nested bool // contains filtered or unexported fields }
func NewPhysPreprocessor ¶
func NewPhysPreprocessor() *TPhysPreprocessor
func (*TPhysPreprocessor) Commit ¶
func (pp *TPhysPreprocessor) Commit(ASkip int)
func (*TPhysPreprocessor) Execute ¶
func (pp *TPhysPreprocessor) Execute() error
func (*TPhysPreprocessor) GetChar ¶
func (pp *TPhysPreprocessor) GetChar() byte
func (*TPhysPreprocessor) Missed ¶
func (pp *TPhysPreprocessor) Missed(AStr string) error
func (*TPhysPreprocessor) PopWriter ¶
func (pp *TPhysPreprocessor) PopWriter() string
func (*TPhysPreprocessor) ProcessCommand ¶
func (pp *TPhysPreprocessor) ProcessCommand() (string, error)
func (*TPhysPreprocessor) ProcessEscape ¶
func (pp *TPhysPreprocessor) ProcessEscape() (TEscapeKind, error)
func (*TPhysPreprocessor) ProcessIdentifier ¶
func (pp *TPhysPreprocessor) ProcessIdentifier(ADotAllowed bool, AIsQuoted *bool) (string, error)
func (*TPhysPreprocessor) ProcessMacro ¶
func (pp *TPhysPreprocessor) ProcessMacro(AFirstCh byte) error
func (*TPhysPreprocessor) ProcessParam ¶
func (pp *TPhysPreprocessor) ProcessParam() error
func (*TPhysPreprocessor) ProcessQuestion ¶
func (pp *TPhysPreprocessor) ProcessQuestion()
func (*TPhysPreprocessor) ProcessQuoteTag ¶
func (pp *TPhysPreprocessor) ProcessQuoteTag()
func (*TPhysPreprocessor) PushWriter ¶
func (pp *TPhysPreprocessor) PushWriter()
func (*TPhysPreprocessor) PutBack ¶
func (pp *TPhysPreprocessor) PutBack()
func (*TPhysPreprocessor) SkipWS ¶
func (pp *TPhysPreprocessor) SkipWS()
func (*TPhysPreprocessor) TranslateEscape ¶
func (pp *TPhysPreprocessor) TranslateEscape(aEscape *TEscapeData) (string, error)
func (*TPhysPreprocessor) UnCommit ¶
func (pp *TPhysPreprocessor) UnCommit(AChars int)
func (*TPhysPreprocessor) WriteStr ¶
func (pp *TPhysPreprocessor) WriteStr(AStr string)
type TPreprocessorInstr ¶
type TPreprocessorInstr int
type TPreprocessorInstrs ¶
type TPreprocessorInstrs []TPreprocessorInstr
func (*TPreprocessorInstrs) Add ¶
func (L *TPreprocessorInstrs) Add(value TPreprocessorInstr)
func (*TPreprocessorInstrs) Clear ¶
func (L *TPreprocessorInstrs) Clear()
func (*TPreprocessorInstrs) Remove ¶
func (L *TPreprocessorInstrs) Remove(value TPreprocessorInstr)
func (*TPreprocessorInstrs) Removes ¶
func (L *TPreprocessorInstrs) Removes(value TPreprocessorInstrs)
type TTextEndOfLine ¶
type TTextEndOfLine int
type TTextEndOfLines ¶
type TTextEndOfLines []TTextEndOfLine
Click to show internal directories.
Click to hide internal directories.