chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
// Copyright 2024 Dolthub, Inc.
|
||||
//
|
||||
// Licensed 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 functions
|
||||
|
||||
// initTypeFunctions initializes all functions related to types in this package.
|
||||
func initTypeFunctions() {
|
||||
initAny()
|
||||
initAnyArray()
|
||||
initAnyElement()
|
||||
initAnyEnum()
|
||||
initAnyNonArray()
|
||||
initArray()
|
||||
initBit()
|
||||
initBool()
|
||||
initBpChar()
|
||||
initBytea()
|
||||
initChar()
|
||||
initDate()
|
||||
initDateBin()
|
||||
initDatePart()
|
||||
initDateTrunc()
|
||||
initDomain()
|
||||
initEnum()
|
||||
initFloat4()
|
||||
initFloat8()
|
||||
initInt2()
|
||||
initInt2vector()
|
||||
initInt4()
|
||||
initInt8()
|
||||
initInternal()
|
||||
initInterval()
|
||||
initJson()
|
||||
initJsonB()
|
||||
initName()
|
||||
initNumeric()
|
||||
initOid()
|
||||
initOidvector()
|
||||
initRecord()
|
||||
initRegclass()
|
||||
initRegproc()
|
||||
initRegtype()
|
||||
initShell()
|
||||
initText()
|
||||
initTime()
|
||||
initTimestamp()
|
||||
initTimestampTZ()
|
||||
initTimeTZ()
|
||||
initUnknown()
|
||||
initUuid()
|
||||
initVarBit()
|
||||
initVarChar()
|
||||
initVoid()
|
||||
initXid()
|
||||
}
|
||||
|
||||
// Init initializes all functions in this package.
|
||||
func Init() {
|
||||
initTypeFunctions()
|
||||
initAbs()
|
||||
initAcos()
|
||||
initAcosd()
|
||||
initAcosh()
|
||||
initAdvisoryLockFunctions()
|
||||
initAge()
|
||||
initArrayLength()
|
||||
initArrayPosition()
|
||||
initArrayToJson()
|
||||
initArrayToString()
|
||||
initArrayUpper()
|
||||
initAscii()
|
||||
initAsin()
|
||||
initAsind()
|
||||
initAsinh()
|
||||
initAtan()
|
||||
initAtan2()
|
||||
initAtan2d()
|
||||
initAtand()
|
||||
initAtanh()
|
||||
initBitLength()
|
||||
initBtrim()
|
||||
initCbrt()
|
||||
initCeil()
|
||||
initCharLength()
|
||||
initChr()
|
||||
initColDescription()
|
||||
initConcat()
|
||||
initCos()
|
||||
initCosd()
|
||||
initCosh()
|
||||
initCot()
|
||||
initCotd()
|
||||
initCurrentDatabase()
|
||||
initCurrentSchema()
|
||||
initCurrentSetting()
|
||||
initCurrentSchemas()
|
||||
initDegrees()
|
||||
initDiv()
|
||||
initDoltProcedures()
|
||||
initDoltRecordTrim()
|
||||
initExp()
|
||||
initExtract()
|
||||
initFactorial()
|
||||
initFloor()
|
||||
initFormatType()
|
||||
initGcd()
|
||||
initGenRandomUuid()
|
||||
initGenerateSeries()
|
||||
initGenerateSubscripts()
|
||||
initInitcap()
|
||||
initLcm()
|
||||
initLeft()
|
||||
initLength()
|
||||
initLn()
|
||||
initLog()
|
||||
initLog10()
|
||||
initLower()
|
||||
initLpad()
|
||||
initLtrim()
|
||||
initMakeTimestamp()
|
||||
initMd5()
|
||||
initMinScale()
|
||||
initMod()
|
||||
initNextVal()
|
||||
initNow()
|
||||
initObjDescription()
|
||||
initOctetLength()
|
||||
initPgEncodingToChar()
|
||||
initPgFunctionIsVisible()
|
||||
initPgGetConstraintdef()
|
||||
initPgGetExpr()
|
||||
initPgGetFunctionIdentityArguments()
|
||||
initPgGetFunctionDef()
|
||||
initPgGetFunctionResult()
|
||||
initPgGetIndexDef()
|
||||
initPgGetPartKeyDef()
|
||||
initPgGetRuledef()
|
||||
initPgGetTriggerDef()
|
||||
initPgGetUserbyid()
|
||||
initPgGetViewDef()
|
||||
initPgIndexesSize()
|
||||
initPgIsInRecovery()
|
||||
initPgPostmasterStartTime()
|
||||
initPgRelationIsPublishable()
|
||||
initPgRelationSize()
|
||||
initPgSleep()
|
||||
initPgGetSerialSequence()
|
||||
initPgGetStatisticsobjdefColumns()
|
||||
initPgStatGetNumscans()
|
||||
initPgTableIsVisible()
|
||||
initPgTableSize()
|
||||
initPgTablespaceLocation()
|
||||
initPgTotalRelationSize()
|
||||
initPgTypeIsVisible()
|
||||
initPi()
|
||||
initPower()
|
||||
initQuoteIdent()
|
||||
initRadians()
|
||||
initRandom()
|
||||
initRepeat()
|
||||
initReplace()
|
||||
initReverse()
|
||||
initRight()
|
||||
initRound()
|
||||
initRowToJson()
|
||||
initRpad()
|
||||
initRtrim()
|
||||
initScale()
|
||||
initSetConfig()
|
||||
initSetVal()
|
||||
initShobjDescription()
|
||||
initSign()
|
||||
initSin()
|
||||
initSind()
|
||||
initSinh()
|
||||
initSplitPart()
|
||||
initSqlConstant()
|
||||
initSqrt()
|
||||
initStrpos()
|
||||
initSubstr()
|
||||
initTan()
|
||||
initTand()
|
||||
initTanh()
|
||||
initTimezone()
|
||||
initToChar()
|
||||
initToHex()
|
||||
initToRegclass()
|
||||
initToRegproc()
|
||||
initToRegtype()
|
||||
initToDate()
|
||||
initToTimestamp()
|
||||
initTranslate()
|
||||
initTrimScale()
|
||||
initTrunc()
|
||||
initTxidCurrent()
|
||||
initUnnest()
|
||||
initUpper()
|
||||
initVersion()
|
||||
initWidthBucket()
|
||||
}
|
||||
Reference in New Issue
Block a user