duckdb-ffi-2.0.0.0: generated/Database/DuckDB/FFI.hs
-- | Raw bindings to the DuckDB C API in @duckdb.h@ and @duckdb_arrow.h@.
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_HADDOCK prune #-}
module Database.DuckDB.FFI
( Database.DuckDB.FFI.dUCKDB_API_VERSION_MAJOR
, Database.DuckDB.FFI.dUCKDB_API_VERSION_MINOR
, Database.DuckDB.FFI.dUCKDB_API_VERSION_PATCH
, Database.DuckDB.FFI.dUCKDB_API_ALLOW_DEPRECATED
, Database.DuckDB.FFI.dUCKDB_API_ALLOW_UNSTABLE
, Database.DuckDB.FFI.Duckdb_string_t_value_pointer(..)
, Database.DuckDB.FFI.Duckdb_string_t_value_inlined(..)
, Database.DuckDB.FFI.Duckdb_string_t_value(..)
, Database.DuckDB.FFI.DuckDBStringT(..)
, Database.DuckDB.FFI.DuckDBState(..)
, pattern Database.DuckDB.FFI.DuckDBSuccess
, pattern Database.DuckDB.FFI.DuckDBError
, Database.DuckDB.FFI.DuckDBIdx(..)
, Database.DuckDB.FFI.DuckDBType(..)
, pattern Database.DuckDB.FFI.DuckDBTypeInvalid
, pattern Database.DuckDB.FFI.DuckDBTypeBoolean
, pattern Database.DuckDB.FFI.DuckDBTypeTinyInt
, pattern Database.DuckDB.FFI.DuckDBTypeSmallInt
, pattern Database.DuckDB.FFI.DuckDBTypeInteger
, pattern Database.DuckDB.FFI.DuckDBTypeBigInt
, pattern Database.DuckDB.FFI.DuckDBTypeUTinyInt
, pattern Database.DuckDB.FFI.DuckDBTypeUSmallInt
, pattern Database.DuckDB.FFI.DuckDBTypeUInteger
, pattern Database.DuckDB.FFI.DuckDBTypeUBigInt
, pattern Database.DuckDB.FFI.DuckDBTypeFloat
, pattern Database.DuckDB.FFI.DuckDBTypeDouble
, pattern Database.DuckDB.FFI.DuckDBTypeTimestamp
, pattern Database.DuckDB.FFI.DuckDBTypeDate
, pattern Database.DuckDB.FFI.DuckDBTypeTime
, pattern Database.DuckDB.FFI.DuckDBTypeInterval
, pattern Database.DuckDB.FFI.DuckDBTypeHugeInt
, pattern Database.DuckDB.FFI.DuckDBTypeVarchar
, pattern Database.DuckDB.FFI.DuckDBTypeBlob
, pattern Database.DuckDB.FFI.DuckDBTypeDecimal
, pattern Database.DuckDB.FFI.DuckDBTypeTimestampS
, pattern Database.DuckDB.FFI.DuckDBTypeTimestampMs
, pattern Database.DuckDB.FFI.DuckDBTypeTimestampNs
, pattern Database.DuckDB.FFI.DuckDBTypeEnum
, pattern Database.DuckDB.FFI.DuckDBTypeList
, pattern Database.DuckDB.FFI.DuckDBTypeStruct
, pattern Database.DuckDB.FFI.DuckDBTypeMap
, pattern Database.DuckDB.FFI.DuckDBTypeUUID
, pattern Database.DuckDB.FFI.DuckDBTypeUnion
, pattern Database.DuckDB.FFI.DuckDBTypeBit
, pattern Database.DuckDB.FFI.DuckDBTypeTimeTz
, pattern Database.DuckDB.FFI.DuckDBTypeTimestampTz
, pattern Database.DuckDB.FFI.DuckDBTypeUHugeInt
, pattern Database.DuckDB.FFI.DuckDBTypeArray
, pattern Database.DuckDB.FFI.DuckDBTypeAny
, pattern Database.DuckDB.FFI.DuckDBTypeBigNum
, pattern Database.DuckDB.FFI.DuckDBTypeSQLNull
, pattern Database.DuckDB.FFI.DuckDBTypeStringLiteral
, pattern Database.DuckDB.FFI.DuckDBTypeIntegerLiteral
, pattern Database.DuckDB.FFI.DuckDBTypeTimeNs
, pattern Database.DuckDB.FFI.DuckDBTypeGeometry
, pattern Database.DuckDB.FFI.DuckDBTypeVariant
, pattern Database.DuckDB.FFI.DuckDBTypeTimestampTzNs
, Database.DuckDB.FFI.DuckDBPendingState(..)
, pattern Database.DuckDB.FFI.DuckDBPendingResultReady
, pattern Database.DuckDB.FFI.DuckDBPendingResultNotReady
, pattern Database.DuckDB.FFI.DuckDBPendingError
, pattern Database.DuckDB.FFI.DuckDBPendingNoTasksAvailable
, Database.DuckDB.FFI.DuckDBResultType(..)
, pattern Database.DuckDB.FFI.DuckDBResultTypeInvalid
, pattern Database.DuckDB.FFI.DuckDBResultTypeChangedRows
, pattern Database.DuckDB.FFI.DuckDBResultTypeNothing
, pattern Database.DuckDB.FFI.DuckDBResultTypeQueryResult
, Database.DuckDB.FFI.DuckDBStatementType(..)
, pattern Database.DuckDB.FFI.DuckDBStatementTypeInvalid
, pattern Database.DuckDB.FFI.DuckDBStatementTypeSelect
, pattern Database.DuckDB.FFI.DuckDBStatementTypeInsert
, pattern Database.DuckDB.FFI.DuckDBStatementTypeUpdate
, pattern Database.DuckDB.FFI.DuckDBStatementTypeExplain
, pattern Database.DuckDB.FFI.DuckDBStatementTypeDelete
, pattern Database.DuckDB.FFI.DuckDBStatementTypePrepare
, pattern Database.DuckDB.FFI.DuckDBStatementTypeCreate
, pattern Database.DuckDB.FFI.DuckDBStatementTypeExecute
, pattern Database.DuckDB.FFI.DuckDBStatementTypeAlter
, pattern Database.DuckDB.FFI.DuckDBStatementTypeTransaction
, pattern Database.DuckDB.FFI.DuckDBStatementTypeCopy
, pattern Database.DuckDB.FFI.DuckDBStatementTypeAnalyze
, pattern Database.DuckDB.FFI.DuckDBStatementTypeVariableSet
, pattern Database.DuckDB.FFI.DuckDBStatementTypeCreateFunc
, pattern Database.DuckDB.FFI.DuckDBStatementTypeDrop
, pattern Database.DuckDB.FFI.DuckDBStatementTypeExport
, pattern Database.DuckDB.FFI.DuckDBStatementTypePragma
, pattern Database.DuckDB.FFI.DuckDBStatementTypeVacuum
, pattern Database.DuckDB.FFI.DuckDBStatementTypeCall
, pattern Database.DuckDB.FFI.DuckDBStatementTypeSet
, pattern Database.DuckDB.FFI.DuckDBStatementTypeLoad
, pattern Database.DuckDB.FFI.DuckDBStatementTypeRelation
, pattern Database.DuckDB.FFI.DuckDBStatementTypeExtension
, pattern Database.DuckDB.FFI.DuckDBStatementTypeLogicalPlan
, pattern Database.DuckDB.FFI.DuckDBStatementTypeAttach
, pattern Database.DuckDB.FFI.DuckDBStatementTypeDetach
, pattern Database.DuckDB.FFI.DuckDBStatementTypeMulti
, pattern Database.DuckDB.FFI.DuckDBStatementTypeCopyDatabase
, pattern Database.DuckDB.FFI.DuckDBStatementTypeUpdateExtensions
, pattern Database.DuckDB.FFI.DuckDBStatementTypeMergeInto
, Database.DuckDB.FFI.DuckDBErrorType(..)
, pattern Database.DuckDB.FFI.DuckDBErrorInvalid
, pattern Database.DuckDB.FFI.DuckDBErrorOutOfRange
, pattern Database.DuckDB.FFI.DuckDBErrorConversion
, pattern Database.DuckDB.FFI.DuckDBErrorUnknownType
, pattern Database.DuckDB.FFI.DuckDBErrorDecimal
, pattern Database.DuckDB.FFI.DuckDBErrorMismatchType
, pattern Database.DuckDB.FFI.DuckDBErrorDivideByZero
, pattern Database.DuckDB.FFI.DuckDBErrorObjectSize
, pattern Database.DuckDB.FFI.DuckDBErrorInvalidType
, pattern Database.DuckDB.FFI.DuckDBErrorSerialization
, pattern Database.DuckDB.FFI.DuckDBErrorTransaction
, pattern Database.DuckDB.FFI.DuckDBErrorNotImplemented
, pattern Database.DuckDB.FFI.DuckDBErrorExpression
, pattern Database.DuckDB.FFI.DuckDBErrorCatalog
, pattern Database.DuckDB.FFI.DuckDBErrorParser
, pattern Database.DuckDB.FFI.DuckDBErrorPlanner
, pattern Database.DuckDB.FFI.DuckDBErrorScheduler
, pattern Database.DuckDB.FFI.DuckDBErrorExecutor
, pattern Database.DuckDB.FFI.DuckDBErrorConstraint
, pattern Database.DuckDB.FFI.DuckDBErrorIndex
, pattern Database.DuckDB.FFI.DuckDBErrorStat
, pattern Database.DuckDB.FFI.DuckDBErrorConnection
, pattern Database.DuckDB.FFI.DuckDBErrorSyntax
, pattern Database.DuckDB.FFI.DuckDBErrorSettings
, pattern Database.DuckDB.FFI.DuckDBErrorBinder
, pattern Database.DuckDB.FFI.DuckDBErrorNetwork
, pattern Database.DuckDB.FFI.DuckDBErrorOptimizer
, pattern Database.DuckDB.FFI.DuckDBErrorNullPointer
, pattern Database.DuckDB.FFI.DuckDBErrorIO
, pattern Database.DuckDB.FFI.DuckDBErrorInterrupt
, pattern Database.DuckDB.FFI.DuckDBErrorFatal
, pattern Database.DuckDB.FFI.DuckDBErrorInternal
, pattern Database.DuckDB.FFI.DuckDBErrorInvalidInput
, pattern Database.DuckDB.FFI.DuckDBErrorOutOfMemory
, pattern Database.DuckDB.FFI.DuckDBErrorPermission
, pattern Database.DuckDB.FFI.DuckDBErrorParameterNotResolved
, pattern Database.DuckDB.FFI.DuckDBErrorParameterNotAllowed
, pattern Database.DuckDB.FFI.DuckDBErrorDependency
, pattern Database.DuckDB.FFI.DuckDBErrorHTTP
, pattern Database.DuckDB.FFI.DuckDBErrorMissingExtension
, pattern Database.DuckDB.FFI.DuckDBErrorAutoload
, pattern Database.DuckDB.FFI.DuckDBErrorSequence
, pattern Database.DuckDB.FFI.DuckDBErrorDataCorruption
, pattern Database.DuckDB.FFI.DuckDBInvalidConfiguration
, pattern Database.DuckDB.FFI.DuckDBErrorResourceInUse
, Database.DuckDB.FFI.DuckDBCastMode(..)
, pattern Database.DuckDB.FFI.DuckDBCastNormal
, pattern Database.DuckDB.FFI.DuckDBCastTry
, Database.DuckDB.FFI.DuckDBFileFlag(..)
, pattern Database.DuckDB.FFI.DuckDBFileFlagInvalid
, pattern Database.DuckDB.FFI.DuckDBFileFlagRead
, pattern Database.DuckDB.FFI.DuckDBFileFlagWrite
, pattern Database.DuckDB.FFI.DuckDBFileFlagCreate
, pattern Database.DuckDB.FFI.DuckDBFileFlagCreateNew
, pattern Database.DuckDB.FFI.DuckDBFileFlagAppend
, Database.DuckDB.FFI.DuckDBConfigOptionScope(..)
, pattern Database.DuckDB.FFI.DuckDBConfigOptionScopeInvalid
, pattern Database.DuckDB.FFI.DuckDBConfigOptionScopeLocal
, pattern Database.DuckDB.FFI.DuckDBConfigOptionScopeSession
, pattern Database.DuckDB.FFI.DuckDBConfigOptionScopeGlobal
, Database.DuckDB.FFI.DuckDBCatalogEntryType(..)
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeInvalid
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeTable
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeSchema
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeView
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeIndex
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypePreparedStatement
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeSequence
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeCollation
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeType
, pattern Database.DuckDB.FFI.DuckDBCatalogEntryTypeDatabase
, Database.DuckDB.FFI.DuckDBTypeAlias(..)
, Database.DuckDB.FFI.DuckDBDate(..)
, Database.DuckDB.FFI.DuckDBDateStruct(..)
, Database.DuckDB.FFI.DuckDBTime(..)
, Database.DuckDB.FFI.DuckDBTimeStruct(..)
, Database.DuckDB.FFI.DuckDBTimeNs(..)
, Database.DuckDB.FFI.DuckDBTimeTz(..)
, Database.DuckDB.FFI.DuckDBTimeTzStruct(..)
, Database.DuckDB.FFI.DuckDBTimestamp(..)
, Database.DuckDB.FFI.DuckDBTimestampStruct(..)
, Database.DuckDB.FFI.DuckDBTimestampS(..)
, Database.DuckDB.FFI.DuckDBTimestampMs(..)
, Database.DuckDB.FFI.DuckDBTimestampNs(..)
, Database.DuckDB.FFI.DuckDBInterval(..)
, Database.DuckDB.FFI.DuckDBHugeInt(..)
, Database.DuckDB.FFI.DuckDBUHugeInt(..)
, Database.DuckDB.FFI.DuckDBDecimal(..)
, Database.DuckDB.FFI.DuckDBQueryProgress(..)
, Database.DuckDB.FFI.DuckDBListEntry(..)
, Database.DuckDB.FFI.DuckDBColumn(..)
, Database.DuckDB.FFI.DuckDBString(..)
, Database.DuckDB.FFI.DuckDBBlob(..)
, Database.DuckDB.FFI.DuckDBBit(..)
, Database.DuckDB.FFI.DuckDBBignum(..)
, Database.DuckDB.FFI.DuckDBResult(..)
, Database.DuckDB.FFI.DuckDBInstanceCacheStruct
, Database.DuckDB.FFI.DuckDBInstanceCache(..)
, Database.DuckDB.FFI.DuckDBDatabaseStruct
, Database.DuckDB.FFI.DuckDBDatabase(..)
, Database.DuckDB.FFI.DuckDBConnectionStruct
, Database.DuckDB.FFI.DuckDBConnection(..)
, Database.DuckDB.FFI.DuckDBClientContextStruct
, Database.DuckDB.FFI.DuckDBClientContext(..)
, Database.DuckDB.FFI.DuckDBPreparedStatementStruct
, Database.DuckDB.FFI.DuckDBPreparedStatement(..)
, Database.DuckDB.FFI.DuckDBExtractedStatementsStruct
, Database.DuckDB.FFI.DuckDBExtractedStatements(..)
, Database.DuckDB.FFI.DuckDBPendingResultStruct
, Database.DuckDB.FFI.DuckDBPendingResult(..)
, Database.DuckDB.FFI.DuckDBAppenderStruct
, Database.DuckDB.FFI.DuckDBAppender(..)
, Database.DuckDB.FFI.DuckDBTableDescriptionStruct
, Database.DuckDB.FFI.DuckDBTableDescription(..)
, Database.DuckDB.FFI.DuckDBConfigStruct
, Database.DuckDB.FFI.DuckDBConfig(..)
, Database.DuckDB.FFI.DuckDBConfigOptionStruct
, Database.DuckDB.FFI.DuckDBConfigOption(..)
, Database.DuckDB.FFI.DuckDBLogicalTypeStruct
, Database.DuckDB.FFI.DuckDBLogicalType(..)
, Database.DuckDB.FFI.DuckDBCreateTypeInfoStruct
, Database.DuckDB.FFI.DuckDBCreateTypeInfo(..)
, Database.DuckDB.FFI.DuckDBDataChunkStruct
, Database.DuckDB.FFI.DuckDBDataChunk(..)
, Database.DuckDB.FFI.DuckDBValueStruct
, Database.DuckDB.FFI.DuckDBValue(..)
, Database.DuckDB.FFI.DuckDBProfilingInfoStruct
, Database.DuckDB.FFI.DuckDBProfilingInfo(..)
, Database.DuckDB.FFI.DuckDBErrorDataStruct
, Database.DuckDB.FFI.DuckDBErrorData(..)
, Database.DuckDB.FFI.DuckDBExpressionStruct
, Database.DuckDB.FFI.DuckDBExpression(..)
, Database.DuckDB.FFI.DuckDBVectorStruct
, Database.DuckDB.FFI.DuckDBVector(..)
, Database.DuckDB.FFI.DuckDBSelectionVectorStruct
, Database.DuckDB.FFI.DuckDBSelectionVector(..)
, Database.DuckDB.FFI.DuckDBArrowOptionsStruct
, Database.DuckDB.FFI.DuckDBArrowOptions(..)
, Database.DuckDB.FFI.DuckDBArrowStruct
, Database.DuckDB.FFI.DuckDBArrow(..)
, Database.DuckDB.FFI.DuckDBArrowStreamStruct
, Database.DuckDB.FFI.DuckDBArrowStream(..)
, Database.DuckDB.FFI.DuckDBArrowSchemaStruct
, Database.DuckDB.FFI.DuckDBArrowSchema(..)
, Database.DuckDB.FFI.DuckDBArrowArrayStruct
, Database.DuckDB.FFI.DuckDBArrowArray(..)
, Database.DuckDB.FFI.DuckDBArrowConvertedSchemaStruct
, Database.DuckDB.FFI.DuckDBArrowConvertedSchema(..)
, Database.DuckDB.FFI.DuckDBFileOpenOptionsStruct
, Database.DuckDB.FFI.DuckDBFileOpenOptions(..)
, Database.DuckDB.FFI.DuckDBFileSystemStruct
, Database.DuckDB.FFI.DuckDBFileSystem(..)
, Database.DuckDB.FFI.DuckDBFileHandleStruct
, Database.DuckDB.FFI.DuckDBFileHandle(..)
, Database.DuckDB.FFI.DuckDBCatalogStruct
, Database.DuckDB.FFI.DuckDBCatalog(..)
, Database.DuckDB.FFI.DuckDBCatalogEntryStruct
, Database.DuckDB.FFI.DuckDBCatalogEntry(..)
, Database.DuckDB.FFI.DuckDBTaskState(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionStruct
, Database.DuckDB.FFI.DuckDBScalarFunction(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionSetStruct
, Database.DuckDB.FFI.DuckDBScalarFunctionSet(..)
, Database.DuckDB.FFI.DuckDBAggregateFunctionStruct
, Database.DuckDB.FFI.DuckDBAggregateFunction(..)
, Database.DuckDB.FFI.DuckDBAggregateFunctionSetStruct
, Database.DuckDB.FFI.DuckDBAggregateFunctionSet(..)
, Database.DuckDB.FFI.DuckDBAggregateStateStruct
, Database.DuckDB.FFI.DuckDBAggregateState(..)
, Database.DuckDB.FFI.DuckDBTableFunctionStruct
, Database.DuckDB.FFI.DuckDBTableFunction(..)
, Database.DuckDB.FFI.DuckDBCastFunctionStruct
, Database.DuckDB.FFI.DuckDBCastFunction(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionStruct
, Database.DuckDB.FFI.DuckDBCopyFunction(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionBindInfoStruct
, Database.DuckDB.FFI.DuckDBCopyFunctionBindInfo(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionGlobalInitInfoStruct
, Database.DuckDB.FFI.DuckDBCopyFunctionGlobalInitInfo(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionSinkInfoStruct
, Database.DuckDB.FFI.DuckDBCopyFunctionSinkInfo(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionFinalizeInfoStruct
, Database.DuckDB.FFI.DuckDBCopyFunctionFinalizeInfo(..)
, Database.DuckDB.FFI.DuckDBReplacementScanInfoStruct
, Database.DuckDB.FFI.DuckDBReplacementScanInfo(..)
, Database.DuckDB.FFI.DuckDBLogStorageStruct
, Database.DuckDB.FFI.DuckDBLogStorage(..)
, Database.DuckDB.FFI.DuckDBFunctionInfoStruct
, Database.DuckDB.FFI.DuckDBFunctionInfo(..)
, Database.DuckDB.FFI.DuckDBBindInfoStruct
, Database.DuckDB.FFI.DuckDBBindInfo(..)
, Database.DuckDB.FFI.DuckDBInitInfoStruct
, Database.DuckDB.FFI.DuckDBInitInfo(..)
, Database.DuckDB.FFI.DuckDBExtensionInfoStruct
, Database.DuckDB.FFI.DuckDBExtensionInfo(..)
, Database.DuckDB.FFI.DuckDBSel(..)
, Database.DuckDB.FFI.DuckDBDeleteCallback_Aux(..)
, Database.DuckDB.FFI.DuckDBDeleteCallback(..)
, Database.DuckDB.FFI.DuckDBCopyCallback_Aux(..)
, Database.DuckDB.FFI.DuckDBCopyCallback(..)
, Database.DuckDB.FFI.DuckDBTableFunctionBindFun_Aux(..)
, Database.DuckDB.FFI.DuckDBTableFunctionBindFun(..)
, Database.DuckDB.FFI.DuckDBTableFunctionInitFun_Aux(..)
, Database.DuckDB.FFI.DuckDBTableFunctionInitFun(..)
, Database.DuckDB.FFI.DuckDBTableFunctionFun_Aux(..)
, Database.DuckDB.FFI.DuckDBTableFunctionFun(..)
, Database.DuckDB.FFI.DuckDBReplacementCallback_Aux(..)
, Database.DuckDB.FFI.DuckDBReplacementCallback(..)
, Database.DuckDB.FFI.DuckDBLoggerWriteLogEntryFun_Aux(..)
, Database.DuckDB.FFI.DuckDBLoggerWriteLogEntryFun(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionSinkFun_Aux(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionSinkFun(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionFinalizeFun_Aux(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionFinalizeFun(..)
, Database.DuckDB.FFI.DuckDBAggregateStateSizeFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateStateSizeFun(..)
, Database.DuckDB.FFI.DuckDBAggregateInitFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateInitFun(..)
, Database.DuckDB.FFI.DuckDBAggregateDestroyFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateDestroyFun(..)
, Database.DuckDB.FFI.DuckDBAggregateUpdateFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateUpdateFun(..)
, Database.DuckDB.FFI.DuckDBAggregateCombineFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateCombineFun(..)
, Database.DuckDB.FFI.DuckDBAggregateFinalizeFun_Aux(..)
, Database.DuckDB.FFI.DuckDBAggregateFinalizeFun(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionBindFun_Aux(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionBindFun(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionInitFun_Aux(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionInitFun(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionFun_Aux(..)
, Database.DuckDB.FFI.DuckDBScalarFunctionFun(..)
, Database.DuckDB.FFI.DuckDBCastFunctionFun_Aux(..)
, Database.DuckDB.FFI.DuckDBCastFunctionFun(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionBindFun_Aux(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionBindFun(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionGlobalInitFun_Aux(..)
, Database.DuckDB.FFI.DuckDBCopyFunctionGlobalInitFun(..)
, Database.DuckDB.FFI.DuckDBExtensionAccess(..)
, Database.DuckDB.FFI.ArrowSchema(..)
, Database.DuckDB.FFI.ArrowArray(..)
, Database.DuckDB.FFI.ArrowArrayStream(..)
, Database.DuckDB.FFI.c_duckdb_from_date
, Database.DuckDB.FFI.c_duckdb_to_date
, Database.DuckDB.FFI.c_duckdb_is_finite_date
, Database.DuckDB.FFI.c_duckdb_from_time
, Database.DuckDB.FFI.c_duckdb_create_time_tz
, Database.DuckDB.FFI.c_duckdb_from_time_tz
, Database.DuckDB.FFI.c_duckdb_to_time
, Database.DuckDB.FFI.c_duckdb_from_timestamp
, Database.DuckDB.FFI.c_duckdb_to_timestamp
, Database.DuckDB.FFI.c_duckdb_is_finite_timestamp
, Database.DuckDB.FFI.c_duckdb_is_finite_timestamp_s
, Database.DuckDB.FFI.c_duckdb_is_finite_timestamp_ms
, Database.DuckDB.FFI.c_duckdb_is_finite_timestamp_ns
, Database.DuckDB.FFI.c_duckdb_hugeint_to_double
, Database.DuckDB.FFI.c_duckdb_double_to_hugeint
, Database.DuckDB.FFI.c_duckdb_uhugeint_to_double
, Database.DuckDB.FFI.c_duckdb_double_to_uhugeint
, Database.DuckDB.FFI.c_duckdb_double_to_decimal
, Database.DuckDB.FFI.c_duckdb_decimal_to_double
, Database.DuckDB.FFI.c_duckdb_create_aggregate_function
, Database.DuckDB.FFI.c_duckdb_destroy_aggregate_function
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_name
, Database.DuckDB.FFI.c_duckdb_aggregate_function_add_parameter
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_return_type
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_functions
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_destructor
, Database.DuckDB.FFI.c_duckdb_register_aggregate_function
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_special_handling
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_extra_info
, Database.DuckDB.FFI.c_duckdb_aggregate_function_get_extra_info
, Database.DuckDB.FFI.c_duckdb_aggregate_function_set_error
, Database.DuckDB.FFI.c_duckdb_create_aggregate_function_set
, Database.DuckDB.FFI.c_duckdb_destroy_aggregate_function_set
, Database.DuckDB.FFI.c_duckdb_add_aggregate_function_to_set
, Database.DuckDB.FFI.c_duckdb_register_aggregate_function_set
, Database.DuckDB.FFI.c_duckdb_appender_create
, Database.DuckDB.FFI.c_duckdb_appender_create_ext
, Database.DuckDB.FFI.c_duckdb_appender_create_query
, Database.DuckDB.FFI.c_duckdb_appender_column_count
, Database.DuckDB.FFI.c_duckdb_appender_column_type
, Database.DuckDB.FFI.c_duckdb_appender_error_data
, Database.DuckDB.FFI.c_duckdb_appender_flush
, Database.DuckDB.FFI.c_duckdb_appender_clear
, Database.DuckDB.FFI.c_duckdb_appender_close
, Database.DuckDB.FFI.c_duckdb_appender_destroy
, Database.DuckDB.FFI.c_duckdb_appender_add_column
, Database.DuckDB.FFI.c_duckdb_appender_clear_columns
, Database.DuckDB.FFI.c_duckdb_appender_begin_row
, Database.DuckDB.FFI.c_duckdb_appender_end_row
, Database.DuckDB.FFI.c_duckdb_append_default
, Database.DuckDB.FFI.c_duckdb_append_default_to_chunk
, Database.DuckDB.FFI.c_duckdb_append_bool
, Database.DuckDB.FFI.c_duckdb_append_int8
, Database.DuckDB.FFI.c_duckdb_append_int16
, Database.DuckDB.FFI.c_duckdb_append_int32
, Database.DuckDB.FFI.c_duckdb_append_int64
, Database.DuckDB.FFI.c_duckdb_append_hugeint
, Database.DuckDB.FFI.c_duckdb_append_uint8
, Database.DuckDB.FFI.c_duckdb_append_uint16
, Database.DuckDB.FFI.c_duckdb_append_uint32
, Database.DuckDB.FFI.c_duckdb_append_uint64
, Database.DuckDB.FFI.c_duckdb_append_uhugeint
, Database.DuckDB.FFI.c_duckdb_append_float
, Database.DuckDB.FFI.c_duckdb_append_double
, Database.DuckDB.FFI.c_duckdb_append_date
, Database.DuckDB.FFI.c_duckdb_append_time
, Database.DuckDB.FFI.c_duckdb_append_timestamp
, Database.DuckDB.FFI.c_duckdb_append_interval
, Database.DuckDB.FFI.c_duckdb_append_varchar
, Database.DuckDB.FFI.c_duckdb_append_varchar_length
, Database.DuckDB.FFI.c_duckdb_append_blob
, Database.DuckDB.FFI.c_duckdb_append_null
, Database.DuckDB.FFI.c_duckdb_append_value
, Database.DuckDB.FFI.c_duckdb_append_data_chunk
, Database.DuckDB.FFI.c_duckdb_appender_error
, Database.DuckDB.FFI.c_duckdb_to_arrow_schema
, Database.DuckDB.FFI.c_duckdb_data_chunk_to_arrow
, Database.DuckDB.FFI.c_duckdb_schema_from_arrow
, Database.DuckDB.FFI.c_duckdb_data_chunk_from_arrow
, Database.DuckDB.FFI.c_duckdb_destroy_arrow_converted_schema
, Database.DuckDB.FFI.c_duckdb_query_arrow
, Database.DuckDB.FFI.c_duckdb_query_arrow_schema
, Database.DuckDB.FFI.c_duckdb_prepared_arrow_schema
, Database.DuckDB.FFI.c_duckdb_result_arrow_array
, Database.DuckDB.FFI.c_duckdb_query_arrow_array
, Database.DuckDB.FFI.c_duckdb_arrow_column_count
, Database.DuckDB.FFI.c_duckdb_arrow_row_count
, Database.DuckDB.FFI.c_duckdb_arrow_rows_changed
, Database.DuckDB.FFI.c_duckdb_query_arrow_error
, Database.DuckDB.FFI.c_duckdb_destroy_arrow
, Database.DuckDB.FFI.c_duckdb_destroy_arrow_stream
, Database.DuckDB.FFI.c_duckdb_execute_prepared_arrow
, Database.DuckDB.FFI.c_duckdb_arrow_scan
, Database.DuckDB.FFI.c_duckdb_arrow_array_scan
, Database.DuckDB.FFI.c_duckdb_create_cast_function
, Database.DuckDB.FFI.c_duckdb_cast_function_set_source_type
, Database.DuckDB.FFI.c_duckdb_cast_function_set_target_type
, Database.DuckDB.FFI.c_duckdb_cast_function_set_implicit_cast_cost
, Database.DuckDB.FFI.c_duckdb_cast_function_set_function
, Database.DuckDB.FFI.c_duckdb_cast_function_set_extra_info
, Database.DuckDB.FFI.c_duckdb_cast_function_get_extra_info
, Database.DuckDB.FFI.c_duckdb_cast_function_get_cast_mode
, Database.DuckDB.FFI.c_duckdb_cast_function_set_error
, Database.DuckDB.FFI.c_duckdb_cast_function_set_row_error
, Database.DuckDB.FFI.c_duckdb_register_cast_function
, Database.DuckDB.FFI.c_duckdb_destroy_cast_function
, Database.DuckDB.FFI.c_duckdb_client_context_get_catalog
, Database.DuckDB.FFI.c_duckdb_catalog_get_type_name
, Database.DuckDB.FFI.c_duckdb_catalog_get_entry
, Database.DuckDB.FFI.c_duckdb_destroy_catalog
, Database.DuckDB.FFI.c_duckdb_catalog_entry_get_type
, Database.DuckDB.FFI.c_duckdb_catalog_entry_get_name
, Database.DuckDB.FFI.c_duckdb_destroy_catalog_entry
, Database.DuckDB.FFI.c_duckdb_create_config_option
, Database.DuckDB.FFI.c_duckdb_destroy_config_option
, Database.DuckDB.FFI.c_duckdb_config_option_set_name
, Database.DuckDB.FFI.c_duckdb_config_option_set_type
, Database.DuckDB.FFI.c_duckdb_config_option_set_default_value
, Database.DuckDB.FFI.c_duckdb_config_option_set_default_scope
, Database.DuckDB.FFI.c_duckdb_config_option_set_description
, Database.DuckDB.FFI.c_duckdb_register_config_option
, Database.DuckDB.FFI.c_duckdb_client_context_get_config_option
, Database.DuckDB.FFI.c_duckdb_get_profiling_info
, Database.DuckDB.FFI.c_duckdb_profiling_info_get_value
, Database.DuckDB.FFI.c_duckdb_profiling_info_get_metrics
, Database.DuckDB.FFI.c_duckdb_profiling_info_get_child_count
, Database.DuckDB.FFI.c_duckdb_profiling_info_get_child
, Database.DuckDB.FFI.c_duckdb_connect
, Database.DuckDB.FFI.c_duckdb_interrupt
, Database.DuckDB.FFI.c_duckdb_query_progress
, Database.DuckDB.FFI.c_duckdb_disconnect
, Database.DuckDB.FFI.c_duckdb_connection_get_client_context
, Database.DuckDB.FFI.c_duckdb_connection_get_arrow_options
, Database.DuckDB.FFI.c_duckdb_client_context_get_connection_id
, Database.DuckDB.FFI.c_duckdb_destroy_client_context
, Database.DuckDB.FFI.c_duckdb_destroy_arrow_options
, Database.DuckDB.FFI.c_duckdb_get_table_names
, Database.DuckDB.FFI.c_duckdb_create_copy_function
, Database.DuckDB.FFI.c_duckdb_copy_function_set_name
, Database.DuckDB.FFI.c_duckdb_copy_function_set_extra_info
, Database.DuckDB.FFI.c_duckdb_register_copy_function
, Database.DuckDB.FFI.c_duckdb_destroy_copy_function
, Database.DuckDB.FFI.c_duckdb_copy_function_set_bind
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_set_error
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_get_extra_info
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_get_client_context
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_get_column_count
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_get_column_type
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_get_options
, Database.DuckDB.FFI.c_duckdb_copy_function_bind_set_bind_data
, Database.DuckDB.FFI.c_duckdb_copy_function_set_global_init
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_set_error
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_get_extra_info
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_get_client_context
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_get_bind_data
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_get_file_path
, Database.DuckDB.FFI.c_duckdb_copy_function_global_init_set_global_state
, Database.DuckDB.FFI.c_duckdb_copy_function_set_sink
, Database.DuckDB.FFI.c_duckdb_copy_function_sink_set_error
, Database.DuckDB.FFI.c_duckdb_copy_function_sink_get_extra_info
, Database.DuckDB.FFI.c_duckdb_copy_function_sink_get_client_context
, Database.DuckDB.FFI.c_duckdb_copy_function_sink_get_bind_data
, Database.DuckDB.FFI.c_duckdb_copy_function_sink_get_global_state
, Database.DuckDB.FFI.c_duckdb_copy_function_set_finalize
, Database.DuckDB.FFI.c_duckdb_copy_function_finalize_set_error
, Database.DuckDB.FFI.c_duckdb_copy_function_finalize_get_extra_info
, Database.DuckDB.FFI.c_duckdb_copy_function_finalize_get_client_context
, Database.DuckDB.FFI.c_duckdb_copy_function_finalize_get_bind_data
, Database.DuckDB.FFI.c_duckdb_copy_function_finalize_get_global_state
, Database.DuckDB.FFI.c_duckdb_copy_function_set_copy_from_function
, Database.DuckDB.FFI.c_duckdb_create_data_chunk
, Database.DuckDB.FFI.c_duckdb_destroy_data_chunk
, Database.DuckDB.FFI.c_duckdb_data_chunk_reset
, Database.DuckDB.FFI.c_duckdb_data_chunk_get_column_count
, Database.DuckDB.FFI.c_duckdb_data_chunk_get_vector
, Database.DuckDB.FFI.c_duckdb_data_chunk_get_size
, Database.DuckDB.FFI.c_duckdb_data_chunk_set_size
, Database.DuckDB.FFI.c_duckdb_create_instance_cache
, Database.DuckDB.FFI.c_duckdb_get_or_create_from_cache
, Database.DuckDB.FFI.c_duckdb_destroy_instance_cache
, Database.DuckDB.FFI.c_duckdb_open
, Database.DuckDB.FFI.c_duckdb_open_ext
, Database.DuckDB.FFI.c_duckdb_close
, Database.DuckDB.FFI.c_duckdb_library_version
, Database.DuckDB.FFI.c_duckdb_create_config
, Database.DuckDB.FFI.c_duckdb_config_count
, Database.DuckDB.FFI.c_duckdb_get_config_flag
, Database.DuckDB.FFI.c_duckdb_set_config
, Database.DuckDB.FFI.c_duckdb_destroy_config
, Database.DuckDB.FFI.c_duckdb_destroy_expression
, Database.DuckDB.FFI.c_duckdb_expression_return_type
, Database.DuckDB.FFI.c_duckdb_expression_is_foldable
, Database.DuckDB.FFI.c_duckdb_expression_fold
, Database.DuckDB.FFI.c_duckdb_client_context_get_file_system
, Database.DuckDB.FFI.c_duckdb_destroy_file_system
, Database.DuckDB.FFI.c_duckdb_file_system_error_data
, Database.DuckDB.FFI.c_duckdb_file_system_open
, Database.DuckDB.FFI.c_duckdb_create_file_open_options
, Database.DuckDB.FFI.c_duckdb_file_open_options_set_flag
, Database.DuckDB.FFI.c_duckdb_destroy_file_open_options
, Database.DuckDB.FFI.c_duckdb_destroy_file_handle
, Database.DuckDB.FFI.c_duckdb_file_handle_error_data
, Database.DuckDB.FFI.c_duckdb_file_handle_read
, Database.DuckDB.FFI.c_duckdb_file_handle_write
, Database.DuckDB.FFI.c_duckdb_file_handle_tell
, Database.DuckDB.FFI.c_duckdb_file_handle_size
, Database.DuckDB.FFI.c_duckdb_file_handle_seek
, Database.DuckDB.FFI.c_duckdb_file_handle_sync
, Database.DuckDB.FFI.c_duckdb_file_handle_close
, Database.DuckDB.FFI.c_duckdb_create_log_storage
, Database.DuckDB.FFI.c_duckdb_destroy_log_storage
, Database.DuckDB.FFI.c_duckdb_log_storage_set_write_log_entry
, Database.DuckDB.FFI.c_duckdb_log_storage_set_extra_data
, Database.DuckDB.FFI.c_duckdb_log_storage_set_name
, Database.DuckDB.FFI.c_duckdb_register_log_storage
, Database.DuckDB.FFI.c_duckdb_create_logical_type
, Database.DuckDB.FFI.c_duckdb_logical_type_get_alias
, Database.DuckDB.FFI.c_duckdb_logical_type_set_alias
, Database.DuckDB.FFI.c_duckdb_create_list_type
, Database.DuckDB.FFI.c_duckdb_create_array_type
, Database.DuckDB.FFI.c_duckdb_create_map_type
, Database.DuckDB.FFI.c_duckdb_create_union_type
, Database.DuckDB.FFI.c_duckdb_create_struct_type
, Database.DuckDB.FFI.c_duckdb_create_enum_type
, Database.DuckDB.FFI.c_duckdb_create_decimal_type
, Database.DuckDB.FFI.c_duckdb_get_type_id
, Database.DuckDB.FFI.c_duckdb_decimal_width
, Database.DuckDB.FFI.c_duckdb_decimal_scale
, Database.DuckDB.FFI.c_duckdb_decimal_internal_type
, Database.DuckDB.FFI.c_duckdb_enum_internal_type
, Database.DuckDB.FFI.c_duckdb_enum_dictionary_size
, Database.DuckDB.FFI.c_duckdb_enum_dictionary_value
, Database.DuckDB.FFI.c_duckdb_list_type_child_type
, Database.DuckDB.FFI.c_duckdb_array_type_child_type
, Database.DuckDB.FFI.c_duckdb_array_type_array_size
, Database.DuckDB.FFI.c_duckdb_map_type_key_type
, Database.DuckDB.FFI.c_duckdb_map_type_value_type
, Database.DuckDB.FFI.c_duckdb_struct_type_child_count
, Database.DuckDB.FFI.c_duckdb_struct_type_child_name
, Database.DuckDB.FFI.c_duckdb_struct_type_child_type
, Database.DuckDB.FFI.c_duckdb_union_type_member_count
, Database.DuckDB.FFI.c_duckdb_union_type_member_name
, Database.DuckDB.FFI.c_duckdb_union_type_member_type
, Database.DuckDB.FFI.c_duckdb_destroy_logical_type
, Database.DuckDB.FFI.c_duckdb_register_logical_type
, Database.DuckDB.FFI.c_duckdb_geometry_type_get_crs
, Database.DuckDB.FFI.c_duckdb_pending_prepared
, Database.DuckDB.FFI.c_duckdb_destroy_pending
, Database.DuckDB.FFI.c_duckdb_pending_error
, Database.DuckDB.FFI.c_duckdb_pending_execute_task
, Database.DuckDB.FFI.c_duckdb_pending_execute_check_state
, Database.DuckDB.FFI.c_duckdb_execute_pending
, Database.DuckDB.FFI.c_duckdb_pending_execution_is_finished
, Database.DuckDB.FFI.c_duckdb_prepare
, Database.DuckDB.FFI.c_duckdb_destroy_prepare
, Database.DuckDB.FFI.c_duckdb_prepare_error
, Database.DuckDB.FFI.c_duckdb_nparams
, Database.DuckDB.FFI.c_duckdb_parameter_name
, Database.DuckDB.FFI.c_duckdb_param_type
, Database.DuckDB.FFI.c_duckdb_param_logical_type
, Database.DuckDB.FFI.c_duckdb_clear_bindings
, Database.DuckDB.FFI.c_duckdb_prepared_statement_type
, Database.DuckDB.FFI.c_duckdb_prepared_statement_column_count
, Database.DuckDB.FFI.c_duckdb_prepared_statement_column_name
, Database.DuckDB.FFI.c_duckdb_prepared_statement_column_logical_type
, Database.DuckDB.FFI.c_duckdb_prepared_statement_column_type
, Database.DuckDB.FFI.c_duckdb_bind_value
, Database.DuckDB.FFI.c_duckdb_bind_parameter_index
, Database.DuckDB.FFI.c_duckdb_bind_boolean
, Database.DuckDB.FFI.c_duckdb_bind_int8
, Database.DuckDB.FFI.c_duckdb_bind_int16
, Database.DuckDB.FFI.c_duckdb_bind_int32
, Database.DuckDB.FFI.c_duckdb_bind_int64
, Database.DuckDB.FFI.c_duckdb_bind_hugeint
, Database.DuckDB.FFI.c_duckdb_bind_uhugeint
, Database.DuckDB.FFI.c_duckdb_bind_decimal
, Database.DuckDB.FFI.c_duckdb_bind_uint8
, Database.DuckDB.FFI.c_duckdb_bind_uint16
, Database.DuckDB.FFI.c_duckdb_bind_uint32
, Database.DuckDB.FFI.c_duckdb_bind_uint64
, Database.DuckDB.FFI.c_duckdb_bind_float
, Database.DuckDB.FFI.c_duckdb_bind_double
, Database.DuckDB.FFI.c_duckdb_bind_date
, Database.DuckDB.FFI.c_duckdb_bind_time
, Database.DuckDB.FFI.c_duckdb_bind_timestamp
, Database.DuckDB.FFI.c_duckdb_bind_timestamp_tz
, Database.DuckDB.FFI.c_duckdb_bind_interval
, Database.DuckDB.FFI.c_duckdb_bind_varchar
, Database.DuckDB.FFI.c_duckdb_bind_varchar_length
, Database.DuckDB.FFI.c_duckdb_bind_blob
, Database.DuckDB.FFI.c_duckdb_bind_null
, Database.DuckDB.FFI.c_duckdb_execute_prepared
, Database.DuckDB.FFI.c_duckdb_extract_statements
, Database.DuckDB.FFI.c_duckdb_prepare_extracted_statement
, Database.DuckDB.FFI.c_duckdb_extract_statements_error
, Database.DuckDB.FFI.c_duckdb_destroy_extracted
, Database.DuckDB.FFI.c_duckdb_execute_prepared_streaming
, Database.DuckDB.FFI.c_duckdb_pending_prepared_streaming
, Database.DuckDB.FFI.c_duckdb_query
, Database.DuckDB.FFI.c_duckdb_destroy_result
, Database.DuckDB.FFI.c_duckdb_column_name
, Database.DuckDB.FFI.c_duckdb_column_type
, Database.DuckDB.FFI.c_duckdb_result_statement_type
, Database.DuckDB.FFI.c_duckdb_column_logical_type
, Database.DuckDB.FFI.c_duckdb_result_get_arrow_options
, Database.DuckDB.FFI.c_duckdb_column_count
, Database.DuckDB.FFI.c_duckdb_rows_changed
, Database.DuckDB.FFI.c_duckdb_result_error
, Database.DuckDB.FFI.c_duckdb_result_error_type
, Database.DuckDB.FFI.c_duckdb_result_return_type
, Database.DuckDB.FFI.c_duckdb_fetch_chunk
, Database.DuckDB.FFI.c_duckdb_create_error_data
, Database.DuckDB.FFI.c_duckdb_destroy_error_data
, Database.DuckDB.FFI.c_duckdb_error_data_error_type
, Database.DuckDB.FFI.c_duckdb_error_data_message
, Database.DuckDB.FFI.c_duckdb_error_data_has_error
, Database.DuckDB.FFI.c_duckdb_malloc
, Database.DuckDB.FFI.c_duckdb_free
, Database.DuckDB.FFI.c_duckdb_vector_size
, Database.DuckDB.FFI.c_duckdb_string_is_inlined
, Database.DuckDB.FFI.c_duckdb_string_t_length
, Database.DuckDB.FFI.c_duckdb_string_t_data
, Database.DuckDB.FFI.c_duckdb_valid_utf8_check
, Database.DuckDB.FFI.c_duckdb_row_count
, Database.DuckDB.FFI.c_duckdb_column_data
, Database.DuckDB.FFI.c_duckdb_nullmask_data
, Database.DuckDB.FFI.c_duckdb_result_get_chunk
, Database.DuckDB.FFI.c_duckdb_result_is_streaming
, Database.DuckDB.FFI.c_duckdb_result_chunk_count
, Database.DuckDB.FFI.c_duckdb_stream_fetch_chunk
, Database.DuckDB.FFI.c_duckdb_add_replacement_scan
, Database.DuckDB.FFI.c_duckdb_replacement_scan_set_function_name
, Database.DuckDB.FFI.c_duckdb_replacement_scan_add_parameter
, Database.DuckDB.FFI.c_duckdb_replacement_scan_set_error
, Database.DuckDB.FFI.c_duckdb_create_scalar_function
, Database.DuckDB.FFI.c_duckdb_destroy_scalar_function
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_name
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_varargs
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_special_handling
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_volatile
, Database.DuckDB.FFI.c_duckdb_scalar_function_add_parameter
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_return_type
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_extra_info
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_bind
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_bind_data
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_bind_data_copy
, Database.DuckDB.FFI.c_duckdb_scalar_function_bind_set_error
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_function
, Database.DuckDB.FFI.c_duckdb_register_scalar_function
, Database.DuckDB.FFI.c_duckdb_scalar_function_get_extra_info
, Database.DuckDB.FFI.c_duckdb_scalar_function_bind_get_extra_info
, Database.DuckDB.FFI.c_duckdb_scalar_function_get_bind_data
, Database.DuckDB.FFI.c_duckdb_scalar_function_get_client_context
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_error
, Database.DuckDB.FFI.c_duckdb_create_scalar_function_set
, Database.DuckDB.FFI.c_duckdb_destroy_scalar_function_set
, Database.DuckDB.FFI.c_duckdb_add_scalar_function_to_set
, Database.DuckDB.FFI.c_duckdb_register_scalar_function_set
, Database.DuckDB.FFI.c_duckdb_scalar_function_bind_get_argument_count
, Database.DuckDB.FFI.c_duckdb_scalar_function_bind_get_argument
, Database.DuckDB.FFI.c_duckdb_scalar_function_get_state
, Database.DuckDB.FFI.c_duckdb_scalar_function_set_init
, Database.DuckDB.FFI.c_duckdb_scalar_function_init_set_error
, Database.DuckDB.FFI.c_duckdb_scalar_function_init_set_state
, Database.DuckDB.FFI.c_duckdb_scalar_function_init_get_client_context
, Database.DuckDB.FFI.c_duckdb_scalar_function_init_get_bind_data
, Database.DuckDB.FFI.c_duckdb_scalar_function_init_get_extra_info
, Database.DuckDB.FFI.c_duckdb_table_description_create
, Database.DuckDB.FFI.c_duckdb_table_description_create_ext
, Database.DuckDB.FFI.c_duckdb_table_description_destroy
, Database.DuckDB.FFI.c_duckdb_table_description_error
, Database.DuckDB.FFI.c_duckdb_column_has_default
, Database.DuckDB.FFI.c_duckdb_table_description_get_column_count
, Database.DuckDB.FFI.c_duckdb_table_description_get_column_name
, Database.DuckDB.FFI.c_duckdb_table_description_get_column_type
, Database.DuckDB.FFI.c_duckdb_create_table_function
, Database.DuckDB.FFI.c_duckdb_destroy_table_function
, Database.DuckDB.FFI.c_duckdb_table_function_set_name
, Database.DuckDB.FFI.c_duckdb_table_function_add_parameter
, Database.DuckDB.FFI.c_duckdb_table_function_add_named_parameter
, Database.DuckDB.FFI.c_duckdb_table_function_set_extra_info
, Database.DuckDB.FFI.c_duckdb_table_function_set_bind
, Database.DuckDB.FFI.c_duckdb_table_function_set_init
, Database.DuckDB.FFI.c_duckdb_table_function_set_local_init
, Database.DuckDB.FFI.c_duckdb_table_function_set_function
, Database.DuckDB.FFI.c_duckdb_table_function_supports_projection_pushdown
, Database.DuckDB.FFI.c_duckdb_register_table_function
, Database.DuckDB.FFI.c_duckdb_bind_get_extra_info
, Database.DuckDB.FFI.c_duckdb_table_function_get_client_context
, Database.DuckDB.FFI.c_duckdb_bind_add_result_column
, Database.DuckDB.FFI.c_duckdb_bind_get_parameter_count
, Database.DuckDB.FFI.c_duckdb_bind_get_parameter
, Database.DuckDB.FFI.c_duckdb_bind_get_named_parameter
, Database.DuckDB.FFI.c_duckdb_bind_set_bind_data
, Database.DuckDB.FFI.c_duckdb_bind_set_cardinality
, Database.DuckDB.FFI.c_duckdb_bind_set_error
, Database.DuckDB.FFI.c_duckdb_init_get_extra_info
, Database.DuckDB.FFI.c_duckdb_init_get_bind_data
, Database.DuckDB.FFI.c_duckdb_init_set_init_data
, Database.DuckDB.FFI.c_duckdb_init_get_column_count
, Database.DuckDB.FFI.c_duckdb_init_get_column_index
, Database.DuckDB.FFI.c_duckdb_init_set_max_threads
, Database.DuckDB.FFI.c_duckdb_init_set_error
, Database.DuckDB.FFI.c_duckdb_function_get_extra_info
, Database.DuckDB.FFI.c_duckdb_function_get_bind_data
, Database.DuckDB.FFI.c_duckdb_function_get_init_data
, Database.DuckDB.FFI.c_duckdb_function_get_local_init_data
, Database.DuckDB.FFI.c_duckdb_function_set_error
, Database.DuckDB.FFI.c_duckdb_table_function_bind_get_result_column_count
, Database.DuckDB.FFI.c_duckdb_table_function_bind_get_result_column_name
, Database.DuckDB.FFI.c_duckdb_table_function_bind_get_result_column_type
, Database.DuckDB.FFI.c_duckdb_execute_tasks
, Database.DuckDB.FFI.c_duckdb_create_task_state
, Database.DuckDB.FFI.c_duckdb_execute_tasks_state
, Database.DuckDB.FFI.c_duckdb_execute_n_tasks_state
, Database.DuckDB.FFI.c_duckdb_finish_execution
, Database.DuckDB.FFI.c_duckdb_task_state_is_finished
, Database.DuckDB.FFI.c_duckdb_destroy_task_state
, Database.DuckDB.FFI.c_duckdb_execution_is_finished
, Database.DuckDB.FFI.c_duckdb_destroy_value
, Database.DuckDB.FFI.c_duckdb_create_varchar
, Database.DuckDB.FFI.c_duckdb_create_varchar_length
, Database.DuckDB.FFI.c_duckdb_create_bool
, Database.DuckDB.FFI.c_duckdb_create_int8
, Database.DuckDB.FFI.c_duckdb_create_uint8
, Database.DuckDB.FFI.c_duckdb_create_int16
, Database.DuckDB.FFI.c_duckdb_create_uint16
, Database.DuckDB.FFI.c_duckdb_create_int32
, Database.DuckDB.FFI.c_duckdb_create_uint32
, Database.DuckDB.FFI.c_duckdb_create_uint64
, Database.DuckDB.FFI.c_duckdb_create_int64
, Database.DuckDB.FFI.c_duckdb_create_hugeint
, Database.DuckDB.FFI.c_duckdb_create_uhugeint
, Database.DuckDB.FFI.c_duckdb_create_bignum
, Database.DuckDB.FFI.c_duckdb_create_decimal
, Database.DuckDB.FFI.c_duckdb_create_float
, Database.DuckDB.FFI.c_duckdb_create_double
, Database.DuckDB.FFI.c_duckdb_create_date
, Database.DuckDB.FFI.c_duckdb_create_time
, Database.DuckDB.FFI.c_duckdb_create_time_ns
, Database.DuckDB.FFI.c_duckdb_create_time_tz_value
, Database.DuckDB.FFI.c_duckdb_create_timestamp
, Database.DuckDB.FFI.c_duckdb_create_timestamp_tz
, Database.DuckDB.FFI.c_duckdb_create_timestamp_tz_ns
, Database.DuckDB.FFI.c_duckdb_create_timestamp_s
, Database.DuckDB.FFI.c_duckdb_create_timestamp_ms
, Database.DuckDB.FFI.c_duckdb_create_timestamp_ns
, Database.DuckDB.FFI.c_duckdb_create_interval
, Database.DuckDB.FFI.c_duckdb_create_blob
, Database.DuckDB.FFI.c_duckdb_create_bit
, Database.DuckDB.FFI.c_duckdb_create_uuid
, Database.DuckDB.FFI.c_duckdb_get_bool
, Database.DuckDB.FFI.c_duckdb_get_int8
, Database.DuckDB.FFI.c_duckdb_get_uint8
, Database.DuckDB.FFI.c_duckdb_get_int16
, Database.DuckDB.FFI.c_duckdb_get_uint16
, Database.DuckDB.FFI.c_duckdb_get_int32
, Database.DuckDB.FFI.c_duckdb_get_uint32
, Database.DuckDB.FFI.c_duckdb_get_int64
, Database.DuckDB.FFI.c_duckdb_get_uint64
, Database.DuckDB.FFI.c_duckdb_get_hugeint
, Database.DuckDB.FFI.c_duckdb_get_uhugeint
, Database.DuckDB.FFI.c_duckdb_get_bignum
, Database.DuckDB.FFI.c_duckdb_get_decimal
, Database.DuckDB.FFI.c_duckdb_get_float
, Database.DuckDB.FFI.c_duckdb_get_double
, Database.DuckDB.FFI.c_duckdb_get_date
, Database.DuckDB.FFI.c_duckdb_get_time
, Database.DuckDB.FFI.c_duckdb_get_time_ns
, Database.DuckDB.FFI.c_duckdb_get_time_tz
, Database.DuckDB.FFI.c_duckdb_get_timestamp
, Database.DuckDB.FFI.c_duckdb_get_timestamp_tz
, Database.DuckDB.FFI.c_duckdb_get_timestamp_tz_ns
, Database.DuckDB.FFI.c_duckdb_get_timestamp_s
, Database.DuckDB.FFI.c_duckdb_get_timestamp_ms
, Database.DuckDB.FFI.c_duckdb_get_timestamp_ns
, Database.DuckDB.FFI.c_duckdb_get_interval
, Database.DuckDB.FFI.c_duckdb_get_value_type
, Database.DuckDB.FFI.c_duckdb_get_blob
, Database.DuckDB.FFI.c_duckdb_get_bit
, Database.DuckDB.FFI.c_duckdb_get_uuid
, Database.DuckDB.FFI.c_duckdb_get_varchar
, Database.DuckDB.FFI.c_duckdb_create_struct_value
, Database.DuckDB.FFI.c_duckdb_create_list_value
, Database.DuckDB.FFI.c_duckdb_create_array_value
, Database.DuckDB.FFI.c_duckdb_create_map_value
, Database.DuckDB.FFI.c_duckdb_create_union_value
, Database.DuckDB.FFI.c_duckdb_get_map_size
, Database.DuckDB.FFI.c_duckdb_get_map_key
, Database.DuckDB.FFI.c_duckdb_get_map_value
, Database.DuckDB.FFI.c_duckdb_is_null_value
, Database.DuckDB.FFI.c_duckdb_create_null_value
, Database.DuckDB.FFI.c_duckdb_get_list_size
, Database.DuckDB.FFI.c_duckdb_get_list_child
, Database.DuckDB.FFI.c_duckdb_create_enum_value
, Database.DuckDB.FFI.c_duckdb_get_enum_value
, Database.DuckDB.FFI.c_duckdb_get_struct_child
, Database.DuckDB.FFI.c_duckdb_value_to_string
, Database.DuckDB.FFI.c_duckdb_value_boolean
, Database.DuckDB.FFI.c_duckdb_value_int8
, Database.DuckDB.FFI.c_duckdb_value_int16
, Database.DuckDB.FFI.c_duckdb_value_int32
, Database.DuckDB.FFI.c_duckdb_value_int64
, Database.DuckDB.FFI.c_duckdb_value_hugeint
, Database.DuckDB.FFI.c_duckdb_value_uhugeint
, Database.DuckDB.FFI.c_duckdb_value_decimal
, Database.DuckDB.FFI.c_duckdb_value_uint8
, Database.DuckDB.FFI.c_duckdb_value_uint16
, Database.DuckDB.FFI.c_duckdb_value_uint32
, Database.DuckDB.FFI.c_duckdb_value_uint64
, Database.DuckDB.FFI.c_duckdb_value_float
, Database.DuckDB.FFI.c_duckdb_value_double
, Database.DuckDB.FFI.c_duckdb_value_date
, Database.DuckDB.FFI.c_duckdb_value_time
, Database.DuckDB.FFI.c_duckdb_value_timestamp
, Database.DuckDB.FFI.c_duckdb_value_interval
, Database.DuckDB.FFI.c_duckdb_value_varchar
, Database.DuckDB.FFI.c_duckdb_value_string
, Database.DuckDB.FFI.c_duckdb_value_varchar_internal
, Database.DuckDB.FFI.c_duckdb_value_string_internal
, Database.DuckDB.FFI.c_duckdb_value_blob
, Database.DuckDB.FFI.c_duckdb_value_is_null
, Database.DuckDB.FFI.c_duckdb_create_vector
, Database.DuckDB.FFI.c_duckdb_destroy_vector
, Database.DuckDB.FFI.c_duckdb_vector_get_column_type
, Database.DuckDB.FFI.c_duckdb_vector_get_data
, Database.DuckDB.FFI.c_duckdb_vector_get_validity
, Database.DuckDB.FFI.c_duckdb_vector_ensure_validity_writable
, Database.DuckDB.FFI.c_duckdb_vector_assign_string_element
, Database.DuckDB.FFI.c_duckdb_vector_assign_string_element_len
, Database.DuckDB.FFI.c_duckdb_unsafe_vector_assign_string_element_len
, Database.DuckDB.FFI.c_duckdb_list_vector_get_child
, Database.DuckDB.FFI.c_duckdb_list_vector_get_size
, Database.DuckDB.FFI.c_duckdb_list_vector_set_size
, Database.DuckDB.FFI.c_duckdb_list_vector_reserve
, Database.DuckDB.FFI.c_duckdb_struct_vector_get_child
, Database.DuckDB.FFI.c_duckdb_array_vector_get_child
, Database.DuckDB.FFI.c_duckdb_slice_vector
, Database.DuckDB.FFI.c_duckdb_vector_copy_sel
, Database.DuckDB.FFI.c_duckdb_vector_reference_value
, Database.DuckDB.FFI.c_duckdb_vector_reference_vector
, Database.DuckDB.FFI.c_duckdb_validity_row_is_valid
, Database.DuckDB.FFI.c_duckdb_validity_set_row_validity
, Database.DuckDB.FFI.c_duckdb_validity_set_row_invalid
, Database.DuckDB.FFI.c_duckdb_validity_set_row_valid
, Database.DuckDB.FFI.c_duckdb_create_selection_vector
, Database.DuckDB.FFI.c_duckdb_destroy_selection_vector
, Database.DuckDB.FFI.c_duckdb_selection_vector_get_data_ptr
)
where
import qualified HsBindgen.Runtime.CEnum as CEnum
import qualified HsBindgen.Runtime.ConstantArray as CA
import qualified HsBindgen.Runtime.HasCField as HasCField
import qualified HsBindgen.Runtime.LibC
import qualified HsBindgen.Runtime.Marshal as Marshal
import qualified HsBindgen.Runtime.PtrConst as PtrConst
import qualified HsBindgen.Runtime.Struct as Struct
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import qualified HsBindgen.Runtime.Support.CompatHasField as BG.CompatHasField
import qualified HsBindgen.Runtime.Union as Union
import Prelude ((<*>), (>>), Bounded, Enum, Eq, IO, Int, Integral, Num, Ord, Read, Real, Show, fmap, pure, type (~))
$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
[ "#include <duckdb.h>"
, "#include <duckdb_arrow.h>"
, "void hs_bindgen_153d18959d6bdde2 ("
, " duckdb_date *arg1,"
, " duckdb_date_struct *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_from_date)(*arg1);"
, "}"
, "void hs_bindgen_e8e2ae846bc846bd ("
, " duckdb_date_struct *arg1,"
, " duckdb_date *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_to_date)(*arg1);"
, "}"
, "_Bool hs_bindgen_0502603ff03a9a85 ("
, " duckdb_date *arg1"
, ")"
, "{"
, " return (duckdb_is_finite_date)(*arg1);"
, "}"
, "void hs_bindgen_6f585e0d38d45906 ("
, " duckdb_time *arg1,"
, " duckdb_time_struct *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_from_time)(*arg1);"
, "}"
, "void hs_bindgen_3895748c6e0f7040 ("
, " int64_t arg1,"
, " int32_t arg2,"
, " duckdb_time_tz *arg3"
, ")"
, "{"
, " *arg3 = (duckdb_create_time_tz)(arg1, arg2);"
, "}"
, "void hs_bindgen_a6d9dec3e303c7f7 ("
, " duckdb_time_tz *arg1,"
, " duckdb_time_tz_struct *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_from_time_tz)(*arg1);"
, "}"
, "void hs_bindgen_2bcbaabda02073ac ("
, " duckdb_time_struct *arg1,"
, " duckdb_time *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_to_time)(*arg1);"
, "}"
, "void hs_bindgen_53776ff8b2acd73e ("
, " duckdb_timestamp *arg1,"
, " duckdb_timestamp_struct *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_from_timestamp)(*arg1);"
, "}"
, "void hs_bindgen_2213a6caf7cf5a2a ("
, " duckdb_timestamp_struct *arg1,"
, " duckdb_timestamp *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_to_timestamp)(*arg1);"
, "}"
, "_Bool hs_bindgen_6bf40d2c8f650521 ("
, " duckdb_timestamp *arg1"
, ")"
, "{"
, " return (duckdb_is_finite_timestamp)(*arg1);"
, "}"
, "_Bool hs_bindgen_3de825c497718ef8 ("
, " duckdb_timestamp_s *arg1"
, ")"
, "{"
, " return (duckdb_is_finite_timestamp_s)(*arg1);"
, "}"
, "_Bool hs_bindgen_ddb9e22e35fce1f5 ("
, " duckdb_timestamp_ms *arg1"
, ")"
, "{"
, " return (duckdb_is_finite_timestamp_ms)(*arg1);"
, "}"
, "_Bool hs_bindgen_0f484f72b5cf1c3b ("
, " duckdb_timestamp_ns *arg1"
, ")"
, "{"
, " return (duckdb_is_finite_timestamp_ns)(*arg1);"
, "}"
, "double hs_bindgen_bbbbec73ad41a6be ("
, " duckdb_hugeint *arg1"
, ")"
, "{"
, " return (duckdb_hugeint_to_double)(*arg1);"
, "}"
, "void hs_bindgen_09890e1c7e06ce22 ("
, " double arg1,"
, " duckdb_hugeint *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_double_to_hugeint)(arg1);"
, "}"
, "double hs_bindgen_e347968d8ba72f9d ("
, " duckdb_uhugeint *arg1"
, ")"
, "{"
, " return (duckdb_uhugeint_to_double)(*arg1);"
, "}"
, "void hs_bindgen_ab63bc231e7c2083 ("
, " double arg1,"
, " duckdb_uhugeint *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_double_to_uhugeint)(arg1);"
, "}"
, "void hs_bindgen_2fd9e41f82130053 ("
, " double arg1,"
, " uint8_t arg2,"
, " uint8_t arg3,"
, " duckdb_decimal *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_double_to_decimal)(arg1, arg2, arg3);"
, "}"
, "double hs_bindgen_a897650e57b2e5dd ("
, " duckdb_decimal *arg1"
, ")"
, "{"
, " return (duckdb_decimal_to_double)(*arg1);"
, "}"
, "duckdb_aggregate_function hs_bindgen_a4213901f24a347c (void)"
, "{"
, " return (duckdb_create_aggregate_function)();"
, "}"
, "void hs_bindgen_9a7ed57b62ba2830 ("
, " duckdb_aggregate_function *arg1"
, ")"
, "{"
, " (duckdb_destroy_aggregate_function)(arg1);"
, "}"
, "void hs_bindgen_6753d462db01c5d2 ("
, " duckdb_aggregate_function arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_aggregate_function_set_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_c0953d002d635df8 ("
, " duckdb_aggregate_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_aggregate_function_add_parameter)(arg1, arg2);"
, "}"
, "void hs_bindgen_6058c453ace88380 ("
, " duckdb_aggregate_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_aggregate_function_set_return_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_f14070593356a5b8 ("
, " duckdb_aggregate_function arg1,"
, " duckdb_aggregate_state_size arg2,"
, " duckdb_aggregate_init_t arg3,"
, " duckdb_aggregate_update_t arg4,"
, " duckdb_aggregate_combine_t arg5,"
, " duckdb_aggregate_finalize_t arg6"
, ")"
, "{"
, " (duckdb_aggregate_function_set_functions)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "void hs_bindgen_d1d14d0757e28d95 ("
, " duckdb_aggregate_function arg1,"
, " duckdb_aggregate_destroy_t arg2"
, ")"
, "{"
, " (duckdb_aggregate_function_set_destructor)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_73fd6a2b1ed3a19d ("
, " duckdb_connection arg1,"
, " duckdb_aggregate_function arg2"
, ")"
, "{"
, " return (duckdb_register_aggregate_function)(arg1, arg2);"
, "}"
, "void hs_bindgen_fb32b51eb2673dfa ("
, " duckdb_aggregate_function arg1"
, ")"
, "{"
, " (duckdb_aggregate_function_set_special_handling)(arg1);"
, "}"
, "void hs_bindgen_bfde5b245fa2177b ("
, " duckdb_aggregate_function arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_aggregate_function_set_extra_info)(arg1, arg2, arg3);"
, "}"
, "void *hs_bindgen_4e9b0c1d3d06199e ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_aggregate_function_get_extra_info)(arg1);"
, "}"
, "void hs_bindgen_483e87ce1132f579 ("
, " duckdb_function_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_aggregate_function_set_error)(arg1, arg2);"
, "}"
, "duckdb_aggregate_function_set hs_bindgen_2c49e23b08d73926 ("
, " char const *arg1"
, ")"
, "{"
, " return (duckdb_create_aggregate_function_set)(arg1);"
, "}"
, "void hs_bindgen_bf434d41b82ac906 ("
, " duckdb_aggregate_function_set *arg1"
, ")"
, "{"
, " (duckdb_destroy_aggregate_function_set)(arg1);"
, "}"
, "duckdb_state hs_bindgen_8ac8412347b7e08f ("
, " duckdb_aggregate_function_set arg1,"
, " duckdb_aggregate_function arg2"
, ")"
, "{"
, " return (duckdb_add_aggregate_function_to_set)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_642bec7c514572cd ("
, " duckdb_connection arg1,"
, " duckdb_aggregate_function_set arg2"
, ")"
, "{"
, " return (duckdb_register_aggregate_function_set)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_aa07fd4356c6a064 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " duckdb_appender *arg4"
, ")"
, "{"
, " return (duckdb_appender_create)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_63ef91b9ed96feb6 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " char const *arg4,"
, " duckdb_appender *arg5"
, ")"
, "{"
, " return (duckdb_appender_create_ext)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "duckdb_state hs_bindgen_f5f12003c5a6b74a ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " idx_t arg3,"
, " duckdb_logical_type *arg4,"
, " char const *arg5,"
, " char const **arg6,"
, " duckdb_appender *arg7"
, ")"
, "{"
, " return (duckdb_appender_create_query)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
, "}"
, "idx_t hs_bindgen_d9adf614fa24a490 ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_column_count)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_388a8d17efd22a63 ("
, " duckdb_appender arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_appender_column_type)(arg1, arg2);"
, "}"
, "duckdb_error_data hs_bindgen_0c7ec7ae5f924855 ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_error_data)(arg1);"
, "}"
, "duckdb_state hs_bindgen_440cae7db099b464 ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_flush)(arg1);"
, "}"
, "duckdb_state hs_bindgen_e89bd80516e6940c ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_clear)(arg1);"
, "}"
, "duckdb_state hs_bindgen_b6168be67cbde80f ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_close)(arg1);"
, "}"
, "duckdb_state hs_bindgen_bedb9203156b99bc ("
, " duckdb_appender *arg1"
, ")"
, "{"
, " return (duckdb_appender_destroy)(arg1);"
, "}"
, "duckdb_state hs_bindgen_fe61378b4ecf148e ("
, " duckdb_appender arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_appender_add_column)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_0ceb19489a5e573e ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_clear_columns)(arg1);"
, "}"
, "duckdb_state hs_bindgen_a6075e071c58b503 ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_begin_row)(arg1);"
, "}"
, "duckdb_state hs_bindgen_3a0d96e4d1abcd7f ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_end_row)(arg1);"
, "}"
, "duckdb_state hs_bindgen_d604ee9d99caa6cb ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_append_default)(arg1);"
, "}"
, "duckdb_state hs_bindgen_67cbddd0427ae7f8 ("
, " duckdb_appender arg1,"
, " duckdb_data_chunk arg2,"
, " idx_t arg3,"
, " idx_t arg4"
, ")"
, "{"
, " return (duckdb_append_default_to_chunk)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_d0d8ffd6be52ff07 ("
, " duckdb_appender arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return (duckdb_append_bool)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_c51b55c873ce1e28 ("
, " duckdb_appender arg1,"
, " int8_t arg2"
, ")"
, "{"
, " return (duckdb_append_int8)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_0ddaa75df3b9f58e ("
, " duckdb_appender arg1,"
, " int16_t arg2"
, ")"
, "{"
, " return (duckdb_append_int16)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_6b7cb661bd8ea7df ("
, " duckdb_appender arg1,"
, " int32_t arg2"
, ")"
, "{"
, " return (duckdb_append_int32)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_6cff86036743c55e ("
, " duckdb_appender arg1,"
, " int64_t arg2"
, ")"
, "{"
, " return (duckdb_append_int64)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_765a56fbbd07717a ("
, " duckdb_appender arg1,"
, " duckdb_hugeint *arg2"
, ")"
, "{"
, " return (duckdb_append_hugeint)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_b214b9f8045936c1 ("
, " duckdb_appender arg1,"
, " uint8_t arg2"
, ")"
, "{"
, " return (duckdb_append_uint8)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_e07db5d03eb1dd02 ("
, " duckdb_appender arg1,"
, " uint16_t arg2"
, ")"
, "{"
, " return (duckdb_append_uint16)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_4b46ba5a5f4f7522 ("
, " duckdb_appender arg1,"
, " uint32_t arg2"
, ")"
, "{"
, " return (duckdb_append_uint32)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_25fbe913db29848b ("
, " duckdb_appender arg1,"
, " uint64_t arg2"
, ")"
, "{"
, " return (duckdb_append_uint64)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_62de5fc4f18c28c0 ("
, " duckdb_appender arg1,"
, " duckdb_uhugeint *arg2"
, ")"
, "{"
, " return (duckdb_append_uhugeint)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_96447ede7e23ec34 ("
, " duckdb_appender arg1,"
, " float arg2"
, ")"
, "{"
, " return (duckdb_append_float)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_7c28467da6574418 ("
, " duckdb_appender arg1,"
, " double arg2"
, ")"
, "{"
, " return (duckdb_append_double)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_9d8dbbd78f188e17 ("
, " duckdb_appender arg1,"
, " duckdb_date *arg2"
, ")"
, "{"
, " return (duckdb_append_date)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_2ce7a0f0da7fd624 ("
, " duckdb_appender arg1,"
, " duckdb_time *arg2"
, ")"
, "{"
, " return (duckdb_append_time)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_7a4497e32900cf81 ("
, " duckdb_appender arg1,"
, " duckdb_timestamp *arg2"
, ")"
, "{"
, " return (duckdb_append_timestamp)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_6c1faa62ed1e4792 ("
, " duckdb_appender arg1,"
, " duckdb_interval *arg2"
, ")"
, "{"
, " return (duckdb_append_interval)(arg1, *arg2);"
, "}"
, "duckdb_state hs_bindgen_e5225654463f5192 ("
, " duckdb_appender arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_append_varchar)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_a8ac491a9e08a58f ("
, " duckdb_appender arg1,"
, " char const *arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_append_varchar_length)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_5fdc599752499241 ("
, " duckdb_appender arg1,"
, " void const *arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_append_blob)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_51084ea4cd371420 ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_append_null)(arg1);"
, "}"
, "duckdb_state hs_bindgen_25c7249abd4ef222 ("
, " duckdb_appender arg1,"
, " duckdb_value arg2"
, ")"
, "{"
, " return (duckdb_append_value)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_7e1746e78ac83f6e ("
, " duckdb_appender arg1,"
, " duckdb_data_chunk arg2"
, ")"
, "{"
, " return (duckdb_append_data_chunk)(arg1, arg2);"
, "}"
, "char const *hs_bindgen_96a3877ac37f908a ("
, " duckdb_appender arg1"
, ")"
, "{"
, " return (duckdb_appender_error)(arg1);"
, "}"
, "duckdb_error_data hs_bindgen_749f8639f0f92967 ("
, " duckdb_arrow_options arg1,"
, " duckdb_logical_type *arg2,"
, " char const **arg3,"
, " idx_t arg4,"
, " struct ArrowSchema *arg5"
, ")"
, "{"
, " return (duckdb_to_arrow_schema)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "duckdb_error_data hs_bindgen_3c0a13f88804c747 ("
, " duckdb_arrow_options arg1,"
, " duckdb_data_chunk arg2,"
, " struct ArrowArray *arg3"
, ")"
, "{"
, " return (duckdb_data_chunk_to_arrow)(arg1, arg2, arg3);"
, "}"
, "duckdb_error_data hs_bindgen_57a0f20883adc249 ("
, " duckdb_connection arg1,"
, " struct ArrowSchema *arg2,"
, " duckdb_arrow_converted_schema *arg3"
, ")"
, "{"
, " return (duckdb_schema_from_arrow)(arg1, arg2, arg3);"
, "}"
, "duckdb_error_data hs_bindgen_74a4bd664af946a0 ("
, " duckdb_connection arg1,"
, " struct ArrowArray *arg2,"
, " duckdb_arrow_converted_schema arg3,"
, " duckdb_data_chunk *arg4"
, ")"
, "{"
, " return (duckdb_data_chunk_from_arrow)(arg1, arg2, arg3, arg4);"
, "}"
, "void hs_bindgen_d8f15a49df8ec50d ("
, " duckdb_arrow_converted_schema *arg1"
, ")"
, "{"
, " (duckdb_destroy_arrow_converted_schema)(arg1);"
, "}"
, "duckdb_state hs_bindgen_f542464e35ec578c ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_arrow *arg3"
, ")"
, "{"
, " return (duckdb_query_arrow)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_c159419cb8a6a381 ("
, " duckdb_arrow arg1,"
, " duckdb_arrow_schema *arg2"
, ")"
, "{"
, " return (duckdb_query_arrow_schema)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_ae5a517fcc0088ea ("
, " duckdb_prepared_statement arg1,"
, " duckdb_arrow_schema *arg2"
, ")"
, "{"
, " return (duckdb_prepared_arrow_schema)(arg1, arg2);"
, "}"
, "void hs_bindgen_697c128584b3a452 ("
, " duckdb_result *arg1,"
, " duckdb_data_chunk arg2,"
, " duckdb_arrow_array *arg3"
, ")"
, "{"
, " (duckdb_result_arrow_array)(*arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_33505698f1fd3536 ("
, " duckdb_arrow arg1,"
, " duckdb_arrow_array *arg2"
, ")"
, "{"
, " return (duckdb_query_arrow_array)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_35ad4e7c492cdfa8 ("
, " duckdb_arrow arg1"
, ")"
, "{"
, " return (duckdb_arrow_column_count)(arg1);"
, "}"
, "idx_t hs_bindgen_563d608c32762302 ("
, " duckdb_arrow arg1"
, ")"
, "{"
, " return (duckdb_arrow_row_count)(arg1);"
, "}"
, "idx_t hs_bindgen_6eb2e5dcab2741c1 ("
, " duckdb_arrow arg1"
, ")"
, "{"
, " return (duckdb_arrow_rows_changed)(arg1);"
, "}"
, "char const *hs_bindgen_ab8fa55204e6c826 ("
, " duckdb_arrow arg1"
, ")"
, "{"
, " return (duckdb_query_arrow_error)(arg1);"
, "}"
, "void hs_bindgen_d2c9f57314f0dc2e ("
, " duckdb_arrow *arg1"
, ")"
, "{"
, " (duckdb_destroy_arrow)(arg1);"
, "}"
, "void hs_bindgen_ac7e0c2d2bccc4ca ("
, " duckdb_arrow_stream *arg1"
, ")"
, "{"
, " (duckdb_destroy_arrow_stream)(arg1);"
, "}"
, "duckdb_state hs_bindgen_6a9394320a0add34 ("
, " duckdb_prepared_statement arg1,"
, " duckdb_arrow *arg2"
, ")"
, "{"
, " return (duckdb_execute_prepared_arrow)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_23edfe0e6fb8b8cd ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_arrow_stream arg3"
, ")"
, "{"
, " return (duckdb_arrow_scan)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_595da99ffd284fe9 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_arrow_schema arg3,"
, " duckdb_arrow_array arg4,"
, " duckdb_arrow_stream *arg5"
, ")"
, "{"
, " return (duckdb_arrow_array_scan)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "duckdb_cast_function hs_bindgen_530842d8bb740323 (void)"
, "{"
, " return (duckdb_create_cast_function)();"
, "}"
, "void hs_bindgen_79a5b6e406da35c7 ("
, " duckdb_cast_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_cast_function_set_source_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_e10f2f2c59c28010 ("
, " duckdb_cast_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_cast_function_set_target_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_b91f08fa8ca3a98a ("
, " duckdb_cast_function arg1,"
, " int64_t arg2"
, ")"
, "{"
, " (duckdb_cast_function_set_implicit_cast_cost)(arg1, arg2);"
, "}"
, "void hs_bindgen_b04584eb2fd6c16e ("
, " duckdb_cast_function arg1,"
, " duckdb_cast_function_t arg2"
, ")"
, "{"
, " (duckdb_cast_function_set_function)(arg1, arg2);"
, "}"
, "void hs_bindgen_aa3d7539369988e9 ("
, " duckdb_cast_function arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_cast_function_set_extra_info)(arg1, arg2, arg3);"
, "}"
, "void *hs_bindgen_8d27e93926d18d88 ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_cast_function_get_extra_info)(arg1);"
, "}"
, "duckdb_cast_mode hs_bindgen_007c30c55010fd1b ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_cast_function_get_cast_mode)(arg1);"
, "}"
, "void hs_bindgen_224a31360352029c ("
, " duckdb_function_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_cast_function_set_error)(arg1, arg2);"
, "}"
, "void hs_bindgen_797b13ae1942639e ("
, " duckdb_function_info arg1,"
, " char const *arg2,"
, " idx_t arg3,"
, " duckdb_vector arg4"
, ")"
, "{"
, " (duckdb_cast_function_set_row_error)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_0afe718cbb1361cb ("
, " duckdb_connection arg1,"
, " duckdb_cast_function arg2"
, ")"
, "{"
, " return (duckdb_register_cast_function)(arg1, arg2);"
, "}"
, "void hs_bindgen_7586ad32fb8d02b1 ("
, " duckdb_cast_function *arg1"
, ")"
, "{"
, " (duckdb_destroy_cast_function)(arg1);"
, "}"
, "duckdb_catalog hs_bindgen_325fa3e1c034e2a4 ("
, " duckdb_client_context arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_client_context_get_catalog)(arg1, arg2);"
, "}"
, "char const *hs_bindgen_dc671e8d1eacfa00 ("
, " duckdb_catalog arg1"
, ")"
, "{"
, " return (duckdb_catalog_get_type_name)(arg1);"
, "}"
, "duckdb_catalog_entry hs_bindgen_aba4dfe53d092aa4 ("
, " duckdb_catalog arg1,"
, " duckdb_client_context arg2,"
, " duckdb_catalog_entry_type arg3,"
, " char const *arg4,"
, " char const *arg5"
, ")"
, "{"
, " return (duckdb_catalog_get_entry)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "void hs_bindgen_e9ab59cc27549451 ("
, " duckdb_catalog *arg1"
, ")"
, "{"
, " (duckdb_destroy_catalog)(arg1);"
, "}"
, "duckdb_catalog_entry_type hs_bindgen_f9e87e4a2ae0ba89 ("
, " duckdb_catalog_entry arg1"
, ")"
, "{"
, " return (duckdb_catalog_entry_get_type)(arg1);"
, "}"
, "char const *hs_bindgen_430e74b8dedd2055 ("
, " duckdb_catalog_entry arg1"
, ")"
, "{"
, " return (duckdb_catalog_entry_get_name)(arg1);"
, "}"
, "void hs_bindgen_6189577693659118 ("
, " duckdb_catalog_entry *arg1"
, ")"
, "{"
, " (duckdb_destroy_catalog_entry)(arg1);"
, "}"
, "duckdb_config_option hs_bindgen_2904c2eb7d815ddd (void)"
, "{"
, " return (duckdb_create_config_option)();"
, "}"
, "void hs_bindgen_cce3c5835cb3d7fb ("
, " duckdb_config_option *arg1"
, ")"
, "{"
, " (duckdb_destroy_config_option)(arg1);"
, "}"
, "void hs_bindgen_4a7b0eacb915b49c ("
, " duckdb_config_option arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_config_option_set_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_55c7fda9341606d9 ("
, " duckdb_config_option arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_config_option_set_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_5d743cd261c382bc ("
, " duckdb_config_option arg1,"
, " duckdb_value arg2"
, ")"
, "{"
, " (duckdb_config_option_set_default_value)(arg1, arg2);"
, "}"
, "void hs_bindgen_669d84ce2f314ace ("
, " duckdb_config_option arg1,"
, " duckdb_config_option_scope arg2"
, ")"
, "{"
, " (duckdb_config_option_set_default_scope)(arg1, arg2);"
, "}"
, "void hs_bindgen_434294888a548fc7 ("
, " duckdb_config_option arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_config_option_set_description)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_b14dc22384baf221 ("
, " duckdb_connection arg1,"
, " duckdb_config_option arg2"
, ")"
, "{"
, " return (duckdb_register_config_option)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_6627c6206b1f1351 ("
, " duckdb_client_context arg1,"
, " char const *arg2,"
, " duckdb_config_option_scope *arg3"
, ")"
, "{"
, " return (duckdb_client_context_get_config_option)(arg1, arg2, arg3);"
, "}"
, "duckdb_profiling_info hs_bindgen_6cc9ce7e3e2cc49d ("
, " duckdb_connection arg1"
, ")"
, "{"
, " return (duckdb_get_profiling_info)(arg1);"
, "}"
, "duckdb_value hs_bindgen_ef170ac4012ec7c1 ("
, " duckdb_profiling_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_profiling_info_get_value)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_28bc0ccb66ee250b ("
, " duckdb_profiling_info arg1"
, ")"
, "{"
, " return (duckdb_profiling_info_get_metrics)(arg1);"
, "}"
, "idx_t hs_bindgen_2535bc9e5898c5a1 ("
, " duckdb_profiling_info arg1"
, ")"
, "{"
, " return (duckdb_profiling_info_get_child_count)(arg1);"
, "}"
, "duckdb_profiling_info hs_bindgen_9eb0d1042926715f ("
, " duckdb_profiling_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_profiling_info_get_child)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_79d64eb1438eabb3 ("
, " duckdb_database arg1,"
, " duckdb_connection *arg2"
, ")"
, "{"
, " return (duckdb_connect)(arg1, arg2);"
, "}"
, "void hs_bindgen_2a298bcc8a8bf16d ("
, " duckdb_connection arg1"
, ")"
, "{"
, " (duckdb_interrupt)(arg1);"
, "}"
, "void hs_bindgen_e9eec4b7b5ba0a85 ("
, " duckdb_connection arg1,"
, " duckdb_query_progress_type *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_query_progress)(arg1);"
, "}"
, "void hs_bindgen_cb610ade84b3a9cb ("
, " duckdb_connection *arg1"
, ")"
, "{"
, " (duckdb_disconnect)(arg1);"
, "}"
, "void hs_bindgen_8544c93f321dd6fd ("
, " duckdb_connection arg1,"
, " duckdb_client_context *arg2"
, ")"
, "{"
, " (duckdb_connection_get_client_context)(arg1, arg2);"
, "}"
, "void hs_bindgen_90f6280aebaf736e ("
, " duckdb_connection arg1,"
, " duckdb_arrow_options *arg2"
, ")"
, "{"
, " (duckdb_connection_get_arrow_options)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_4dce4d0b3eb0c45a ("
, " duckdb_client_context arg1"
, ")"
, "{"
, " return (duckdb_client_context_get_connection_id)(arg1);"
, "}"
, "void hs_bindgen_e1dcc582c6d3773d ("
, " duckdb_client_context *arg1"
, ")"
, "{"
, " (duckdb_destroy_client_context)(arg1);"
, "}"
, "void hs_bindgen_aa5e5b8ee750a275 ("
, " duckdb_arrow_options *arg1"
, ")"
, "{"
, " (duckdb_destroy_arrow_options)(arg1);"
, "}"
, "duckdb_value hs_bindgen_f77ead42500007ef ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " _Bool arg3"
, ")"
, "{"
, " return (duckdb_get_table_names)(arg1, arg2, arg3);"
, "}"
, "duckdb_copy_function hs_bindgen_9082e3375dc02c6b (void)"
, "{"
, " return (duckdb_create_copy_function)();"
, "}"
, "void hs_bindgen_5dcabbbd6ea15759 ("
, " duckdb_copy_function arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_f11df37a3a7c9589 ("
, " duckdb_copy_function arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_copy_function_set_extra_info)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_ef2952af4d35b915 ("
, " duckdb_connection arg1,"
, " duckdb_copy_function arg2"
, ")"
, "{"
, " return (duckdb_register_copy_function)(arg1, arg2);"
, "}"
, "void hs_bindgen_a8e7668d29c4444d ("
, " duckdb_copy_function *arg1"
, ")"
, "{"
, " (duckdb_destroy_copy_function)(arg1);"
, "}"
, "void hs_bindgen_87cf3467d4ff600f ("
, " duckdb_copy_function arg1,"
, " duckdb_copy_function_bind_t arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_bind)(arg1, arg2);"
, "}"
, "void hs_bindgen_524c0439f2a4c426 ("
, " duckdb_copy_function_bind_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_copy_function_bind_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_700aaa096e86aaf2 ("
, " duckdb_copy_function_bind_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_bind_get_extra_info)(arg1);"
, "}"
, "duckdb_client_context hs_bindgen_43ecba8b372ade77 ("
, " duckdb_copy_function_bind_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_bind_get_client_context)(arg1);"
, "}"
, "idx_t hs_bindgen_fded725200a8255d ("
, " duckdb_copy_function_bind_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_bind_get_column_count)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_66ea23271c8a6bd0 ("
, " duckdb_copy_function_bind_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_copy_function_bind_get_column_type)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_7b77d6cb5cf0d60a ("
, " duckdb_copy_function_bind_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_bind_get_options)(arg1);"
, "}"
, "void hs_bindgen_fe305bbf1974a262 ("
, " duckdb_copy_function_bind_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_copy_function_bind_set_bind_data)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_bdf653203b811426 ("
, " duckdb_copy_function arg1,"
, " duckdb_copy_function_global_init_t arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_global_init)(arg1, arg2);"
, "}"
, "void hs_bindgen_279e87fe6d40d247 ("
, " duckdb_copy_function_global_init_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_copy_function_global_init_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_7609546a5c22ffe0 ("
, " duckdb_copy_function_global_init_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_global_init_get_extra_info)(arg1);"
, "}"
, "duckdb_client_context hs_bindgen_43808cb7db79e801 ("
, " duckdb_copy_function_global_init_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_global_init_get_client_context)(arg1);"
, "}"
, "void *hs_bindgen_687b5ba8e888e959 ("
, " duckdb_copy_function_global_init_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_global_init_get_bind_data)(arg1);"
, "}"
, "char const *hs_bindgen_2114989eb445f973 ("
, " duckdb_copy_function_global_init_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_global_init_get_file_path)(arg1);"
, "}"
, "void hs_bindgen_ff12ab62e7e2b86d ("
, " duckdb_copy_function_global_init_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_copy_function_global_init_set_global_state)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_5ba7790b6977f6f9 ("
, " duckdb_copy_function arg1,"
, " duckdb_copy_function_sink_t arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_sink)(arg1, arg2);"
, "}"
, "void hs_bindgen_6dcea9bdb2c64239 ("
, " duckdb_copy_function_sink_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_copy_function_sink_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_05b0c7709595cb8c ("
, " duckdb_copy_function_sink_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_sink_get_extra_info)(arg1);"
, "}"
, "duckdb_client_context hs_bindgen_c8d3a89903c0ed25 ("
, " duckdb_copy_function_sink_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_sink_get_client_context)(arg1);"
, "}"
, "void *hs_bindgen_0625cce1f60f4400 ("
, " duckdb_copy_function_sink_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_sink_get_bind_data)(arg1);"
, "}"
, "void *hs_bindgen_32ac91dc1a40c2e1 ("
, " duckdb_copy_function_sink_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_sink_get_global_state)(arg1);"
, "}"
, "void hs_bindgen_1aeb2ff33a42eb52 ("
, " duckdb_copy_function arg1,"
, " duckdb_copy_function_finalize_t arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_finalize)(arg1, arg2);"
, "}"
, "void hs_bindgen_1aff575b0b5aa442 ("
, " duckdb_copy_function_finalize_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_copy_function_finalize_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_eac875bdda3d01f5 ("
, " duckdb_copy_function_finalize_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_finalize_get_extra_info)(arg1);"
, "}"
, "duckdb_client_context hs_bindgen_624069d2f8a39d84 ("
, " duckdb_copy_function_finalize_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_finalize_get_client_context)(arg1);"
, "}"
, "void *hs_bindgen_3557b4da41c1a1b9 ("
, " duckdb_copy_function_finalize_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_finalize_get_bind_data)(arg1);"
, "}"
, "void *hs_bindgen_33a78a386647fcda ("
, " duckdb_copy_function_finalize_info arg1"
, ")"
, "{"
, " return (duckdb_copy_function_finalize_get_global_state)(arg1);"
, "}"
, "void hs_bindgen_168dd94dc4472ecc ("
, " duckdb_copy_function arg1,"
, " duckdb_table_function arg2"
, ")"
, "{"
, " (duckdb_copy_function_set_copy_from_function)(arg1, arg2);"
, "}"
, "duckdb_data_chunk hs_bindgen_efb394485fc6a2bf ("
, " duckdb_logical_type *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_data_chunk)(arg1, arg2);"
, "}"
, "void hs_bindgen_008e9a01c51088d0 ("
, " duckdb_data_chunk *arg1"
, ")"
, "{"
, " (duckdb_destroy_data_chunk)(arg1);"
, "}"
, "void hs_bindgen_f0ed12c45e7de137 ("
, " duckdb_data_chunk arg1"
, ")"
, "{"
, " (duckdb_data_chunk_reset)(arg1);"
, "}"
, "idx_t hs_bindgen_46e003c5051990e9 ("
, " duckdb_data_chunk arg1"
, ")"
, "{"
, " return (duckdb_data_chunk_get_column_count)(arg1);"
, "}"
, "duckdb_vector hs_bindgen_e612eec3607eea8a ("
, " duckdb_data_chunk arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_data_chunk_get_vector)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_ff8f64d484345bc6 ("
, " duckdb_data_chunk arg1"
, ")"
, "{"
, " return (duckdb_data_chunk_get_size)(arg1);"
, "}"
, "void hs_bindgen_2dd65b55bf219b31 ("
, " duckdb_data_chunk arg1,"
, " idx_t arg2"
, ")"
, "{"
, " (duckdb_data_chunk_set_size)(arg1, arg2);"
, "}"
, "duckdb_instance_cache hs_bindgen_af9dc862cc92484d (void)"
, "{"
, " return (duckdb_create_instance_cache)();"
, "}"
, "duckdb_state hs_bindgen_498dcd484fdb2257 ("
, " duckdb_instance_cache arg1,"
, " char const *arg2,"
, " duckdb_database *arg3,"
, " duckdb_config arg4,"
, " char **arg5"
, ")"
, "{"
, " return (duckdb_get_or_create_from_cache)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "void hs_bindgen_4880238d117a9624 ("
, " duckdb_instance_cache *arg1"
, ")"
, "{"
, " (duckdb_destroy_instance_cache)(arg1);"
, "}"
, "duckdb_state hs_bindgen_20ccd2dffd9e2deb ("
, " char const *arg1,"
, " duckdb_database *arg2"
, ")"
, "{"
, " return (duckdb_open)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_29742fa56b59b577 ("
, " char const *arg1,"
, " duckdb_database *arg2,"
, " duckdb_config arg3,"
, " char **arg4"
, ")"
, "{"
, " return (duckdb_open_ext)(arg1, arg2, arg3, arg4);"
, "}"
, "void hs_bindgen_9612218d8dfe8da0 ("
, " duckdb_database *arg1"
, ")"
, "{"
, " (duckdb_close)(arg1);"
, "}"
, "char const *hs_bindgen_6054bd05f5439f26 (void)"
, "{"
, " return (duckdb_library_version)();"
, "}"
, "duckdb_state hs_bindgen_9952cdd696ea9b64 ("
, " duckdb_config *arg1"
, ")"
, "{"
, " return (duckdb_create_config)(arg1);"
, "}"
, "size_t hs_bindgen_716854cee27243ac (void)"
, "{"
, " return (duckdb_config_count)();"
, "}"
, "duckdb_state hs_bindgen_9c4946fb7bbd79d4 ("
, " size_t arg1,"
, " char const **arg2,"
, " char const **arg3"
, ")"
, "{"
, " return (duckdb_get_config_flag)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_1d6e19093e0033ae ("
, " duckdb_config arg1,"
, " char const *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (duckdb_set_config)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_2de3b7a816583458 ("
, " duckdb_config *arg1"
, ")"
, "{"
, " (duckdb_destroy_config)(arg1);"
, "}"
, "void hs_bindgen_b2793b95993b27a0 ("
, " duckdb_expression *arg1"
, ")"
, "{"
, " (duckdb_destroy_expression)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_cdabf4b2938479e7 ("
, " duckdb_expression arg1"
, ")"
, "{"
, " return (duckdb_expression_return_type)(arg1);"
, "}"
, "_Bool hs_bindgen_5206a378aa1aed90 ("
, " duckdb_expression arg1"
, ")"
, "{"
, " return (duckdb_expression_is_foldable)(arg1);"
, "}"
, "duckdb_error_data hs_bindgen_218c780f483b4c25 ("
, " duckdb_client_context arg1,"
, " duckdb_expression arg2,"
, " duckdb_value *arg3"
, ")"
, "{"
, " return (duckdb_expression_fold)(arg1, arg2, arg3);"
, "}"
, "duckdb_file_system hs_bindgen_86de50508a218279 ("
, " duckdb_client_context arg1"
, ")"
, "{"
, " return (duckdb_client_context_get_file_system)(arg1);"
, "}"
, "void hs_bindgen_15fa74b0654878cf ("
, " duckdb_file_system *arg1"
, ")"
, "{"
, " (duckdb_destroy_file_system)(arg1);"
, "}"
, "duckdb_error_data hs_bindgen_69adcdaa1e007d5a ("
, " duckdb_file_system arg1"
, ")"
, "{"
, " return (duckdb_file_system_error_data)(arg1);"
, "}"
, "duckdb_state hs_bindgen_5751f4feb4d71533 ("
, " duckdb_file_system arg1,"
, " char const *arg2,"
, " duckdb_file_open_options arg3,"
, " duckdb_file_handle *arg4"
, ")"
, "{"
, " return (duckdb_file_system_open)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_file_open_options hs_bindgen_539de38e0bab26c5 (void)"
, "{"
, " return (duckdb_create_file_open_options)();"
, "}"
, "duckdb_state hs_bindgen_ffd94c80e2976995 ("
, " duckdb_file_open_options arg1,"
, " duckdb_file_flag arg2,"
, " _Bool arg3"
, ")"
, "{"
, " return (duckdb_file_open_options_set_flag)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_cf37e39c2d419a08 ("
, " duckdb_file_open_options *arg1"
, ")"
, "{"
, " (duckdb_destroy_file_open_options)(arg1);"
, "}"
, "void hs_bindgen_aad6fac9a0994e02 ("
, " duckdb_file_handle *arg1"
, ")"
, "{"
, " (duckdb_destroy_file_handle)(arg1);"
, "}"
, "duckdb_error_data hs_bindgen_5e1f67bf3efc2c36 ("
, " duckdb_file_handle arg1"
, ")"
, "{"
, " return (duckdb_file_handle_error_data)(arg1);"
, "}"
, "int64_t hs_bindgen_4b1fa3c92c7ccebd ("
, " duckdb_file_handle arg1,"
, " void *arg2,"
, " int64_t arg3"
, ")"
, "{"
, " return (duckdb_file_handle_read)(arg1, arg2, arg3);"
, "}"
, "int64_t hs_bindgen_b76782389ae4d98e ("
, " duckdb_file_handle arg1,"
, " void const *arg2,"
, " int64_t arg3"
, ")"
, "{"
, " return (duckdb_file_handle_write)(arg1, arg2, arg3);"
, "}"
, "int64_t hs_bindgen_aadecefadd076fa0 ("
, " duckdb_file_handle arg1"
, ")"
, "{"
, " return (duckdb_file_handle_tell)(arg1);"
, "}"
, "int64_t hs_bindgen_116d5a219fefe068 ("
, " duckdb_file_handle arg1"
, ")"
, "{"
, " return (duckdb_file_handle_size)(arg1);"
, "}"
, "duckdb_state hs_bindgen_0bc01ea1e012d827 ("
, " duckdb_file_handle arg1,"
, " int64_t arg2"
, ")"
, "{"
, " return (duckdb_file_handle_seek)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_54f8658c443ae0c1 ("
, " duckdb_file_handle arg1"
, ")"
, "{"
, " return (duckdb_file_handle_sync)(arg1);"
, "}"
, "duckdb_state hs_bindgen_b5d3891ef9f994e8 ("
, " duckdb_file_handle arg1"
, ")"
, "{"
, " return (duckdb_file_handle_close)(arg1);"
, "}"
, "duckdb_log_storage hs_bindgen_f82dcf7bc4f9f778 (void)"
, "{"
, " return (duckdb_create_log_storage)();"
, "}"
, "void hs_bindgen_88b771f8afe3bd0d ("
, " duckdb_log_storage *arg1"
, ")"
, "{"
, " (duckdb_destroy_log_storage)(arg1);"
, "}"
, "void hs_bindgen_b3f6a07d7d042e63 ("
, " duckdb_log_storage arg1,"
, " duckdb_logger_write_log_entry_t arg2"
, ")"
, "{"
, " (duckdb_log_storage_set_write_log_entry)(arg1, arg2);"
, "}"
, "void hs_bindgen_b1b907492c570cdc ("
, " duckdb_log_storage arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_log_storage_set_extra_data)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_c76226d0eeb4e836 ("
, " duckdb_log_storage arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_log_storage_set_name)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_0c9ec8ed934fd689 ("
, " duckdb_database arg1,"
, " duckdb_log_storage arg2"
, ")"
, "{"
, " return (duckdb_register_log_storage)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_6730a3125961d1ce ("
, " duckdb_type arg1"
, ")"
, "{"
, " return (duckdb_create_logical_type)(arg1);"
, "}"
, "char *hs_bindgen_8bf9efd96355ccc8 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_logical_type_get_alias)(arg1);"
, "}"
, "void hs_bindgen_4c81dd82a58eab6c ("
, " duckdb_logical_type arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_logical_type_set_alias)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_be34c8f6b1b36ac2 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_create_list_type)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_a29e6ca64067833a ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_array_type)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_d8ad5b24cb72b954 ("
, " duckdb_logical_type arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " return (duckdb_create_map_type)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_91bc78375b61b95b ("
, " duckdb_logical_type *arg1,"
, " char const **arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_create_union_type)(arg1, arg2, arg3);"
, "}"
, "duckdb_logical_type hs_bindgen_0a08f82ca13a0b71 ("
, " duckdb_logical_type *arg1,"
, " char const **arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_create_struct_type)(arg1, arg2, arg3);"
, "}"
, "duckdb_logical_type hs_bindgen_f7adf54f731b7fa6 ("
, " char const **arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_enum_type)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_ab3461fd12251fa5 ("
, " uint8_t arg1,"
, " uint8_t arg2"
, ")"
, "{"
, " return (duckdb_create_decimal_type)(arg1, arg2);"
, "}"
, "duckdb_type hs_bindgen_3c065a1280ea9665 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_get_type_id)(arg1);"
, "}"
, "uint8_t hs_bindgen_5cf2d0c9d544dd33 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_decimal_width)(arg1);"
, "}"
, "uint8_t hs_bindgen_98a72864c14469ab ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_decimal_scale)(arg1);"
, "}"
, "duckdb_type hs_bindgen_fe2cf67b34d2f6cb ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_decimal_internal_type)(arg1);"
, "}"
, "duckdb_type hs_bindgen_5155084716b3c35f ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_enum_internal_type)(arg1);"
, "}"
, "uint32_t hs_bindgen_1e5564406f3fd9db ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_enum_dictionary_size)(arg1);"
, "}"
, "char *hs_bindgen_9a20f17db8acbd70 ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_enum_dictionary_value)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_4157ed3ba592d6c8 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_list_type_child_type)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_2b8ef5e6bdecc75c ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_array_type_child_type)(arg1);"
, "}"
, "idx_t hs_bindgen_f95f493b93895a3d ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_array_type_array_size)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_ba81e4d2dcf269b3 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_map_type_key_type)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_2c5cd92bbe195c7d ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_map_type_value_type)(arg1);"
, "}"
, "idx_t hs_bindgen_9470b8d41ff2de33 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_struct_type_child_count)(arg1);"
, "}"
, "char *hs_bindgen_b2175e8f7078654f ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_struct_type_child_name)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_601601b3c2e40537 ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_struct_type_child_type)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_1e4a7d3a9bf6afa8 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_union_type_member_count)(arg1);"
, "}"
, "char *hs_bindgen_10b7095884bfd6c6 ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_union_type_member_name)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_c51b0baa0c7acc2b ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_union_type_member_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_ba9f691ab447b325 ("
, " duckdb_logical_type *arg1"
, ")"
, "{"
, " (duckdb_destroy_logical_type)(arg1);"
, "}"
, "duckdb_state hs_bindgen_04ac87cde857ea03 ("
, " duckdb_connection arg1,"
, " duckdb_logical_type arg2,"
, " duckdb_create_type_info arg3"
, ")"
, "{"
, " return (duckdb_register_logical_type)(arg1, arg2, arg3);"
, "}"
, "char *hs_bindgen_00c6f6b3b1a432f8 ("
, " duckdb_logical_type arg1"
, ")"
, "{"
, " return (duckdb_geometry_type_get_crs)(arg1);"
, "}"
, "duckdb_state hs_bindgen_140ec73cf4fe7786 ("
, " duckdb_prepared_statement arg1,"
, " duckdb_pending_result *arg2"
, ")"
, "{"
, " return (duckdb_pending_prepared)(arg1, arg2);"
, "}"
, "void hs_bindgen_e37a6341372605d4 ("
, " duckdb_pending_result *arg1"
, ")"
, "{"
, " (duckdb_destroy_pending)(arg1);"
, "}"
, "char const *hs_bindgen_2de8c0baba09d111 ("
, " duckdb_pending_result arg1"
, ")"
, "{"
, " return (duckdb_pending_error)(arg1);"
, "}"
, "duckdb_pending_state hs_bindgen_2f6bf9a23cbb0cec ("
, " duckdb_pending_result arg1"
, ")"
, "{"
, " return (duckdb_pending_execute_task)(arg1);"
, "}"
, "duckdb_pending_state hs_bindgen_8846d60debc2282f ("
, " duckdb_pending_result arg1"
, ")"
, "{"
, " return (duckdb_pending_execute_check_state)(arg1);"
, "}"
, "duckdb_state hs_bindgen_8d348576f8547d1e ("
, " duckdb_pending_result arg1,"
, " duckdb_result *arg2"
, ")"
, "{"
, " return (duckdb_execute_pending)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_5dc99c4c5e03476c ("
, " duckdb_pending_state arg1"
, ")"
, "{"
, " return (duckdb_pending_execution_is_finished)(arg1);"
, "}"
, "duckdb_state hs_bindgen_1bfada4bda17bfab ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_prepared_statement *arg3"
, ")"
, "{"
, " return (duckdb_prepare)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_26ae03c9c4c5e7c4 ("
, " duckdb_prepared_statement *arg1"
, ")"
, "{"
, " (duckdb_destroy_prepare)(arg1);"
, "}"
, "char const *hs_bindgen_b25b57b610531432 ("
, " duckdb_prepared_statement arg1"
, ")"
, "{"
, " return (duckdb_prepare_error)(arg1);"
, "}"
, "idx_t hs_bindgen_5fa1fd0511ab6da4 ("
, " duckdb_prepared_statement arg1"
, ")"
, "{"
, " return (duckdb_nparams)(arg1);"
, "}"
, "char const *hs_bindgen_eafa493aee3b4ab5 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_parameter_name)(arg1, arg2);"
, "}"
, "duckdb_type hs_bindgen_c8918f417a9d0485 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_param_type)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_4bdfeba8a2577d7c ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_param_logical_type)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_0baec870a17b08f5 ("
, " duckdb_prepared_statement arg1"
, ")"
, "{"
, " return (duckdb_clear_bindings)(arg1);"
, "}"
, "duckdb_statement_type hs_bindgen_8d1f2852daa4baa8 ("
, " duckdb_prepared_statement arg1"
, ")"
, "{"
, " return (duckdb_prepared_statement_type)(arg1);"
, "}"
, "idx_t hs_bindgen_21b83c58e5576ccb ("
, " duckdb_prepared_statement arg1"
, ")"
, "{"
, " return (duckdb_prepared_statement_column_count)(arg1);"
, "}"
, "char const *hs_bindgen_2446429a160ae499 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_prepared_statement_column_name)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_ec1ee529d3d049b2 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_prepared_statement_column_logical_type)(arg1, arg2);"
, "}"
, "duckdb_type hs_bindgen_735e0700d4547b98 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_prepared_statement_column_type)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_a6297bae6e7d851e ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_value arg3"
, ")"
, "{"
, " return (duckdb_bind_value)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_246486cf8a18dc9c ("
, " duckdb_prepared_statement arg1,"
, " idx_t *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (duckdb_bind_parameter_index)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_de1a77f688a34f93 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " _Bool arg3"
, ")"
, "{"
, " return (duckdb_bind_boolean)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_eda830b5f9d73c28 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " int8_t arg3"
, ")"
, "{"
, " return (duckdb_bind_int8)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_0355aa2cb5b1fa2e ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " int16_t arg3"
, ")"
, "{"
, " return (duckdb_bind_int16)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_a4f099fbb0a6ba13 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " int32_t arg3"
, ")"
, "{"
, " return (duckdb_bind_int32)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_2ec951c583ce8e04 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " int64_t arg3"
, ")"
, "{"
, " return (duckdb_bind_int64)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_8780a04bf33744c5 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_hugeint *arg3"
, ")"
, "{"
, " return (duckdb_bind_hugeint)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_5cb9ed525dffdba8 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_uhugeint *arg3"
, ")"
, "{"
, " return (duckdb_bind_uhugeint)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_c9b058b7b2cd21d0 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_decimal *arg3"
, ")"
, "{"
, " return (duckdb_bind_decimal)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_b5a38c6e6ecccd08 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " uint8_t arg3"
, ")"
, "{"
, " return (duckdb_bind_uint8)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_2e2738c0457ea47d ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " uint16_t arg3"
, ")"
, "{"
, " return (duckdb_bind_uint16)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_90e699f0e6b9cd29 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " uint32_t arg3"
, ")"
, "{"
, " return (duckdb_bind_uint32)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_3ccb9401c1ebda08 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " uint64_t arg3"
, ")"
, "{"
, " return (duckdb_bind_uint64)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_9b6b761b5a1551ef ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " float arg3"
, ")"
, "{"
, " return (duckdb_bind_float)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_e37b46704d10e1da ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " double arg3"
, ")"
, "{"
, " return (duckdb_bind_double)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_f8785689f72e5b5d ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_date *arg3"
, ")"
, "{"
, " return (duckdb_bind_date)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_1785c9c57c78cf3d ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_time *arg3"
, ")"
, "{"
, " return (duckdb_bind_time)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_408ba78d5071e129 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_timestamp *arg3"
, ")"
, "{"
, " return (duckdb_bind_timestamp)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_e37f0c4d9ec67f72 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_timestamp *arg3"
, ")"
, "{"
, " return (duckdb_bind_timestamp_tz)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_60eda501a3472aa0 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " duckdb_interval *arg3"
, ")"
, "{"
, " return (duckdb_bind_interval)(arg1, arg2, *arg3);"
, "}"
, "duckdb_state hs_bindgen_6789c4064ae33dfd ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (duckdb_bind_varchar)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_8da54da1c75fc6d7 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " char const *arg3,"
, " idx_t arg4"
, ")"
, "{"
, " return (duckdb_bind_varchar_length)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_f3dfed4bc402c238 ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2,"
, " void const *arg3,"
, " idx_t arg4"
, ")"
, "{"
, " return (duckdb_bind_blob)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_5ef44e468bc16aaa ("
, " duckdb_prepared_statement arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_bind_null)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_629c85be7284c355 ("
, " duckdb_prepared_statement arg1,"
, " duckdb_result *arg2"
, ")"
, "{"
, " return (duckdb_execute_prepared)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_3a899fb5cfe65940 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_extracted_statements *arg3"
, ")"
, "{"
, " return (duckdb_extract_statements)(arg1, arg2, arg3);"
, "}"
, "duckdb_state hs_bindgen_c1d2b24650595603 ("
, " duckdb_connection arg1,"
, " duckdb_extracted_statements arg2,"
, " idx_t arg3,"
, " duckdb_prepared_statement *arg4"
, ")"
, "{"
, " return (duckdb_prepare_extracted_statement)(arg1, arg2, arg3, arg4);"
, "}"
, "char const *hs_bindgen_d1cda79c464875a1 ("
, " duckdb_extracted_statements arg1"
, ")"
, "{"
, " return (duckdb_extract_statements_error)(arg1);"
, "}"
, "void hs_bindgen_b2c9b38c3dab239d ("
, " duckdb_extracted_statements *arg1"
, ")"
, "{"
, " (duckdb_destroy_extracted)(arg1);"
, "}"
, "duckdb_state hs_bindgen_d9a9d21987a2fe23 ("
, " duckdb_prepared_statement arg1,"
, " duckdb_result *arg2"
, ")"
, "{"
, " return (duckdb_execute_prepared_streaming)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_5b8189ac2ab75aa9 ("
, " duckdb_prepared_statement arg1,"
, " duckdb_pending_result *arg2"
, ")"
, "{"
, " return (duckdb_pending_prepared_streaming)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_71265af97d3a41d1 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " duckdb_result *arg3"
, ")"
, "{"
, " return (duckdb_query)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_b86dbae055869626 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " (duckdb_destroy_result)(arg1);"
, "}"
, "char const *hs_bindgen_d23794402f3fe9a9 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_column_name)(arg1, arg2);"
, "}"
, "duckdb_type hs_bindgen_15a95e7d7ac8efc1 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_column_type)(arg1, arg2);"
, "}"
, "duckdb_statement_type hs_bindgen_8a124a1bd6d825dd ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_statement_type)(*arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_7a205ff70db1d914 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_column_logical_type)(arg1, arg2);"
, "}"
, "duckdb_arrow_options hs_bindgen_64d7e2281fcc020a ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_get_arrow_options)(arg1);"
, "}"
, "idx_t hs_bindgen_7041e53dc1f8b5e8 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_column_count)(arg1);"
, "}"
, "idx_t hs_bindgen_a04d4c381ef339ef ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_rows_changed)(arg1);"
, "}"
, "char const *hs_bindgen_6a44049691a0d5ca ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_error)(arg1);"
, "}"
, "duckdb_error_type hs_bindgen_192ec6d6ab754ea4 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_error_type)(arg1);"
, "}"
, "duckdb_result_type hs_bindgen_28c674c4821c15e7 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_return_type)(*arg1);"
, "}"
, "duckdb_data_chunk hs_bindgen_e0bcac4419c39797 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_fetch_chunk)(*arg1);"
, "}"
, "duckdb_error_data hs_bindgen_83b19aac8561d31d ("
, " duckdb_error_type arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_create_error_data)(arg1, arg2);"
, "}"
, "void hs_bindgen_e557d66e3312baae ("
, " duckdb_error_data *arg1"
, ")"
, "{"
, " (duckdb_destroy_error_data)(arg1);"
, "}"
, "duckdb_error_type hs_bindgen_c1966ca80c0b4d76 ("
, " duckdb_error_data arg1"
, ")"
, "{"
, " return (duckdb_error_data_error_type)(arg1);"
, "}"
, "char const *hs_bindgen_787ec5c9b9236c65 ("
, " duckdb_error_data arg1"
, ")"
, "{"
, " return (duckdb_error_data_message)(arg1);"
, "}"
, "_Bool hs_bindgen_6ec4f19ab789994d ("
, " duckdb_error_data arg1"
, ")"
, "{"
, " return (duckdb_error_data_has_error)(arg1);"
, "}"
, "void *hs_bindgen_f1244214a8151e9a ("
, " size_t arg1"
, ")"
, "{"
, " return (duckdb_malloc)(arg1);"
, "}"
, "void hs_bindgen_bcf85a099654942f ("
, " void *arg1"
, ")"
, "{"
, " (duckdb_free)(arg1);"
, "}"
, "idx_t hs_bindgen_3618e0173ef20b47 (void)"
, "{"
, " return (duckdb_vector_size)();"
, "}"
, "_Bool hs_bindgen_7db158389f9bbb5a ("
, " duckdb_string_t *arg1"
, ")"
, "{"
, " return (duckdb_string_is_inlined)(*arg1);"
, "}"
, "uint32_t hs_bindgen_370767e53933be13 ("
, " duckdb_string_t *arg1"
, ")"
, "{"
, " return (duckdb_string_t_length)(*arg1);"
, "}"
, "char const *hs_bindgen_4dec572fab160e21 ("
, " duckdb_string_t *arg1"
, ")"
, "{"
, " return (duckdb_string_t_data)(arg1);"
, "}"
, "duckdb_error_data hs_bindgen_98c8545376939a95 ("
, " char const *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_valid_utf8_check)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_9c5e815dd04bdc70 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_row_count)(arg1);"
, "}"
, "void *hs_bindgen_6d8e96c1f8b5a7c4 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_column_data)(arg1, arg2);"
, "}"
, "_Bool *hs_bindgen_d038d17542f439e3 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_nullmask_data)(arg1, arg2);"
, "}"
, "duckdb_data_chunk hs_bindgen_5996d8c396e44345 ("
, " duckdb_result *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_result_get_chunk)(*arg1, arg2);"
, "}"
, "_Bool hs_bindgen_95717693287571e0 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_is_streaming)(*arg1);"
, "}"
, "idx_t hs_bindgen_026a59d5dd8cd1d0 ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_result_chunk_count)(*arg1);"
, "}"
, "duckdb_data_chunk hs_bindgen_1779194488609e3a ("
, " duckdb_result *arg1"
, ")"
, "{"
, " return (duckdb_stream_fetch_chunk)(*arg1);"
, "}"
, "void hs_bindgen_97d26f995cbfe9e1 ("
, " duckdb_database arg1,"
, " duckdb_replacement_callback_t arg2,"
, " void *arg3,"
, " duckdb_delete_callback_t arg4"
, ")"
, "{"
, " (duckdb_add_replacement_scan)(arg1, arg2, arg3, arg4);"
, "}"
, "void hs_bindgen_9829208ce8f26461 ("
, " duckdb_replacement_scan_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_replacement_scan_set_function_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_826fb92442cb041e ("
, " duckdb_replacement_scan_info arg1,"
, " duckdb_value arg2"
, ")"
, "{"
, " (duckdb_replacement_scan_add_parameter)(arg1, arg2);"
, "}"
, "void hs_bindgen_19e43007fd1f8170 ("
, " duckdb_replacement_scan_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_replacement_scan_set_error)(arg1, arg2);"
, "}"
, "duckdb_scalar_function hs_bindgen_29f5e8082607c703 (void)"
, "{"
, " return (duckdb_create_scalar_function)();"
, "}"
, "void hs_bindgen_057a4b9e9634d576 ("
, " duckdb_scalar_function *arg1"
, ")"
, "{"
, " (duckdb_destroy_scalar_function)(arg1);"
, "}"
, "void hs_bindgen_d70a7a97e2b89e4d ("
, " duckdb_scalar_function arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_39e740d82a18ea0b ("
, " duckdb_scalar_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_varargs)(arg1, arg2);"
, "}"
, "void hs_bindgen_3d2dbabbd47f004c ("
, " duckdb_scalar_function arg1"
, ")"
, "{"
, " (duckdb_scalar_function_set_special_handling)(arg1);"
, "}"
, "void hs_bindgen_5bea12af803df42f ("
, " duckdb_scalar_function arg1"
, ")"
, "{"
, " (duckdb_scalar_function_set_volatile)(arg1);"
, "}"
, "void hs_bindgen_51818ec21303d214 ("
, " duckdb_scalar_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_scalar_function_add_parameter)(arg1, arg2);"
, "}"
, "void hs_bindgen_e1d8f6ace443646c ("
, " duckdb_scalar_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_return_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_c93a9fd37fbf98d6 ("
, " duckdb_scalar_function arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_scalar_function_set_extra_info)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_1c92902e5ed97bae ("
, " duckdb_scalar_function arg1,"
, " duckdb_scalar_function_bind_t arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_bind)(arg1, arg2);"
, "}"
, "void hs_bindgen_161a5fe606050dea ("
, " duckdb_bind_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_scalar_function_set_bind_data)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_83d27908da83f624 ("
, " duckdb_bind_info arg1,"
, " duckdb_copy_callback_t arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_bind_data_copy)(arg1, arg2);"
, "}"
, "void hs_bindgen_d3eb9e966acdda11 ("
, " duckdb_bind_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_bind_set_error)(arg1, arg2);"
, "}"
, "void hs_bindgen_480557d5180f6227 ("
, " duckdb_scalar_function arg1,"
, " duckdb_scalar_function_t arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_function)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_f58f0538c8a2c929 ("
, " duckdb_connection arg1,"
, " duckdb_scalar_function arg2"
, ")"
, "{"
, " return (duckdb_register_scalar_function)(arg1, arg2);"
, "}"
, "void *hs_bindgen_8bb846e4c098cebe ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_get_extra_info)(arg1);"
, "}"
, "void *hs_bindgen_353d4b2c6989c18f ("
, " duckdb_bind_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_bind_get_extra_info)(arg1);"
, "}"
, "void *hs_bindgen_7ee9535ddf4111aa ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_get_bind_data)(arg1);"
, "}"
, "void hs_bindgen_629abf4e5c702bde ("
, " duckdb_bind_info arg1,"
, " duckdb_client_context *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_get_client_context)(arg1, arg2);"
, "}"
, "void hs_bindgen_49dce543be61dc96 ("
, " duckdb_function_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_error)(arg1, arg2);"
, "}"
, "duckdb_scalar_function_set hs_bindgen_ac865eab110e40bc ("
, " char const *arg1"
, ")"
, "{"
, " return (duckdb_create_scalar_function_set)(arg1);"
, "}"
, "void hs_bindgen_967e6425d22f5053 ("
, " duckdb_scalar_function_set *arg1"
, ")"
, "{"
, " (duckdb_destroy_scalar_function_set)(arg1);"
, "}"
, "duckdb_state hs_bindgen_4de507eae58d6975 ("
, " duckdb_scalar_function_set arg1,"
, " duckdb_scalar_function arg2"
, ")"
, "{"
, " return (duckdb_add_scalar_function_to_set)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_e4e7795c0415ab7b ("
, " duckdb_connection arg1,"
, " duckdb_scalar_function_set arg2"
, ")"
, "{"
, " return (duckdb_register_scalar_function_set)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_63b454129d89f75f ("
, " duckdb_bind_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_bind_get_argument_count)(arg1);"
, "}"
, "duckdb_expression hs_bindgen_5f7dc58f348f5029 ("
, " duckdb_bind_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_scalar_function_bind_get_argument)(arg1, arg2);"
, "}"
, "void *hs_bindgen_c9951a19c1a8f16b ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_get_state)(arg1);"
, "}"
, "void hs_bindgen_ac222a01dd370217 ("
, " duckdb_scalar_function arg1,"
, " duckdb_scalar_function_init_t arg2"
, ")"
, "{"
, " (duckdb_scalar_function_set_init)(arg1, arg2);"
, "}"
, "void hs_bindgen_53b7cee299a379f8 ("
, " duckdb_init_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_init_set_error)(arg1, arg2);"
, "}"
, "void hs_bindgen_064ca7da09a75b71 ("
, " duckdb_init_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_scalar_function_init_set_state)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_cc7cfdf590abe6a3 ("
, " duckdb_init_info arg1,"
, " duckdb_client_context *arg2"
, ")"
, "{"
, " (duckdb_scalar_function_init_get_client_context)(arg1, arg2);"
, "}"
, "void *hs_bindgen_9b7c5e40eb1be92f ("
, " duckdb_init_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_init_get_bind_data)(arg1);"
, "}"
, "void *hs_bindgen_c88ef758b0fa7ab3 ("
, " duckdb_init_info arg1"
, ")"
, "{"
, " return (duckdb_scalar_function_init_get_extra_info)(arg1);"
, "}"
, "duckdb_state hs_bindgen_0fc4104d01034d1a ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " duckdb_table_description *arg4"
, ")"
, "{"
, " return (duckdb_table_description_create)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_state hs_bindgen_82a0c6b485d97488 ("
, " duckdb_connection arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " char const *arg4,"
, " duckdb_table_description *arg5"
, ")"
, "{"
, " return (duckdb_table_description_create_ext)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "void hs_bindgen_84b027cfbe2f4401 ("
, " duckdb_table_description *arg1"
, ")"
, "{"
, " (duckdb_table_description_destroy)(arg1);"
, "}"
, "char const *hs_bindgen_6ac61bf6b8c77c47 ("
, " duckdb_table_description arg1"
, ")"
, "{"
, " return (duckdb_table_description_error)(arg1);"
, "}"
, "duckdb_state hs_bindgen_4d7369d3b81bfd4c ("
, " duckdb_table_description arg1,"
, " idx_t arg2,"
, " _Bool *arg3"
, ")"
, "{"
, " return (duckdb_column_has_default)(arg1, arg2, arg3);"
, "}"
, "idx_t hs_bindgen_8f13db0d61fbb2eb ("
, " duckdb_table_description arg1"
, ")"
, "{"
, " return (duckdb_table_description_get_column_count)(arg1);"
, "}"
, "char *hs_bindgen_1bd765f144498ef7 ("
, " duckdb_table_description arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_table_description_get_column_name)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_1c6b54182f653add ("
, " duckdb_table_description arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_table_description_get_column_type)(arg1, arg2);"
, "}"
, "duckdb_table_function hs_bindgen_fc1c42be14fab1d7 (void)"
, "{"
, " return (duckdb_create_table_function)();"
, "}"
, "void hs_bindgen_9bbeca3e14750ffd ("
, " duckdb_table_function *arg1"
, ")"
, "{"
, " (duckdb_destroy_table_function)(arg1);"
, "}"
, "void hs_bindgen_fa60b5782b676b1b ("
, " duckdb_table_function arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_table_function_set_name)(arg1, arg2);"
, "}"
, "void hs_bindgen_c2b43f04cbd5d423 ("
, " duckdb_table_function arg1,"
, " duckdb_logical_type arg2"
, ")"
, "{"
, " (duckdb_table_function_add_parameter)(arg1, arg2);"
, "}"
, "void hs_bindgen_169c694648c6ccc1 ("
, " duckdb_table_function arg1,"
, " char const *arg2,"
, " duckdb_logical_type arg3"
, ")"
, "{"
, " (duckdb_table_function_add_named_parameter)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_c980cb05cbc34a77 ("
, " duckdb_table_function arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_table_function_set_extra_info)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_102b9bd82ea79e87 ("
, " duckdb_table_function arg1,"
, " duckdb_table_function_bind_t arg2"
, ")"
, "{"
, " (duckdb_table_function_set_bind)(arg1, arg2);"
, "}"
, "void hs_bindgen_b853cf848e1dd32b ("
, " duckdb_table_function arg1,"
, " duckdb_table_function_init_t arg2"
, ")"
, "{"
, " (duckdb_table_function_set_init)(arg1, arg2);"
, "}"
, "void hs_bindgen_6e9b24dd817b24cb ("
, " duckdb_table_function arg1,"
, " duckdb_table_function_init_t arg2"
, ")"
, "{"
, " (duckdb_table_function_set_local_init)(arg1, arg2);"
, "}"
, "void hs_bindgen_02b30c88a74a7b32 ("
, " duckdb_table_function arg1,"
, " duckdb_table_function_t arg2"
, ")"
, "{"
, " (duckdb_table_function_set_function)(arg1, arg2);"
, "}"
, "void hs_bindgen_7b6ddb914e22dc0c ("
, " duckdb_table_function arg1,"
, " _Bool arg2"
, ")"
, "{"
, " (duckdb_table_function_supports_projection_pushdown)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_aad41a8c83d775f6 ("
, " duckdb_connection arg1,"
, " duckdb_table_function arg2"
, ")"
, "{"
, " return (duckdb_register_table_function)(arg1, arg2);"
, "}"
, "void *hs_bindgen_6fab24b482a2ecea ("
, " duckdb_bind_info arg1"
, ")"
, "{"
, " return (duckdb_bind_get_extra_info)(arg1);"
, "}"
, "void hs_bindgen_ccf6e3d06befd12b ("
, " duckdb_bind_info arg1,"
, " duckdb_client_context *arg2"
, ")"
, "{"
, " (duckdb_table_function_get_client_context)(arg1, arg2);"
, "}"
, "void hs_bindgen_7f781750bcf9c561 ("
, " duckdb_bind_info arg1,"
, " char const *arg2,"
, " duckdb_logical_type arg3"
, ")"
, "{"
, " (duckdb_bind_add_result_column)(arg1, arg2, arg3);"
, "}"
, "idx_t hs_bindgen_021eeb8fbfbce39a ("
, " duckdb_bind_info arg1"
, ")"
, "{"
, " return (duckdb_bind_get_parameter_count)(arg1);"
, "}"
, "duckdb_value hs_bindgen_ba87799ace861635 ("
, " duckdb_bind_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_bind_get_parameter)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_c914bc6228b6bee9 ("
, " duckdb_bind_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (duckdb_bind_get_named_parameter)(arg1, arg2);"
, "}"
, "void hs_bindgen_ae6dbca28237b618 ("
, " duckdb_bind_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_bind_set_bind_data)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_78371efd83ac79c2 ("
, " duckdb_bind_info arg1,"
, " idx_t arg2,"
, " _Bool arg3"
, ")"
, "{"
, " (duckdb_bind_set_cardinality)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_bc90a0043b0ab6d4 ("
, " duckdb_bind_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_bind_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_b7875ec01bf04915 ("
, " duckdb_init_info arg1"
, ")"
, "{"
, " return (duckdb_init_get_extra_info)(arg1);"
, "}"
, "void *hs_bindgen_a0d15cbe241999e8 ("
, " duckdb_init_info arg1"
, ")"
, "{"
, " return (duckdb_init_get_bind_data)(arg1);"
, "}"
, "void hs_bindgen_97fe52be38df4eb5 ("
, " duckdb_init_info arg1,"
, " void *arg2,"
, " duckdb_delete_callback_t arg3"
, ")"
, "{"
, " (duckdb_init_set_init_data)(arg1, arg2, arg3);"
, "}"
, "idx_t hs_bindgen_ed33dd34d691cba6 ("
, " duckdb_init_info arg1"
, ")"
, "{"
, " return (duckdb_init_get_column_count)(arg1);"
, "}"
, "idx_t hs_bindgen_315d90043ca10c52 ("
, " duckdb_init_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_init_get_column_index)(arg1, arg2);"
, "}"
, "void hs_bindgen_5b19cd9c0b08207e ("
, " duckdb_init_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " (duckdb_init_set_max_threads)(arg1, arg2);"
, "}"
, "void hs_bindgen_7eed47dafd9844a0 ("
, " duckdb_init_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_init_set_error)(arg1, arg2);"
, "}"
, "void *hs_bindgen_4e748f1d10a395e9 ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_function_get_extra_info)(arg1);"
, "}"
, "void *hs_bindgen_cb63e00179906ca2 ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_function_get_bind_data)(arg1);"
, "}"
, "void *hs_bindgen_7ed5ee7b3e3d9999 ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_function_get_init_data)(arg1);"
, "}"
, "void *hs_bindgen_1f692b92cc709645 ("
, " duckdb_function_info arg1"
, ")"
, "{"
, " return (duckdb_function_get_local_init_data)(arg1);"
, "}"
, "void hs_bindgen_00bd4a7b01db4220 ("
, " duckdb_function_info arg1,"
, " char const *arg2"
, ")"
, "{"
, " (duckdb_function_set_error)(arg1, arg2);"
, "}"
, "idx_t hs_bindgen_ddabbca5182a4296 ("
, " duckdb_bind_info arg1"
, ")"
, "{"
, " return (duckdb_table_function_bind_get_result_column_count)(arg1);"
, "}"
, "char const *hs_bindgen_6327aeb7a89bbc07 ("
, " duckdb_bind_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_table_function_bind_get_result_column_name)(arg1, arg2);"
, "}"
, "duckdb_logical_type hs_bindgen_7239677075fd2324 ("
, " duckdb_bind_info arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_table_function_bind_get_result_column_type)(arg1, arg2);"
, "}"
, "void hs_bindgen_33fd2a2a6fdd62ff ("
, " duckdb_database arg1,"
, " idx_t arg2"
, ")"
, "{"
, " (duckdb_execute_tasks)(arg1, arg2);"
, "}"
, "duckdb_task_state hs_bindgen_75127cab362fdc65 ("
, " duckdb_database arg1"
, ")"
, "{"
, " return (duckdb_create_task_state)(arg1);"
, "}"
, "void hs_bindgen_c483eb3fcf9cced4 ("
, " duckdb_task_state arg1"
, ")"
, "{"
, " (duckdb_execute_tasks_state)(arg1);"
, "}"
, "idx_t hs_bindgen_a9f33b6e6c103bca ("
, " duckdb_task_state arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_execute_n_tasks_state)(arg1, arg2);"
, "}"
, "void hs_bindgen_d7af3b181ccdb7bc ("
, " duckdb_task_state arg1"
, ")"
, "{"
, " (duckdb_finish_execution)(arg1);"
, "}"
, "_Bool hs_bindgen_4a7f9cb6b99f4a2c ("
, " duckdb_task_state arg1"
, ")"
, "{"
, " return (duckdb_task_state_is_finished)(arg1);"
, "}"
, "void hs_bindgen_6b20c703713efbc1 ("
, " duckdb_task_state arg1"
, ")"
, "{"
, " (duckdb_destroy_task_state)(arg1);"
, "}"
, "_Bool hs_bindgen_b59088062cd376af ("
, " duckdb_connection arg1"
, ")"
, "{"
, " return (duckdb_execution_is_finished)(arg1);"
, "}"
, "void hs_bindgen_7416564ecbea2162 ("
, " duckdb_value *arg1"
, ")"
, "{"
, " (duckdb_destroy_value)(arg1);"
, "}"
, "duckdb_value hs_bindgen_b7a98388b23a9165 ("
, " char const *arg1"
, ")"
, "{"
, " return (duckdb_create_varchar)(arg1);"
, "}"
, "duckdb_value hs_bindgen_acf0e4b8713d5965 ("
, " char const *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_varchar_length)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_545bb1b78145c2fd ("
, " _Bool arg1"
, ")"
, "{"
, " return (duckdb_create_bool)(arg1);"
, "}"
, "duckdb_value hs_bindgen_70b127e29e4eeeee ("
, " int8_t arg1"
, ")"
, "{"
, " return (duckdb_create_int8)(arg1);"
, "}"
, "duckdb_value hs_bindgen_d066824e23ecaa3b ("
, " uint8_t arg1"
, ")"
, "{"
, " return (duckdb_create_uint8)(arg1);"
, "}"
, "duckdb_value hs_bindgen_a6cfd909f3065e49 ("
, " int16_t arg1"
, ")"
, "{"
, " return (duckdb_create_int16)(arg1);"
, "}"
, "duckdb_value hs_bindgen_a9c685bd6504c27a ("
, " uint16_t arg1"
, ")"
, "{"
, " return (duckdb_create_uint16)(arg1);"
, "}"
, "duckdb_value hs_bindgen_5bec523c4d95699b ("
, " int32_t arg1"
, ")"
, "{"
, " return (duckdb_create_int32)(arg1);"
, "}"
, "duckdb_value hs_bindgen_f2c252bc8521c880 ("
, " uint32_t arg1"
, ")"
, "{"
, " return (duckdb_create_uint32)(arg1);"
, "}"
, "duckdb_value hs_bindgen_cac3b650cf37ffd2 ("
, " uint64_t arg1"
, ")"
, "{"
, " return (duckdb_create_uint64)(arg1);"
, "}"
, "duckdb_value hs_bindgen_5181d8fcad549863 ("
, " int64_t arg1"
, ")"
, "{"
, " return (duckdb_create_int64)(arg1);"
, "}"
, "duckdb_value hs_bindgen_f6246c4c29021491 ("
, " duckdb_hugeint *arg1"
, ")"
, "{"
, " return (duckdb_create_hugeint)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_3e97e4ce6f3c80ac ("
, " duckdb_uhugeint *arg1"
, ")"
, "{"
, " return (duckdb_create_uhugeint)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_d24ce08ffed3f6b6 ("
, " duckdb_bignum *arg1"
, ")"
, "{"
, " return (duckdb_create_bignum)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_4ca0d4cd4553b621 ("
, " duckdb_decimal *arg1"
, ")"
, "{"
, " return (duckdb_create_decimal)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_8e6cf7541c757947 ("
, " float arg1"
, ")"
, "{"
, " return (duckdb_create_float)(arg1);"
, "}"
, "duckdb_value hs_bindgen_6f0cb28a70d81ff7 ("
, " double arg1"
, ")"
, "{"
, " return (duckdb_create_double)(arg1);"
, "}"
, "duckdb_value hs_bindgen_4fc78acbb0d6f7d4 ("
, " duckdb_date *arg1"
, ")"
, "{"
, " return (duckdb_create_date)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_b8abb38c489b45f3 ("
, " duckdb_time *arg1"
, ")"
, "{"
, " return (duckdb_create_time)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_1e13f4e1b882a94b ("
, " duckdb_time_ns *arg1"
, ")"
, "{"
, " return (duckdb_create_time_ns)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_23c57f1e364c528f ("
, " duckdb_time_tz *arg1"
, ")"
, "{"
, " return (duckdb_create_time_tz_value)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_931d2c720adf9f32 ("
, " duckdb_timestamp *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_4bf48d5c47b0fd30 ("
, " duckdb_timestamp *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp_tz)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_1fd8ec4cc5b7dd6c ("
, " duckdb_timestamp_ns *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp_tz_ns)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_839b89f0c97b4b9c ("
, " duckdb_timestamp_s *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp_s)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_6976ceed86104904 ("
, " duckdb_timestamp_ms *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp_ms)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_60490049e30ac729 ("
, " duckdb_timestamp_ns *arg1"
, ")"
, "{"
, " return (duckdb_create_timestamp_ns)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_83efabe4062e8681 ("
, " duckdb_interval *arg1"
, ")"
, "{"
, " return (duckdb_create_interval)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_cf735e94c5bac60d ("
, " uint8_t const *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_blob)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_c7b4b1a06cda2f10 ("
, " duckdb_bit *arg1"
, ")"
, "{"
, " return (duckdb_create_bit)(*arg1);"
, "}"
, "duckdb_value hs_bindgen_b9b73a0a629f9c40 ("
, " duckdb_uhugeint *arg1"
, ")"
, "{"
, " return (duckdb_create_uuid)(*arg1);"
, "}"
, "_Bool hs_bindgen_8daa08114c4aa357 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_bool)(arg1);"
, "}"
, "int8_t hs_bindgen_8635bf99c840171b ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_int8)(arg1);"
, "}"
, "uint8_t hs_bindgen_9bcba9c2ddd830e0 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_uint8)(arg1);"
, "}"
, "int16_t hs_bindgen_c63af2c95b187ed9 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_int16)(arg1);"
, "}"
, "uint16_t hs_bindgen_b1dacf42f5095365 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_uint16)(arg1);"
, "}"
, "int32_t hs_bindgen_6340bd0360a949a3 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_int32)(arg1);"
, "}"
, "uint32_t hs_bindgen_2da280f7709cce18 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_uint32)(arg1);"
, "}"
, "int64_t hs_bindgen_c2dd8141b4a3022f ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_int64)(arg1);"
, "}"
, "uint64_t hs_bindgen_6a3f2f6242c76931 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_uint64)(arg1);"
, "}"
, "void hs_bindgen_1c6181d93fbc8796 ("
, " duckdb_value arg1,"
, " duckdb_hugeint *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_hugeint)(arg1);"
, "}"
, "void hs_bindgen_b5857fae8dc89273 ("
, " duckdb_value arg1,"
, " duckdb_uhugeint *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_uhugeint)(arg1);"
, "}"
, "void hs_bindgen_74fbc7e89c0460ed ("
, " duckdb_value arg1,"
, " duckdb_bignum *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_bignum)(arg1);"
, "}"
, "void hs_bindgen_84e4f424589f16de ("
, " duckdb_value arg1,"
, " duckdb_decimal *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_decimal)(arg1);"
, "}"
, "float hs_bindgen_615a351162dd38b0 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_float)(arg1);"
, "}"
, "double hs_bindgen_3b54cae80b78d7a6 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_double)(arg1);"
, "}"
, "void hs_bindgen_022973e5005ce823 ("
, " duckdb_value arg1,"
, " duckdb_date *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_date)(arg1);"
, "}"
, "void hs_bindgen_d90d0681c12eaba7 ("
, " duckdb_value arg1,"
, " duckdb_time *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_time)(arg1);"
, "}"
, "void hs_bindgen_5e6ada8cebf82fef ("
, " duckdb_value arg1,"
, " duckdb_time_ns *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_time_ns)(arg1);"
, "}"
, "void hs_bindgen_d756e565b6bce9f1 ("
, " duckdb_value arg1,"
, " duckdb_time_tz *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_time_tz)(arg1);"
, "}"
, "void hs_bindgen_d9df571bb20b335a ("
, " duckdb_value arg1,"
, " duckdb_timestamp *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp)(arg1);"
, "}"
, "void hs_bindgen_b755f602a03467f7 ("
, " duckdb_value arg1,"
, " duckdb_timestamp *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp_tz)(arg1);"
, "}"
, "void hs_bindgen_c0cc85ed29a0cab5 ("
, " duckdb_value arg1,"
, " duckdb_timestamp_ns *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp_tz_ns)(arg1);"
, "}"
, "void hs_bindgen_94661a923251c477 ("
, " duckdb_value arg1,"
, " duckdb_timestamp_s *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp_s)(arg1);"
, "}"
, "void hs_bindgen_ef716f499f99907a ("
, " duckdb_value arg1,"
, " duckdb_timestamp_ms *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp_ms)(arg1);"
, "}"
, "void hs_bindgen_7b25b0eed2d77001 ("
, " duckdb_value arg1,"
, " duckdb_timestamp_ns *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_timestamp_ns)(arg1);"
, "}"
, "void hs_bindgen_988b285b39137a9f ("
, " duckdb_value arg1,"
, " duckdb_interval *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_interval)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_068c34db6e614c9a ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_value_type)(arg1);"
, "}"
, "void hs_bindgen_26638b96308a8043 ("
, " duckdb_value arg1,"
, " duckdb_blob *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_blob)(arg1);"
, "}"
, "void hs_bindgen_450ea2e919fd9d26 ("
, " duckdb_value arg1,"
, " duckdb_bit *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_bit)(arg1);"
, "}"
, "void hs_bindgen_4799e633564120e9 ("
, " duckdb_value arg1,"
, " duckdb_uhugeint *arg2"
, ")"
, "{"
, " *arg2 = (duckdb_get_uuid)(arg1);"
, "}"
, "char *hs_bindgen_06b79afac44ffc3b ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_varchar)(arg1);"
, "}"
, "duckdb_value hs_bindgen_95eb7d0f1c818e7b ("
, " duckdb_logical_type arg1,"
, " duckdb_value *arg2"
, ")"
, "{"
, " return (duckdb_create_struct_value)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_8b254090503c2df0 ("
, " duckdb_logical_type arg1,"
, " duckdb_value *arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_create_list_value)(arg1, arg2, arg3);"
, "}"
, "duckdb_value hs_bindgen_d1f6dce6518d2db5 ("
, " duckdb_logical_type arg1,"
, " duckdb_value *arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_create_array_value)(arg1, arg2, arg3);"
, "}"
, "duckdb_value hs_bindgen_fa95b21d02a873be ("
, " duckdb_logical_type arg1,"
, " duckdb_value *arg2,"
, " duckdb_value *arg3,"
, " idx_t arg4"
, ")"
, "{"
, " return (duckdb_create_map_value)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_value hs_bindgen_11c281d6e5e06b0d ("
, " duckdb_logical_type arg1,"
, " idx_t arg2,"
, " duckdb_value arg3"
, ")"
, "{"
, " return (duckdb_create_union_value)(arg1, arg2, arg3);"
, "}"
, "idx_t hs_bindgen_997728635cf0ac64 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_map_size)(arg1);"
, "}"
, "duckdb_value hs_bindgen_4abc412f4cbf3b1c ("
, " duckdb_value arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_get_map_key)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_95db52b9cb363226 ("
, " duckdb_value arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_get_map_value)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_816a2cdca59a31ab ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_is_null_value)(arg1);"
, "}"
, "duckdb_value hs_bindgen_3e293eeed247ba3e (void)"
, "{"
, " return (duckdb_create_null_value)();"
, "}"
, "idx_t hs_bindgen_014e65c8024e4108 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_list_size)(arg1);"
, "}"
, "duckdb_value hs_bindgen_e73a36f9bfcfe5a0 ("
, " duckdb_value arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_get_list_child)(arg1, arg2);"
, "}"
, "duckdb_value hs_bindgen_76712e93d9d2ee84 ("
, " duckdb_logical_type arg1,"
, " uint64_t arg2"
, ")"
, "{"
, " return (duckdb_create_enum_value)(arg1, arg2);"
, "}"
, "uint64_t hs_bindgen_f88bdd4fc6a804da ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_get_enum_value)(arg1);"
, "}"
, "duckdb_value hs_bindgen_bd541a73d7b73adb ("
, " duckdb_value arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_get_struct_child)(arg1, arg2);"
, "}"
, "char *hs_bindgen_3154db7693be8381 ("
, " duckdb_value arg1"
, ")"
, "{"
, " return (duckdb_value_to_string)(arg1);"
, "}"
, "_Bool hs_bindgen_6b857667aad1bb1a ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_boolean)(arg1, arg2, arg3);"
, "}"
, "int8_t hs_bindgen_31a9050aade5103f ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_int8)(arg1, arg2, arg3);"
, "}"
, "int16_t hs_bindgen_8f6b84207e5703cf ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_int16)(arg1, arg2, arg3);"
, "}"
, "int32_t hs_bindgen_2a73adc304a9275f ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_int32)(arg1, arg2, arg3);"
, "}"
, "int64_t hs_bindgen_666edda1d74b4198 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_int64)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_02dd46eda1283da9 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_hugeint *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_hugeint)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_3b48fdeb7cde3ab3 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_uhugeint *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_uhugeint)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_bc05565e60bda0c6 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_decimal *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_decimal)(arg1, arg2, arg3);"
, "}"
, "uint8_t hs_bindgen_fdfcd21851e7aa44 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_uint8)(arg1, arg2, arg3);"
, "}"
, "uint16_t hs_bindgen_33587e7ddcd16a45 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_uint16)(arg1, arg2, arg3);"
, "}"
, "uint32_t hs_bindgen_7af7c542181749f0 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_uint32)(arg1, arg2, arg3);"
, "}"
, "uint64_t hs_bindgen_30ad3196e505ee32 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_uint64)(arg1, arg2, arg3);"
, "}"
, "float hs_bindgen_848e3a7b82d399ae ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_float)(arg1, arg2, arg3);"
, "}"
, "double hs_bindgen_80756391f00963b4 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_double)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_b01230d807dca469 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_date *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_date)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_18390c0158b2c517 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_time *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_time)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_bd4e0af7e013790b ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_timestamp *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_timestamp)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_646a763945377be5 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_interval *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_interval)(arg1, arg2, arg3);"
, "}"
, "char *hs_bindgen_a9ba2c181c1b3356 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_varchar)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_13010e42068fb039 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_string *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_string)(arg1, arg2, arg3);"
, "}"
, "char *hs_bindgen_71da9a67e7c01761 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_varchar_internal)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_65b73058a4eafeaa ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_string *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_string_internal)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_d9b2a307bf4c994e ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3,"
, " duckdb_blob *arg4"
, ")"
, "{"
, " *arg4 = (duckdb_value_blob)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_4f187070ae13bdb4 ("
, " duckdb_result *arg1,"
, " idx_t arg2,"
, " idx_t arg3"
, ")"
, "{"
, " return (duckdb_value_is_null)(arg1, arg2, arg3);"
, "}"
, "duckdb_vector hs_bindgen_5a72a174d3b35592 ("
, " duckdb_logical_type arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_create_vector)(arg1, arg2);"
, "}"
, "void hs_bindgen_b7d6d6c4c6a20da5 ("
, " duckdb_vector *arg1"
, ")"
, "{"
, " (duckdb_destroy_vector)(arg1);"
, "}"
, "duckdb_logical_type hs_bindgen_cf2be23e58c169ae ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_vector_get_column_type)(arg1);"
, "}"
, "void *hs_bindgen_07e2e0f2f46d24a5 ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_vector_get_data)(arg1);"
, "}"
, "uint64_t *hs_bindgen_28185ea7bb3758c3 ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_vector_get_validity)(arg1);"
, "}"
, "void hs_bindgen_77e4922622421a6f ("
, " duckdb_vector arg1"
, ")"
, "{"
, " (duckdb_vector_ensure_validity_writable)(arg1);"
, "}"
, "void hs_bindgen_7236c6c4ac76f787 ("
, " duckdb_vector arg1,"
, " idx_t arg2,"
, " char const *arg3"
, ")"
, "{"
, " (duckdb_vector_assign_string_element)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_d73453c618ddc22f ("
, " duckdb_vector arg1,"
, " idx_t arg2,"
, " char const *arg3,"
, " idx_t arg4"
, ")"
, "{"
, " (duckdb_vector_assign_string_element_len)(arg1, arg2, arg3, arg4);"
, "}"
, "void hs_bindgen_17556343e48a077e ("
, " duckdb_vector arg1,"
, " idx_t arg2,"
, " char const *arg3,"
, " idx_t arg4"
, ")"
, "{"
, " (duckdb_unsafe_vector_assign_string_element_len)(arg1, arg2, arg3, arg4);"
, "}"
, "duckdb_vector hs_bindgen_b10dc3841ec1d1ad ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_list_vector_get_child)(arg1);"
, "}"
, "idx_t hs_bindgen_ec3353c36510d274 ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_list_vector_get_size)(arg1);"
, "}"
, "duckdb_state hs_bindgen_87686fe663edd51f ("
, " duckdb_vector arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_list_vector_set_size)(arg1, arg2);"
, "}"
, "duckdb_state hs_bindgen_ccc0fe7414005ff4 ("
, " duckdb_vector arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_list_vector_reserve)(arg1, arg2);"
, "}"
, "duckdb_vector hs_bindgen_f99a59b3c10f16bc ("
, " duckdb_vector arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_struct_vector_get_child)(arg1, arg2);"
, "}"
, "duckdb_vector hs_bindgen_2b6cd48bef7c1c5a ("
, " duckdb_vector arg1"
, ")"
, "{"
, " return (duckdb_array_vector_get_child)(arg1);"
, "}"
, "void hs_bindgen_53d9e13117c90e3f ("
, " duckdb_vector arg1,"
, " duckdb_selection_vector arg2,"
, " idx_t arg3"
, ")"
, "{"
, " (duckdb_slice_vector)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_d572a377573f3568 ("
, " duckdb_vector arg1,"
, " duckdb_vector arg2,"
, " duckdb_selection_vector arg3,"
, " idx_t arg4,"
, " idx_t arg5,"
, " idx_t arg6"
, ")"
, "{"
, " (duckdb_vector_copy_sel)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "void hs_bindgen_eff3eb026da85750 ("
, " duckdb_vector arg1,"
, " duckdb_value arg2"
, ")"
, "{"
, " (duckdb_vector_reference_value)(arg1, arg2);"
, "}"
, "void hs_bindgen_b59dd1dfed56f6d9 ("
, " duckdb_vector arg1,"
, " duckdb_vector arg2"
, ")"
, "{"
, " (duckdb_vector_reference_vector)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_951c8fba6822ef9d ("
, " uint64_t *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " return (duckdb_validity_row_is_valid)(arg1, arg2);"
, "}"
, "void hs_bindgen_552c2923fb858ce4 ("
, " uint64_t *arg1,"
, " idx_t arg2,"
, " _Bool arg3"
, ")"
, "{"
, " (duckdb_validity_set_row_validity)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_9e881366869db236 ("
, " uint64_t *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " (duckdb_validity_set_row_invalid)(arg1, arg2);"
, "}"
, "void hs_bindgen_1c76442784687a97 ("
, " uint64_t *arg1,"
, " idx_t arg2"
, ")"
, "{"
, " (duckdb_validity_set_row_valid)(arg1, arg2);"
, "}"
, "duckdb_selection_vector hs_bindgen_e0f1c7465a41fac7 ("
, " idx_t arg1"
, ")"
, "{"
, " return (duckdb_create_selection_vector)(arg1);"
, "}"
, "void hs_bindgen_131b24a6de70ad66 ("
, " duckdb_selection_vector arg1"
, ")"
, "{"
, " (duckdb_destroy_selection_vector)(arg1);"
, "}"
, "sel_t *hs_bindgen_efad6679c4838832 ("
, " duckdb_selection_vector arg1"
, ")"
, "{"
, " return (duckdb_selection_vector_get_data_ptr)(arg1);"
, "}"
]))
{-| The API version this translation unit targets. Define all three to compile against an older surface than the one this header describes.
__C declaration:__ @macro DUCKDB_API_VERSION_MAJOR@
__defined at:__ @duckdb.h 71:9@
__exported by:__ @duckdb.h@
-}
dUCKDB_API_VERSION_MAJOR :: BG.CInt
dUCKDB_API_VERSION_MAJOR = (1 :: BG.CInt)
{-| __C declaration:__ @macro DUCKDB_API_VERSION_MINOR@
__defined at:__ @duckdb.h 72:9@
__exported by:__ @duckdb.h@
-}
dUCKDB_API_VERSION_MINOR :: BG.CInt
dUCKDB_API_VERSION_MINOR = (5 :: BG.CInt)
{-| __C declaration:__ @macro DUCKDB_API_VERSION_PATCH@
__defined at:__ @duckdb.h 73:9@
__exported by:__ @duckdb.h@
-}
dUCKDB_API_VERSION_PATCH :: BG.CInt
dUCKDB_API_VERSION_PATCH = (6 :: BG.CInt)
{-| Set to 1 to compile the deprecated surface, 0 to omit it. Defaults from the older DUCKDB_API_NO_DEPRECATED macro when that is what the consumer defines.
__C declaration:__ @macro DUCKDB_API_ALLOW_DEPRECATED@
__defined at:__ @duckdb.h 96:9@
__exported by:__ @duckdb.h@
-}
dUCKDB_API_ALLOW_DEPRECATED :: BG.CInt
dUCKDB_API_ALLOW_DEPRECATED = (1 :: BG.CInt)
{-| Set to 1 to compile the unstable surface, 0 to omit it. Defaults from the older DUCKDB_EXTENSION_API_VERSION_UNSTABLE macro when that is what the consumer defines.
__C declaration:__ @macro DUCKDB_API_ALLOW_UNSTABLE@
__defined at:__ @duckdb.h 106:9@
__exported by:__ @duckdb.h@
-}
dUCKDB_API_ALLOW_UNSTABLE :: BG.CInt
dUCKDB_API_ALLOW_UNSTABLE = (0 :: BG.CInt)
{-| __C declaration:__ @struct \@duckdb_string_t_value_pointer@
__defined at:__ @duckdb.h 128:3@
__exported by:__ @duckdb.h@
-}
data Duckdb_string_t_value_pointer = Duckdb_string_t_value_pointer
{ length :: HsBindgen.Runtime.LibC.Word32
{- ^ __C declaration:__ @length@
__defined at:__ @duckdb.h 129:13@
__exported by:__ @duckdb.h@
-}
, prefix :: CA.ConstantArray 4 BG.CChar
{- ^ __C declaration:__ @prefix@
__defined at:__ @duckdb.h 130:9@
__exported by:__ @duckdb.h@
-}
, ptr :: BG.Ptr BG.CChar
{- ^ __C declaration:__ @ptr@
__defined at:__ @duckdb.h 131:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize Duckdb_string_t_value_pointer where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw Duckdb_string_t_value_pointer where
readRaw =
\ptr0 ->
pure Duckdb_string_t_value_pointer
<*> HasCField.readRaw (BG.Proxy @"length") ptr0
<*> HasCField.readRaw (BG.Proxy @"prefix") ptr0
<*> HasCField.readRaw (BG.Proxy @"ptr") ptr0
instance Marshal.WriteRaw Duckdb_string_t_value_pointer where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
Duckdb_string_t_value_pointer length2 prefix3 ptr4 ->
HasCField.writeRaw (BG.Proxy @"length") ptr0 length2
>> HasCField.writeRaw (BG.Proxy @"prefix") ptr0 prefix3
>> HasCField.writeRaw (BG.Proxy @"ptr") ptr0 ptr4
deriving via Marshal.EquivStorable Duckdb_string_t_value_pointer instance BG.Storable Duckdb_string_t_value_pointer
deriving via Struct.IsStructViaReadRaw Duckdb_string_t_value_pointer instance Struct.IsStruct Duckdb_string_t_value_pointer
{-| __C declaration:__ @length@
__defined at:__ @duckdb.h 129:13@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.CompatHasField.HasField "length" Duckdb_string_t_value_pointer ty where
hasField =
\x0 ->
( \y1 ->
Duckdb_string_t_value_pointer {length = y1, prefix = BG.getField @"prefix" x0, ptr = BG.getField @"ptr" x0}
, BG.getField @"length" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.HasField "length" (BG.Ptr Duckdb_string_t_value_pointer) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"length")
instance HasCField.HasCField Duckdb_string_t_value_pointer "length" where
type CFieldType Duckdb_string_t_value_pointer "length" =
HsBindgen.Runtime.LibC.Word32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @prefix@
__defined at:__ @duckdb.h 130:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ CA.ConstantArray 4 BG.CChar
) => BG.CompatHasField.HasField "prefix" Duckdb_string_t_value_pointer ty where
hasField =
\x0 ->
( \y1 ->
Duckdb_string_t_value_pointer {prefix = y1, length = BG.getField @"length" x0, ptr = BG.getField @"ptr" x0}
, BG.getField @"prefix" x0
)
instance ( ty ~ CA.ConstantArray 4 BG.CChar
) => BG.HasField "prefix" (BG.Ptr Duckdb_string_t_value_pointer) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"prefix")
instance HasCField.HasCField Duckdb_string_t_value_pointer "prefix" where
type CFieldType Duckdb_string_t_value_pointer "prefix" =
CA.ConstantArray 4 BG.CChar
offset# = \_ -> \_ -> 4
{-| __C declaration:__ @ptr@
__defined at:__ @duckdb.h 131:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.CChar
) => BG.CompatHasField.HasField "ptr" Duckdb_string_t_value_pointer ty where
hasField =
\x0 ->
( \y1 ->
Duckdb_string_t_value_pointer {ptr = y1, length = BG.getField @"length" x0, prefix = BG.getField @"prefix" x0}
, BG.getField @"ptr" x0
)
instance ( ty ~ BG.Ptr BG.CChar
) => BG.HasField "ptr" (BG.Ptr Duckdb_string_t_value_pointer) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"ptr")
instance HasCField.HasCField Duckdb_string_t_value_pointer "ptr" where
type CFieldType Duckdb_string_t_value_pointer "ptr" =
BG.Ptr BG.CChar
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @struct \@duckdb_string_t_value_inlined@
__defined at:__ @duckdb.h 133:3@
__exported by:__ @duckdb.h@
-}
data Duckdb_string_t_value_inlined = Duckdb_string_t_value_inlined
{ length :: HsBindgen.Runtime.LibC.Word32
{- ^ __C declaration:__ @length@
__defined at:__ @duckdb.h 134:13@
__exported by:__ @duckdb.h@
-}
, inlined :: CA.ConstantArray 12 BG.CChar
{- ^ __C declaration:__ @inlined@
__defined at:__ @duckdb.h 135:9@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize Duckdb_string_t_value_inlined where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw Duckdb_string_t_value_inlined where
readRaw =
\ptr0 ->
pure Duckdb_string_t_value_inlined
<*> HasCField.readRaw (BG.Proxy @"length") ptr0
<*> HasCField.readRaw (BG.Proxy @"inlined") ptr0
instance Marshal.WriteRaw Duckdb_string_t_value_inlined where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
Duckdb_string_t_value_inlined length2 inlined3 ->
HasCField.writeRaw (BG.Proxy @"length") ptr0 length2
>> HasCField.writeRaw (BG.Proxy @"inlined") ptr0 inlined3
deriving via Marshal.EquivStorable Duckdb_string_t_value_inlined instance BG.Storable Duckdb_string_t_value_inlined
deriving via Struct.IsStructViaReadRaw Duckdb_string_t_value_inlined instance Struct.IsStruct Duckdb_string_t_value_inlined
{-| __C declaration:__ @length@
__defined at:__ @duckdb.h 134:13@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.CompatHasField.HasField "length" Duckdb_string_t_value_inlined ty where
hasField =
\x0 ->
( \y1 ->
Duckdb_string_t_value_inlined {length = y1, inlined = BG.getField @"inlined" x0}
, BG.getField @"length" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.HasField "length" (BG.Ptr Duckdb_string_t_value_inlined) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"length")
instance HasCField.HasCField Duckdb_string_t_value_inlined "length" where
type CFieldType Duckdb_string_t_value_inlined "length" =
HsBindgen.Runtime.LibC.Word32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @inlined@
__defined at:__ @duckdb.h 135:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ CA.ConstantArray 12 BG.CChar
) => BG.CompatHasField.HasField "inlined" Duckdb_string_t_value_inlined ty where
hasField =
\x0 ->
( \y1 ->
Duckdb_string_t_value_inlined {inlined = y1, length = BG.getField @"length" x0}
, BG.getField @"inlined" x0
)
instance ( ty ~ CA.ConstantArray 12 BG.CChar
) => BG.HasField "inlined" (BG.Ptr Duckdb_string_t_value_inlined) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"inlined")
instance HasCField.HasCField Duckdb_string_t_value_inlined "inlined" where
type CFieldType Duckdb_string_t_value_inlined "inlined" =
CA.ConstantArray 12 BG.CChar
offset# = \_ -> \_ -> 4
{-| __C declaration:__ @union \@duckdb_string_t_value@
__defined at:__ @duckdb.h 127:2@
__exported by:__ @duckdb.h@
-}
newtype Duckdb_string_t_value = Duckdb_string_t_value
{ unwrap :: BG.ByteArray
}
deriving stock (BG.Generic)
deriving via BG.SizedByteArray 16 8 instance Marshal.StaticSize Duckdb_string_t_value
deriving via BG.SizedByteArray 16 8 instance Marshal.ReadRaw Duckdb_string_t_value
deriving via BG.SizedByteArray 16 8 instance Marshal.WriteRaw Duckdb_string_t_value
deriving via Marshal.EquivStorable Duckdb_string_t_value instance BG.Storable Duckdb_string_t_value
deriving via BG.SizedByteArray 16 8 instance Union.IsUnion Duckdb_string_t_value
{-| __C declaration:__ @pointer@
__defined at:__ @duckdb.h 132:5@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ Duckdb_string_t_value_pointer
) => BG.HasField "pointer" Duckdb_string_t_value ty where
getField = BG.getUnionPayload
{-| __C declaration:__ @pointer@
__defined at:__ @duckdb.h 132:5@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ Duckdb_string_t_value_pointer
) => BG.CompatHasField.HasField "pointer" Duckdb_string_t_value ty where
hasField =
\x0 ->
(\y1 ->
BG.setUnionPayload y1 x0, BG.getField @"pointer" x0)
instance ( ty ~ Duckdb_string_t_value_pointer
) => BG.HasField "pointer" (BG.Ptr Duckdb_string_t_value) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"pointer")
instance HasCField.HasCField Duckdb_string_t_value "pointer" where
type CFieldType Duckdb_string_t_value "pointer" =
Duckdb_string_t_value_pointer
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @inlined@
__defined at:__ @duckdb.h 136:5@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ Duckdb_string_t_value_inlined
) => BG.HasField "inlined" Duckdb_string_t_value ty where
getField = BG.getUnionPayload
{-| __C declaration:__ @inlined@
__defined at:__ @duckdb.h 136:5@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ Duckdb_string_t_value_inlined
) => BG.CompatHasField.HasField "inlined" Duckdb_string_t_value ty where
hasField =
\x0 ->
(\y1 ->
BG.setUnionPayload y1 x0, BG.getField @"inlined" x0)
instance ( ty ~ Duckdb_string_t_value_inlined
) => BG.HasField "inlined" (BG.Ptr Duckdb_string_t_value) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"inlined")
instance HasCField.HasCField Duckdb_string_t_value "inlined" where
type CFieldType Duckdb_string_t_value "inlined" =
Duckdb_string_t_value_inlined
offset# = \_ -> \_ -> 0
{-| The unstable surface is not a promise, so it is not part of any released version: its constructs may change shape or vanish. Targeting an older version while opting into it would hand back today\'s shapes under names that version never promised, so the two are mutually exclusive.
The internal representation of a VARCHAR (string_t). If the VARCHAR does not exceed 12 characters, then we inline it. Otherwise, we inline a four-byte prefix for faster string comparisons and store a pointer to the remaining characters. This is a non- owning structure, i.e., it does not have to be freed.
__C declaration:__ @struct duckdb_string_t@
__defined at:__ @duckdb.h 126:9@
__exported by:__ @duckdb.h@
-}
data DuckDBStringT = DuckDBStringT
{ value :: Duckdb_string_t_value
{- ^ __C declaration:__ @value@
__defined at:__ @duckdb.h 137:4@
__exported by:__ @duckdb.h@
-}
}
deriving stock (BG.Generic)
instance Marshal.StaticSize DuckDBStringT where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBStringT where
readRaw =
\ptr0 ->
pure DuckDBStringT
<*> HasCField.readRaw (BG.Proxy @"value") ptr0
instance Marshal.WriteRaw DuckDBStringT where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBStringT value2 ->
HasCField.writeRaw (BG.Proxy @"value") ptr0 value2
deriving via Marshal.EquivStorable DuckDBStringT instance BG.Storable DuckDBStringT
deriving via Struct.IsStructViaReadRaw DuckDBStringT instance Struct.IsStruct DuckDBStringT
{-| __C declaration:__ @value@
__defined at:__ @duckdb.h 137:4@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ Duckdb_string_t_value
) => BG.CompatHasField.HasField "value" DuckDBStringT ty where
hasField =
\x0 ->
(\y1 ->
DuckDBStringT {value = y1}, BG.getField @"value" x0)
instance ( ty ~ Duckdb_string_t_value
) => BG.HasField "value" (BG.Ptr DuckDBStringT) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"value")
instance HasCField.HasCField DuckDBStringT "value" where
type CFieldType DuckDBStringT "value" =
Duckdb_string_t_value
offset# = \_ -> \_ -> 0
{-| The returned state of different functions. Legacy naming: values use DuckDB prefix without underscore.
__C declaration:__ @enum duckdb_state@
__defined at:__ @duckdb.h 141:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBState = DuckDBState
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBState where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBState where
readRaw =
\ptr0 ->
pure DuckDBState
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBState where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBState unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBState instance BG.Storable DuckDBState
deriving via BG.CUInt instance BG.Prim DuckDBState
instance CEnum.CEnum DuckDBState where
type CEnumZ DuckDBState = BG.CUInt
toCEnum = DuckDBState
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [(0, BG.singleton "DuckDBSuccess"), (1, BG.singleton "DuckDBError")]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBState"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBState"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBState where
minDeclaredValue = DuckDBSuccess
maxDeclaredValue = DuckDBError
instance Show DuckDBState where
showsPrec = CEnum.shows
instance Read DuckDBState where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBState ty where
hasField =
\x0 ->
(\y1 ->
DuckDBState {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBState) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBState "unwrap" where
type CFieldType DuckDBState "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DuckDBSuccess@
__defined at:__ @duckdb.h 141:29@
__exported by:__ @duckdb.h@
-}
pattern DuckDBSuccess :: DuckDBState
pattern DuckDBSuccess = DuckDBState 0
{-| __C declaration:__ @DuckDBError@
__defined at:__ @duckdb.h 141:48@
__exported by:__ @duckdb.h@
-}
pattern DuckDBError :: DuckDBState
pattern DuckDBError = DuckDBState 1
{-| __C declaration:__ @idx_t@
__defined at:__ @duckdb.h 146:18@
__exported by:__ @duckdb.h@
-}
newtype DuckDBIdx = DuckDBIdx
{ unwrap :: HsBindgen.Runtime.LibC.Word64
}
deriving stock (Eq, BG.Generic, Ord, Read, Show)
deriving newtype
( BG.Bitfield
, BG.Bits
, Bounded
, Enum
, BG.FiniteBits
, BG.HasFFIType
, Integral
, BG.Ix
, Num
, BG.Prim
, Marshal.ReadRaw
, Real
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "unwrap" DuckDBIdx ty where
hasField =
\x0 ->
(\y1 ->
DuckDBIdx {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "unwrap" (BG.Ptr DuckDBIdx) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBIdx "unwrap" where
type CFieldType DuckDBIdx "unwrap" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 0
{-| An enum over DuckDB\'s internal types.
history:
* stable: v0.1.0
__C declaration:__ @enum DUCKDB_TYPE@
__defined at:__ @duckdb.h 160:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBType = DuckDBType
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBType where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBType where
readRaw =
\ptr0 ->
pure DuckDBType
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBType where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBType unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBType instance BG.Storable DuckDBType
deriving via BG.CUInt instance BG.Prim DuckDBType
instance CEnum.CEnum DuckDBType where
type CEnumZ DuckDBType = BG.CUInt
toCEnum = DuckDBType
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBTypeInvalid")
, (1, BG.singleton "DuckDBTypeBoolean")
, (2, BG.singleton "DuckDBTypeTinyInt")
, (3, BG.singleton "DuckDBTypeSmallInt")
, (4, BG.singleton "DuckDBTypeInteger")
, (5, BG.singleton "DuckDBTypeBigInt")
, (6, BG.singleton "DuckDBTypeUTinyInt")
, (7, BG.singleton "DuckDBTypeUSmallInt")
, (8, BG.singleton "DuckDBTypeUInteger")
, (9, BG.singleton "DuckDBTypeUBigInt")
, (10, BG.singleton "DuckDBTypeFloat")
, (11, BG.singleton "DuckDBTypeDouble")
, (12, BG.singleton "DuckDBTypeTimestamp")
, (13, BG.singleton "DuckDBTypeDate")
, (14, BG.singleton "DuckDBTypeTime")
, (15, BG.singleton "DuckDBTypeInterval")
, (16, BG.singleton "DuckDBTypeHugeInt")
, (17, BG.singleton "DuckDBTypeVarchar")
, (18, BG.singleton "DuckDBTypeBlob")
, (19, BG.singleton "DuckDBTypeDecimal")
, (20, BG.singleton "DuckDBTypeTimestampS")
, (21, BG.singleton "DuckDBTypeTimestampMs")
, (22, BG.singleton "DuckDBTypeTimestampNs")
, (23, BG.singleton "DuckDBTypeEnum")
, (24, BG.singleton "DuckDBTypeList")
, (25, BG.singleton "DuckDBTypeStruct")
, (26, BG.singleton "DuckDBTypeMap")
, (27, BG.singleton "DuckDBTypeUUID")
, (28, BG.singleton "DuckDBTypeUnion")
, (29, BG.singleton "DuckDBTypeBit")
, (30, BG.singleton "DuckDBTypeTimeTz")
, (31, BG.singleton "DuckDBTypeTimestampTz")
, (32, BG.singleton "DuckDBTypeUHugeInt")
, (33, BG.singleton "DuckDBTypeArray")
, (34, BG.singleton "DuckDBTypeAny")
, (35, BG.singleton "DuckDBTypeBigNum")
, (36, BG.singleton "DuckDBTypeSQLNull")
, (37, BG.singleton "DuckDBTypeStringLiteral")
, (38, BG.singleton "DuckDBTypeIntegerLiteral")
, (39, BG.singleton "DuckDBTypeTimeNs")
, (40, BG.singleton "DuckDBTypeGeometry")
, (41, BG.singleton "DuckDBTypeVariant")
, (42, BG.singleton "DuckDBTypeTimestampTzNs")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBType"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBType"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBType where
minDeclaredValue = DuckDBTypeInvalid
maxDeclaredValue = DuckDBTypeTimestampTzNs
instance Show DuckDBType where
showsPrec = CEnum.shows
instance Read DuckDBType where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBType "unwrap" where
type CFieldType DuckDBType "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_TYPE_INVALID@
__defined at:__ @duckdb.h 161:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeInvalid :: DuckDBType
pattern DuckDBTypeInvalid = DuckDBType 0
{-| bool
__C declaration:__ @DUCKDB_TYPE_BOOLEAN@
__defined at:__ @duckdb.h 164:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeBoolean :: DuckDBType
pattern DuckDBTypeBoolean = DuckDBType 1
{-| int8_t
__C declaration:__ @DUCKDB_TYPE_TINYINT@
__defined at:__ @duckdb.h 167:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTinyInt :: DuckDBType
pattern DuckDBTypeTinyInt = DuckDBType 2
{-| int16_t
__C declaration:__ @DUCKDB_TYPE_SMALLINT@
__defined at:__ @duckdb.h 170:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeSmallInt :: DuckDBType
pattern DuckDBTypeSmallInt = DuckDBType 3
{-| int32_t
__C declaration:__ @DUCKDB_TYPE_INTEGER@
__defined at:__ @duckdb.h 173:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeInteger :: DuckDBType
pattern DuckDBTypeInteger = DuckDBType 4
{-| int64_t
__C declaration:__ @DUCKDB_TYPE_BIGINT@
__defined at:__ @duckdb.h 176:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeBigInt :: DuckDBType
pattern DuckDBTypeBigInt = DuckDBType 5
{-| uint8_t
__C declaration:__ @DUCKDB_TYPE_UTINYINT@
__defined at:__ @duckdb.h 179:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUTinyInt :: DuckDBType
pattern DuckDBTypeUTinyInt = DuckDBType 6
{-| uint16_t
__C declaration:__ @DUCKDB_TYPE_USMALLINT@
__defined at:__ @duckdb.h 182:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUSmallInt :: DuckDBType
pattern DuckDBTypeUSmallInt = DuckDBType 7
{-| uint32_t
__C declaration:__ @DUCKDB_TYPE_UINTEGER@
__defined at:__ @duckdb.h 185:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUInteger :: DuckDBType
pattern DuckDBTypeUInteger = DuckDBType 8
{-| uint64_t
__C declaration:__ @DUCKDB_TYPE_UBIGINT@
__defined at:__ @duckdb.h 188:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUBigInt :: DuckDBType
pattern DuckDBTypeUBigInt = DuckDBType 9
{-| float
__C declaration:__ @DUCKDB_TYPE_FLOAT@
__defined at:__ @duckdb.h 191:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeFloat :: DuckDBType
pattern DuckDBTypeFloat = DuckDBType 10
{-| double
__C declaration:__ @DUCKDB_TYPE_DOUBLE@
__defined at:__ @duckdb.h 194:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeDouble :: DuckDBType
pattern DuckDBTypeDouble = DuckDBType 11
{-| t'DuckDBTimestamp' (microseconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP@
__defined at:__ @duckdb.h 197:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestamp :: DuckDBType
pattern DuckDBTypeTimestamp = DuckDBType 12
{-| t'DuckDBDate'
__C declaration:__ @DUCKDB_TYPE_DATE@
__defined at:__ @duckdb.h 200:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeDate :: DuckDBType
pattern DuckDBTypeDate = DuckDBType 13
{-| t'DuckDBTime'
__C declaration:__ @DUCKDB_TYPE_TIME@
__defined at:__ @duckdb.h 203:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTime :: DuckDBType
pattern DuckDBTypeTime = DuckDBType 14
{-| t'DuckDBInterval'
__C declaration:__ @DUCKDB_TYPE_INTERVAL@
__defined at:__ @duckdb.h 206:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeInterval :: DuckDBType
pattern DuckDBTypeInterval = DuckDBType 15
{-| t'DuckDBHugeInt'
__C declaration:__ @DUCKDB_TYPE_HUGEINT@
__defined at:__ @duckdb.h 209:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeHugeInt :: DuckDBType
pattern DuckDBTypeHugeInt = DuckDBType 16
{-| const char*
__C declaration:__ @DUCKDB_TYPE_VARCHAR@
__defined at:__ @duckdb.h 212:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeVarchar :: DuckDBType
pattern DuckDBTypeVarchar = DuckDBType 17
{-| t'DuckDBBlob'
__C declaration:__ @DUCKDB_TYPE_BLOB@
__defined at:__ @duckdb.h 215:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeBlob :: DuckDBType
pattern DuckDBTypeBlob = DuckDBType 18
{-| t'DuckDBDecimal'
__C declaration:__ @DUCKDB_TYPE_DECIMAL@
__defined at:__ @duckdb.h 218:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeDecimal :: DuckDBType
pattern DuckDBTypeDecimal = DuckDBType 19
{-| t'DuckDBTimestampS' (seconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP_S@
__defined at:__ @duckdb.h 221:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestampS :: DuckDBType
pattern DuckDBTypeTimestampS = DuckDBType 20
{-| t'DuckDBTimestampMs' (milliseconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP_MS@
__defined at:__ @duckdb.h 224:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestampMs :: DuckDBType
pattern DuckDBTypeTimestampMs = DuckDBType 21
{-| t'DuckDBTimestampNs' (nanoseconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP_NS@
__defined at:__ @duckdb.h 227:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestampNs :: DuckDBType
pattern DuckDBTypeTimestampNs = DuckDBType 22
{-| enum type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_ENUM@
__defined at:__ @duckdb.h 230:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeEnum :: DuckDBType
pattern DuckDBTypeEnum = DuckDBType 23
{-| list type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_LIST@
__defined at:__ @duckdb.h 233:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeList :: DuckDBType
pattern DuckDBTypeList = DuckDBType 24
{-| struct type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_STRUCT@
__defined at:__ @duckdb.h 236:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeStruct :: DuckDBType
pattern DuckDBTypeStruct = DuckDBType 25
{-| map type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_MAP@
__defined at:__ @duckdb.h 239:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeMap :: DuckDBType
pattern DuckDBTypeMap = DuckDBType 26
{-| t'DuckDBHugeInt'
__C declaration:__ @DUCKDB_TYPE_UUID@
__defined at:__ @duckdb.h 242:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUUID :: DuckDBType
pattern DuckDBTypeUUID = DuckDBType 27
{-| union type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_UNION@
__defined at:__ @duckdb.h 245:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUnion :: DuckDBType
pattern DuckDBTypeUnion = DuckDBType 28
{-| t'DuckDBBit'
__C declaration:__ @DUCKDB_TYPE_BIT@
__defined at:__ @duckdb.h 248:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeBit :: DuckDBType
pattern DuckDBTypeBit = DuckDBType 29
{-| t'DuckDBTimeTz'
__C declaration:__ @DUCKDB_TYPE_TIME_TZ@
__defined at:__ @duckdb.h 251:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimeTz :: DuckDBType
pattern DuckDBTypeTimeTz = DuckDBType 30
{-| t'DuckDBTimestamp' (microseconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP_TZ@
__defined at:__ @duckdb.h 254:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestampTz :: DuckDBType
pattern DuckDBTypeTimestampTz = DuckDBType 31
{-| t'DuckDBUHugeInt'
__C declaration:__ @DUCKDB_TYPE_UHUGEINT@
__defined at:__ @duckdb.h 257:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeUHugeInt :: DuckDBType
pattern DuckDBTypeUHugeInt = DuckDBType 32
{-| duckdb_array, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_ARRAY@
__defined at:__ @duckdb.h 260:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeArray :: DuckDBType
pattern DuckDBTypeArray = DuckDBType 33
{-| enum type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_ANY@
__defined at:__ @duckdb.h 263:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeAny :: DuckDBType
pattern DuckDBTypeAny = DuckDBType 34
{-| t'DuckDBBignum'
__C declaration:__ @DUCKDB_TYPE_BIGNUM@
__defined at:__ @duckdb.h 266:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeBigNum :: DuckDBType
pattern DuckDBTypeBigNum = DuckDBType 35
{-| enum type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_SQLNULL@
__defined at:__ @duckdb.h 269:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeSQLNull :: DuckDBType
pattern DuckDBTypeSQLNull = DuckDBType 36
{-| enum type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_STRING_LITERAL@
__defined at:__ @duckdb.h 272:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeStringLiteral :: DuckDBType
pattern DuckDBTypeStringLiteral = DuckDBType 37
{-| enum type, only useful as logical type
__C declaration:__ @DUCKDB_TYPE_INTEGER_LITERAL@
__defined at:__ @duckdb.h 275:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeIntegerLiteral :: DuckDBType
pattern DuckDBTypeIntegerLiteral = DuckDBType 38
{-| t'DuckDBTimeNs' (nanoseconds)
__C declaration:__ @DUCKDB_TYPE_TIME_NS@
__defined at:__ @duckdb.h 278:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimeNs :: DuckDBType
pattern DuckDBTypeTimeNs = DuckDBType 39
{-| GEOMETRY type, WKB blob.
__C declaration:__ @DUCKDB_TYPE_GEOMETRY@
__defined at:__ @duckdb.h 281:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeGeometry :: DuckDBType
pattern DuckDBTypeGeometry = DuckDBType 40
{-| VARIANT type.
__C declaration:__ @DUCKDB_TYPE_VARIANT@
__defined at:__ @duckdb.h 284:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeVariant :: DuckDBType
pattern DuckDBTypeVariant = DuckDBType 41
{-| t'DuckDBTimestamp' (nanoseconds)
__C declaration:__ @DUCKDB_TYPE_TIMESTAMP_TZ_NS@
__defined at:__ @duckdb.h 287:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBTypeTimestampTzNs :: DuckDBType
pattern DuckDBTypeTimestampTzNs = DuckDBType 42
{-| An enum over the pending state of a pending query result.
history:
* stable: v0.5.0
__C declaration:__ @enum duckdb_pending_state@
__defined at:__ @duckdb.h 296:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBPendingState = DuckDBPendingState
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBPendingState where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBPendingState where
readRaw =
\ptr0 ->
pure DuckDBPendingState
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBPendingState where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBPendingState unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBPendingState instance BG.Storable DuckDBPendingState
deriving via BG.CUInt instance BG.Prim DuckDBPendingState
instance CEnum.CEnum DuckDBPendingState where
type CEnumZ DuckDBPendingState = BG.CUInt
toCEnum = DuckDBPendingState
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBPendingResultReady")
, (1, BG.singleton "DuckDBPendingResultNotReady")
, (2, BG.singleton "DuckDBPendingError")
, (3, BG.singleton "DuckDBPendingNoTasksAvailable")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBPendingState"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBPendingState"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBPendingState where
minDeclaredValue = DuckDBPendingResultReady
maxDeclaredValue = DuckDBPendingNoTasksAvailable
instance Show DuckDBPendingState where
showsPrec = CEnum.shows
instance Read DuckDBPendingState where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBPendingState ty where
hasField =
\x0 ->
(\y1 ->
DuckDBPendingState {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBPendingState) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBPendingState "unwrap" where
type CFieldType DuckDBPendingState "unwrap" =
BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_PENDING_RESULT_READY@
__defined at:__ @duckdb.h 297:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBPendingResultReady :: DuckDBPendingState
pattern DuckDBPendingResultReady = DuckDBPendingState 0
{-| __C declaration:__ @DUCKDB_PENDING_RESULT_NOT_READY@
__defined at:__ @duckdb.h 298:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBPendingResultNotReady :: DuckDBPendingState
pattern DuckDBPendingResultNotReady = DuckDBPendingState 1
{-| __C declaration:__ @DUCKDB_PENDING_ERROR@
__defined at:__ @duckdb.h 299:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBPendingError :: DuckDBPendingState
pattern DuckDBPendingError = DuckDBPendingState 2
{-| __C declaration:__ @DUCKDB_PENDING_NO_TASKS_AVAILABLE@
__defined at:__ @duckdb.h 300:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBPendingNoTasksAvailable :: DuckDBPendingState
pattern DuckDBPendingNoTasksAvailable = DuckDBPendingState 3
{-| An enum over DuckDB\'s different result types.
history:
* stable: v0.10.0
__C declaration:__ @enum duckdb_result_type@
__defined at:__ @duckdb.h 309:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBResultType = DuckDBResultType
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBResultType where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBResultType where
readRaw =
\ptr0 ->
pure DuckDBResultType
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBResultType where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBResultType unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBResultType instance BG.Storable DuckDBResultType
deriving via BG.CUInt instance BG.Prim DuckDBResultType
instance CEnum.CEnum DuckDBResultType where
type CEnumZ DuckDBResultType = BG.CUInt
toCEnum = DuckDBResultType
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBResultTypeInvalid")
, (1, BG.singleton "DuckDBResultTypeChangedRows")
, (2, BG.singleton "DuckDBResultTypeNothing")
, (3, BG.singleton "DuckDBResultTypeQueryResult")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBResultType"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBResultType"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBResultType where
minDeclaredValue = DuckDBResultTypeInvalid
maxDeclaredValue = DuckDBResultTypeQueryResult
instance Show DuckDBResultType where
showsPrec = CEnum.shows
instance Read DuckDBResultType where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBResultType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBResultType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBResultType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBResultType "unwrap" where
type CFieldType DuckDBResultType "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_RESULT_TYPE_INVALID@
__defined at:__ @duckdb.h 310:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBResultTypeInvalid :: DuckDBResultType
pattern DuckDBResultTypeInvalid = DuckDBResultType 0
{-| __C declaration:__ @DUCKDB_RESULT_TYPE_CHANGED_ROWS@
__defined at:__ @duckdb.h 311:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBResultTypeChangedRows :: DuckDBResultType
pattern DuckDBResultTypeChangedRows = DuckDBResultType 1
{-| __C declaration:__ @DUCKDB_RESULT_TYPE_NOTHING@
__defined at:__ @duckdb.h 312:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBResultTypeNothing :: DuckDBResultType
pattern DuckDBResultTypeNothing = DuckDBResultType 2
{-| __C declaration:__ @DUCKDB_RESULT_TYPE_QUERY_RESULT@
__defined at:__ @duckdb.h 313:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBResultTypeQueryResult :: DuckDBResultType
pattern DuckDBResultTypeQueryResult = DuckDBResultType 3
{-| An enum over DuckDB\'s different statement types.
history:
* stable: v0.10.0
__C declaration:__ @enum duckdb_statement_type@
__defined at:__ @duckdb.h 322:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBStatementType = DuckDBStatementType
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBStatementType where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBStatementType where
readRaw =
\ptr0 ->
pure DuckDBStatementType
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBStatementType where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBStatementType unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBStatementType instance BG.Storable DuckDBStatementType
deriving via BG.CUInt instance BG.Prim DuckDBStatementType
instance CEnum.CEnum DuckDBStatementType where
type CEnumZ DuckDBStatementType = BG.CUInt
toCEnum = DuckDBStatementType
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBStatementTypeInvalid")
, (1, BG.singleton "DuckDBStatementTypeSelect")
, (2, BG.singleton "DuckDBStatementTypeInsert")
, (3, BG.singleton "DuckDBStatementTypeUpdate")
, (4, BG.singleton "DuckDBStatementTypeExplain")
, (5, BG.singleton "DuckDBStatementTypeDelete")
, (6, BG.singleton "DuckDBStatementTypePrepare")
, (7, BG.singleton "DuckDBStatementTypeCreate")
, (8, BG.singleton "DuckDBStatementTypeExecute")
, (9, BG.singleton "DuckDBStatementTypeAlter")
, (10, BG.singleton "DuckDBStatementTypeTransaction")
, (11, BG.singleton "DuckDBStatementTypeCopy")
, (12, BG.singleton "DuckDBStatementTypeAnalyze")
, (13, BG.singleton "DuckDBStatementTypeVariableSet")
, (14, BG.singleton "DuckDBStatementTypeCreateFunc")
, (15, BG.singleton "DuckDBStatementTypeDrop")
, (16, BG.singleton "DuckDBStatementTypeExport")
, (17, BG.singleton "DuckDBStatementTypePragma")
, (18, BG.singleton "DuckDBStatementTypeVacuum")
, (19, BG.singleton "DuckDBStatementTypeCall")
, (20, BG.singleton "DuckDBStatementTypeSet")
, (21, BG.singleton "DuckDBStatementTypeLoad")
, (22, BG.singleton "DuckDBStatementTypeRelation")
, (23, BG.singleton "DuckDBStatementTypeExtension")
, (24, BG.singleton "DuckDBStatementTypeLogicalPlan")
, (25, BG.singleton "DuckDBStatementTypeAttach")
, (26, BG.singleton "DuckDBStatementTypeDetach")
, (27, BG.singleton "DuckDBStatementTypeMulti")
, (28, BG.singleton "DuckDBStatementTypeCopyDatabase")
, (29, BG.singleton "DuckDBStatementTypeUpdateExtensions")
, (30, BG.singleton "DuckDBStatementTypeMergeInto")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBStatementType"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBStatementType"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBStatementType where
minDeclaredValue = DuckDBStatementTypeInvalid
maxDeclaredValue = DuckDBStatementTypeMergeInto
instance Show DuckDBStatementType where
showsPrec = CEnum.shows
instance Read DuckDBStatementType where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBStatementType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBStatementType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBStatementType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBStatementType "unwrap" where
type CFieldType DuckDBStatementType "unwrap" =
BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_INVALID@
__defined at:__ @duckdb.h 323:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeInvalid :: DuckDBStatementType
pattern DuckDBStatementTypeInvalid = DuckDBStatementType 0
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_SELECT@
__defined at:__ @duckdb.h 324:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeSelect :: DuckDBStatementType
pattern DuckDBStatementTypeSelect = DuckDBStatementType 1
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_INSERT@
__defined at:__ @duckdb.h 325:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeInsert :: DuckDBStatementType
pattern DuckDBStatementTypeInsert = DuckDBStatementType 2
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_UPDATE@
__defined at:__ @duckdb.h 326:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeUpdate :: DuckDBStatementType
pattern DuckDBStatementTypeUpdate = DuckDBStatementType 3
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_EXPLAIN@
__defined at:__ @duckdb.h 327:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeExplain :: DuckDBStatementType
pattern DuckDBStatementTypeExplain = DuckDBStatementType 4
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_DELETE@
__defined at:__ @duckdb.h 328:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeDelete :: DuckDBStatementType
pattern DuckDBStatementTypeDelete = DuckDBStatementType 5
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_PREPARE@
__defined at:__ @duckdb.h 329:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypePrepare :: DuckDBStatementType
pattern DuckDBStatementTypePrepare = DuckDBStatementType 6
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_CREATE@
__defined at:__ @duckdb.h 330:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeCreate :: DuckDBStatementType
pattern DuckDBStatementTypeCreate = DuckDBStatementType 7
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_EXECUTE@
__defined at:__ @duckdb.h 331:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeExecute :: DuckDBStatementType
pattern DuckDBStatementTypeExecute = DuckDBStatementType 8
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_ALTER@
__defined at:__ @duckdb.h 332:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeAlter :: DuckDBStatementType
pattern DuckDBStatementTypeAlter = DuckDBStatementType 9
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_TRANSACTION@
__defined at:__ @duckdb.h 333:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeTransaction :: DuckDBStatementType
pattern DuckDBStatementTypeTransaction = DuckDBStatementType 10
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_COPY@
__defined at:__ @duckdb.h 334:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeCopy :: DuckDBStatementType
pattern DuckDBStatementTypeCopy = DuckDBStatementType 11
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_ANALYZE@
__defined at:__ @duckdb.h 335:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeAnalyze :: DuckDBStatementType
pattern DuckDBStatementTypeAnalyze = DuckDBStatementType 12
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_VARIABLE_SET@
__defined at:__ @duckdb.h 336:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeVariableSet :: DuckDBStatementType
pattern DuckDBStatementTypeVariableSet = DuckDBStatementType 13
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_CREATE_FUNC@
__defined at:__ @duckdb.h 337:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeCreateFunc :: DuckDBStatementType
pattern DuckDBStatementTypeCreateFunc = DuckDBStatementType 14
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_DROP@
__defined at:__ @duckdb.h 338:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeDrop :: DuckDBStatementType
pattern DuckDBStatementTypeDrop = DuckDBStatementType 15
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_EXPORT@
__defined at:__ @duckdb.h 339:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeExport :: DuckDBStatementType
pattern DuckDBStatementTypeExport = DuckDBStatementType 16
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_PRAGMA@
__defined at:__ @duckdb.h 340:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypePragma :: DuckDBStatementType
pattern DuckDBStatementTypePragma = DuckDBStatementType 17
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_VACUUM@
__defined at:__ @duckdb.h 341:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeVacuum :: DuckDBStatementType
pattern DuckDBStatementTypeVacuum = DuckDBStatementType 18
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_CALL@
__defined at:__ @duckdb.h 342:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeCall :: DuckDBStatementType
pattern DuckDBStatementTypeCall = DuckDBStatementType 19
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_SET@
__defined at:__ @duckdb.h 343:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeSet :: DuckDBStatementType
pattern DuckDBStatementTypeSet = DuckDBStatementType 20
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_LOAD@
__defined at:__ @duckdb.h 344:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeLoad :: DuckDBStatementType
pattern DuckDBStatementTypeLoad = DuckDBStatementType 21
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_RELATION@
__defined at:__ @duckdb.h 345:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeRelation :: DuckDBStatementType
pattern DuckDBStatementTypeRelation = DuckDBStatementType 22
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_EXTENSION@
__defined at:__ @duckdb.h 346:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeExtension :: DuckDBStatementType
pattern DuckDBStatementTypeExtension = DuckDBStatementType 23
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_LOGICAL_PLAN@
__defined at:__ @duckdb.h 347:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeLogicalPlan :: DuckDBStatementType
pattern DuckDBStatementTypeLogicalPlan = DuckDBStatementType 24
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_ATTACH@
__defined at:__ @duckdb.h 348:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeAttach :: DuckDBStatementType
pattern DuckDBStatementTypeAttach = DuckDBStatementType 25
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_DETACH@
__defined at:__ @duckdb.h 349:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeDetach :: DuckDBStatementType
pattern DuckDBStatementTypeDetach = DuckDBStatementType 26
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_MULTI@
__defined at:__ @duckdb.h 350:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeMulti :: DuckDBStatementType
pattern DuckDBStatementTypeMulti = DuckDBStatementType 27
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_COPY_DATABASE@
__defined at:__ @duckdb.h 351:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeCopyDatabase :: DuckDBStatementType
pattern DuckDBStatementTypeCopyDatabase = DuckDBStatementType 28
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_UPDATE_EXTENSIONS@
__defined at:__ @duckdb.h 352:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeUpdateExtensions :: DuckDBStatementType
pattern DuckDBStatementTypeUpdateExtensions = DuckDBStatementType 29
{-| __C declaration:__ @DUCKDB_STATEMENT_TYPE_MERGE_INTO@
__defined at:__ @duckdb.h 353:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBStatementTypeMergeInto :: DuckDBStatementType
pattern DuckDBStatementTypeMergeInto = DuckDBStatementType 30
{-| An enum over DuckDB\'s different error types.
history:
* stable: v1.1.0
__C declaration:__ @enum duckdb_error_type@
__defined at:__ @duckdb.h 362:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBErrorType = DuckDBErrorType
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBErrorType where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBErrorType where
readRaw =
\ptr0 ->
pure DuckDBErrorType
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBErrorType where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBErrorType unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBErrorType instance BG.Storable DuckDBErrorType
deriving via BG.CUInt instance BG.Prim DuckDBErrorType
instance CEnum.CEnum DuckDBErrorType where
type CEnumZ DuckDBErrorType = BG.CUInt
toCEnum = DuckDBErrorType
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBErrorInvalid")
, (1, BG.singleton "DuckDBErrorOutOfRange")
, (2, BG.singleton "DuckDBErrorConversion")
, (3, BG.singleton "DuckDBErrorUnknownType")
, (4, BG.singleton "DuckDBErrorDecimal")
, (5, BG.singleton "DuckDBErrorMismatchType")
, (6, BG.singleton "DuckDBErrorDivideByZero")
, (7, BG.singleton "DuckDBErrorObjectSize")
, (8, BG.singleton "DuckDBErrorInvalidType")
, (9, BG.singleton "DuckDBErrorSerialization")
, (10, BG.singleton "DuckDBErrorTransaction")
, (11, BG.singleton "DuckDBErrorNotImplemented")
, (12, BG.singleton "DuckDBErrorExpression")
, (13, BG.singleton "DuckDBErrorCatalog")
, (14, BG.singleton "DuckDBErrorParser")
, (15, BG.singleton "DuckDBErrorPlanner")
, (16, BG.singleton "DuckDBErrorScheduler")
, (17, BG.singleton "DuckDBErrorExecutor")
, (18, BG.singleton "DuckDBErrorConstraint")
, (19, BG.singleton "DuckDBErrorIndex")
, (20, BG.singleton "DuckDBErrorStat")
, (21, BG.singleton "DuckDBErrorConnection")
, (22, BG.singleton "DuckDBErrorSyntax")
, (23, BG.singleton "DuckDBErrorSettings")
, (24, BG.singleton "DuckDBErrorBinder")
, (25, BG.singleton "DuckDBErrorNetwork")
, (26, BG.singleton "DuckDBErrorOptimizer")
, (27, BG.singleton "DuckDBErrorNullPointer")
, (28, BG.singleton "DuckDBErrorIO")
, (29, BG.singleton "DuckDBErrorInterrupt")
, (30, BG.singleton "DuckDBErrorFatal")
, (31, BG.singleton "DuckDBErrorInternal")
, (32, BG.singleton "DuckDBErrorInvalidInput")
, (33, BG.singleton "DuckDBErrorOutOfMemory")
, (34, BG.singleton "DuckDBErrorPermission")
, (35, BG.singleton "DuckDBErrorParameterNotResolved")
, (36, BG.singleton "DuckDBErrorParameterNotAllowed")
, (37, BG.singleton "DuckDBErrorDependency")
, (38, BG.singleton "DuckDBErrorHTTP")
, (39, BG.singleton "DuckDBErrorMissingExtension")
, (40, BG.singleton "DuckDBErrorAutoload")
, (41, BG.singleton "DuckDBErrorSequence")
, (42, BG.singleton "DuckDBInvalidConfiguration")
, (43, BG.singleton "DuckDBErrorDataCorruption")
, (44, BG.singleton "DuckDBErrorResourceInUse")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBErrorType"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBErrorType"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBErrorType where
minDeclaredValue = DuckDBErrorInvalid
maxDeclaredValue = DuckDBErrorResourceInUse
instance Show DuckDBErrorType where
showsPrec = CEnum.shows
instance Read DuckDBErrorType where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBErrorType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBErrorType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBErrorType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBErrorType "unwrap" where
type CFieldType DuckDBErrorType "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_ERROR_INVALID@
__defined at:__ @duckdb.h 363:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorInvalid :: DuckDBErrorType
pattern DuckDBErrorInvalid = DuckDBErrorType 0
{-| __C declaration:__ @DUCKDB_ERROR_OUT_OF_RANGE@
__defined at:__ @duckdb.h 364:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorOutOfRange :: DuckDBErrorType
pattern DuckDBErrorOutOfRange = DuckDBErrorType 1
{-| __C declaration:__ @DUCKDB_ERROR_CONVERSION@
__defined at:__ @duckdb.h 365:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorConversion :: DuckDBErrorType
pattern DuckDBErrorConversion = DuckDBErrorType 2
{-| __C declaration:__ @DUCKDB_ERROR_UNKNOWN_TYPE@
__defined at:__ @duckdb.h 366:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorUnknownType :: DuckDBErrorType
pattern DuckDBErrorUnknownType = DuckDBErrorType 3
{-| __C declaration:__ @DUCKDB_ERROR_DECIMAL@
__defined at:__ @duckdb.h 367:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorDecimal :: DuckDBErrorType
pattern DuckDBErrorDecimal = DuckDBErrorType 4
{-| __C declaration:__ @DUCKDB_ERROR_MISMATCH_TYPE@
__defined at:__ @duckdb.h 368:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorMismatchType :: DuckDBErrorType
pattern DuckDBErrorMismatchType = DuckDBErrorType 5
{-| __C declaration:__ @DUCKDB_ERROR_DIVIDE_BY_ZERO@
__defined at:__ @duckdb.h 369:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorDivideByZero :: DuckDBErrorType
pattern DuckDBErrorDivideByZero = DuckDBErrorType 6
{-| __C declaration:__ @DUCKDB_ERROR_OBJECT_SIZE@
__defined at:__ @duckdb.h 370:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorObjectSize :: DuckDBErrorType
pattern DuckDBErrorObjectSize = DuckDBErrorType 7
{-| __C declaration:__ @DUCKDB_ERROR_INVALID_TYPE@
__defined at:__ @duckdb.h 371:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorInvalidType :: DuckDBErrorType
pattern DuckDBErrorInvalidType = DuckDBErrorType 8
{-| __C declaration:__ @DUCKDB_ERROR_SERIALIZATION@
__defined at:__ @duckdb.h 372:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorSerialization :: DuckDBErrorType
pattern DuckDBErrorSerialization = DuckDBErrorType 9
{-| __C declaration:__ @DUCKDB_ERROR_TRANSACTION@
__defined at:__ @duckdb.h 373:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorTransaction :: DuckDBErrorType
pattern DuckDBErrorTransaction = DuckDBErrorType 10
{-| __C declaration:__ @DUCKDB_ERROR_NOT_IMPLEMENTED@
__defined at:__ @duckdb.h 374:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorNotImplemented :: DuckDBErrorType
pattern DuckDBErrorNotImplemented = DuckDBErrorType 11
{-| __C declaration:__ @DUCKDB_ERROR_EXPRESSION@
__defined at:__ @duckdb.h 375:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorExpression :: DuckDBErrorType
pattern DuckDBErrorExpression = DuckDBErrorType 12
{-| __C declaration:__ @DUCKDB_ERROR_CATALOG@
__defined at:__ @duckdb.h 376:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorCatalog :: DuckDBErrorType
pattern DuckDBErrorCatalog = DuckDBErrorType 13
{-| __C declaration:__ @DUCKDB_ERROR_PARSER@
__defined at:__ @duckdb.h 377:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorParser :: DuckDBErrorType
pattern DuckDBErrorParser = DuckDBErrorType 14
{-| __C declaration:__ @DUCKDB_ERROR_PLANNER@
__defined at:__ @duckdb.h 378:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorPlanner :: DuckDBErrorType
pattern DuckDBErrorPlanner = DuckDBErrorType 15
{-| __C declaration:__ @DUCKDB_ERROR_SCHEDULER@
__defined at:__ @duckdb.h 379:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorScheduler :: DuckDBErrorType
pattern DuckDBErrorScheduler = DuckDBErrorType 16
{-| __C declaration:__ @DUCKDB_ERROR_EXECUTOR@
__defined at:__ @duckdb.h 380:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorExecutor :: DuckDBErrorType
pattern DuckDBErrorExecutor = DuckDBErrorType 17
{-| __C declaration:__ @DUCKDB_ERROR_CONSTRAINT@
__defined at:__ @duckdb.h 381:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorConstraint :: DuckDBErrorType
pattern DuckDBErrorConstraint = DuckDBErrorType 18
{-| __C declaration:__ @DUCKDB_ERROR_INDEX@
__defined at:__ @duckdb.h 382:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorIndex :: DuckDBErrorType
pattern DuckDBErrorIndex = DuckDBErrorType 19
{-| __C declaration:__ @DUCKDB_ERROR_STAT@
__defined at:__ @duckdb.h 383:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorStat :: DuckDBErrorType
pattern DuckDBErrorStat = DuckDBErrorType 20
{-| __C declaration:__ @DUCKDB_ERROR_CONNECTION@
__defined at:__ @duckdb.h 384:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorConnection :: DuckDBErrorType
pattern DuckDBErrorConnection = DuckDBErrorType 21
{-| __C declaration:__ @DUCKDB_ERROR_SYNTAX@
__defined at:__ @duckdb.h 385:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorSyntax :: DuckDBErrorType
pattern DuckDBErrorSyntax = DuckDBErrorType 22
{-| __C declaration:__ @DUCKDB_ERROR_SETTINGS@
__defined at:__ @duckdb.h 386:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorSettings :: DuckDBErrorType
pattern DuckDBErrorSettings = DuckDBErrorType 23
{-| __C declaration:__ @DUCKDB_ERROR_BINDER@
__defined at:__ @duckdb.h 387:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorBinder :: DuckDBErrorType
pattern DuckDBErrorBinder = DuckDBErrorType 24
{-| __C declaration:__ @DUCKDB_ERROR_NETWORK@
__defined at:__ @duckdb.h 388:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorNetwork :: DuckDBErrorType
pattern DuckDBErrorNetwork = DuckDBErrorType 25
{-| __C declaration:__ @DUCKDB_ERROR_OPTIMIZER@
__defined at:__ @duckdb.h 389:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorOptimizer :: DuckDBErrorType
pattern DuckDBErrorOptimizer = DuckDBErrorType 26
{-| __C declaration:__ @DUCKDB_ERROR_NULL_POINTER@
__defined at:__ @duckdb.h 390:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorNullPointer :: DuckDBErrorType
pattern DuckDBErrorNullPointer = DuckDBErrorType 27
{-| __C declaration:__ @DUCKDB_ERROR_IO@
__defined at:__ @duckdb.h 391:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorIO :: DuckDBErrorType
pattern DuckDBErrorIO = DuckDBErrorType 28
{-| __C declaration:__ @DUCKDB_ERROR_INTERRUPT@
__defined at:__ @duckdb.h 392:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorInterrupt :: DuckDBErrorType
pattern DuckDBErrorInterrupt = DuckDBErrorType 29
{-| __C declaration:__ @DUCKDB_ERROR_FATAL@
__defined at:__ @duckdb.h 393:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorFatal :: DuckDBErrorType
pattern DuckDBErrorFatal = DuckDBErrorType 30
{-| __C declaration:__ @DUCKDB_ERROR_INTERNAL@
__defined at:__ @duckdb.h 394:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorInternal :: DuckDBErrorType
pattern DuckDBErrorInternal = DuckDBErrorType 31
{-| __C declaration:__ @DUCKDB_ERROR_INVALID_INPUT@
__defined at:__ @duckdb.h 395:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorInvalidInput :: DuckDBErrorType
pattern DuckDBErrorInvalidInput = DuckDBErrorType 32
{-| __C declaration:__ @DUCKDB_ERROR_OUT_OF_MEMORY@
__defined at:__ @duckdb.h 396:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorOutOfMemory :: DuckDBErrorType
pattern DuckDBErrorOutOfMemory = DuckDBErrorType 33
{-| __C declaration:__ @DUCKDB_ERROR_PERMISSION@
__defined at:__ @duckdb.h 397:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorPermission :: DuckDBErrorType
pattern DuckDBErrorPermission = DuckDBErrorType 34
{-| __C declaration:__ @DUCKDB_ERROR_PARAMETER_NOT_RESOLVED@
__defined at:__ @duckdb.h 398:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorParameterNotResolved :: DuckDBErrorType
pattern DuckDBErrorParameterNotResolved = DuckDBErrorType 35
{-| __C declaration:__ @DUCKDB_ERROR_PARAMETER_NOT_ALLOWED@
__defined at:__ @duckdb.h 399:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorParameterNotAllowed :: DuckDBErrorType
pattern DuckDBErrorParameterNotAllowed = DuckDBErrorType 36
{-| __C declaration:__ @DUCKDB_ERROR_DEPENDENCY@
__defined at:__ @duckdb.h 400:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorDependency :: DuckDBErrorType
pattern DuckDBErrorDependency = DuckDBErrorType 37
{-| __C declaration:__ @DUCKDB_ERROR_HTTP@
__defined at:__ @duckdb.h 401:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorHTTP :: DuckDBErrorType
pattern DuckDBErrorHTTP = DuckDBErrorType 38
{-| __C declaration:__ @DUCKDB_ERROR_MISSING_EXTENSION@
__defined at:__ @duckdb.h 402:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorMissingExtension :: DuckDBErrorType
pattern DuckDBErrorMissingExtension = DuckDBErrorType 39
{-| __C declaration:__ @DUCKDB_ERROR_AUTOLOAD@
__defined at:__ @duckdb.h 403:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorAutoload :: DuckDBErrorType
pattern DuckDBErrorAutoload = DuckDBErrorType 40
{-| __C declaration:__ @DUCKDB_ERROR_SEQUENCE@
__defined at:__ @duckdb.h 404:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorSequence :: DuckDBErrorType
pattern DuckDBErrorSequence = DuckDBErrorType 41
{-| __C declaration:__ @DUCKDB_ERROR_DATA_CORRUPTION@
__defined at:__ @duckdb.h 405:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorDataCorruption :: DuckDBErrorType
pattern DuckDBErrorDataCorruption = DuckDBErrorType 43
{-| __C declaration:__ @DUCKDB_INVALID_CONFIGURATION@
__defined at:__ @duckdb.h 406:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBInvalidConfiguration :: DuckDBErrorType
pattern DuckDBInvalidConfiguration = DuckDBErrorType 42
{-| __C declaration:__ @DUCKDB_ERROR_RESOURCE_IN_USE@
__defined at:__ @duckdb.h 407:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBErrorResourceInUse :: DuckDBErrorType
pattern DuckDBErrorResourceInUse = DuckDBErrorType 44
{-| An enum over DuckDB\'s different cast modes.
history:
* stable: v1.1.0
__C declaration:__ @enum duckdb_cast_mode@
__defined at:__ @duckdb.h 416:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCastMode = DuckDBCastMode
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBCastMode where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBCastMode where
readRaw =
\ptr0 ->
pure DuckDBCastMode
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBCastMode where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBCastMode unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBCastMode instance BG.Storable DuckDBCastMode
deriving via BG.CUInt instance BG.Prim DuckDBCastMode
instance CEnum.CEnum DuckDBCastMode where
type CEnumZ DuckDBCastMode = BG.CUInt
toCEnum = DuckDBCastMode
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [(0, BG.singleton "DuckDBCastNormal"), (1, BG.singleton "DuckDBCastTry")]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBCastMode"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBCastMode"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBCastMode where
minDeclaredValue = DuckDBCastNormal
maxDeclaredValue = DuckDBCastTry
instance Show DuckDBCastMode where
showsPrec = CEnum.shows
instance Read DuckDBCastMode where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBCastMode ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCastMode {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBCastMode) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCastMode "unwrap" where
type CFieldType DuckDBCastMode "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_CAST_NORMAL@
__defined at:__ @duckdb.h 417:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCastNormal :: DuckDBCastMode
pattern DuckDBCastNormal = DuckDBCastMode 0
{-| __C declaration:__ @DUCKDB_CAST_TRY@
__defined at:__ @duckdb.h 418:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCastTry :: DuckDBCastMode
pattern DuckDBCastTry = DuckDBCastMode 1
{-| Flags for opening files.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @enum duckdb_file_flag@
__defined at:__ @duckdb.h 428:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBFileFlag = DuckDBFileFlag
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBFileFlag where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBFileFlag where
readRaw =
\ptr0 ->
pure DuckDBFileFlag
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBFileFlag where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBFileFlag unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBFileFlag instance BG.Storable DuckDBFileFlag
deriving via BG.CUInt instance BG.Prim DuckDBFileFlag
instance CEnum.CEnum DuckDBFileFlag where
type CEnumZ DuckDBFileFlag = BG.CUInt
toCEnum = DuckDBFileFlag
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBFileFlagInvalid")
, (1, BG.singleton "DuckDBFileFlagRead")
, (2, BG.singleton "DuckDBFileFlagWrite")
, (3, BG.singleton "DuckDBFileFlagCreate")
, (4, BG.singleton "DuckDBFileFlagCreateNew")
, (5, BG.singleton "DuckDBFileFlagAppend")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBFileFlag"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBFileFlag"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBFileFlag where
minDeclaredValue = DuckDBFileFlagInvalid
maxDeclaredValue = DuckDBFileFlagAppend
instance Show DuckDBFileFlag where
showsPrec = CEnum.shows
instance Read DuckDBFileFlag where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBFileFlag ty where
hasField =
\x0 ->
(\y1 ->
DuckDBFileFlag {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBFileFlag) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBFileFlag "unwrap" where
type CFieldType DuckDBFileFlag "unwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_FILE_FLAG_INVALID@
__defined at:__ @duckdb.h 429:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagInvalid :: DuckDBFileFlag
pattern DuckDBFileFlagInvalid = DuckDBFileFlag 0
{-| Open the file with read capabilities.
__C declaration:__ @DUCKDB_FILE_FLAG_READ@
__defined at:__ @duckdb.h 432:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagRead :: DuckDBFileFlag
pattern DuckDBFileFlagRead = DuckDBFileFlag 1
{-| Open the file with write capabilities.
__C declaration:__ @DUCKDB_FILE_FLAG_WRITE@
__defined at:__ @duckdb.h 435:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagWrite :: DuckDBFileFlag
pattern DuckDBFileFlagWrite = DuckDBFileFlag 2
{-| Create a new file, or open if it already exists.
__C declaration:__ @DUCKDB_FILE_FLAG_CREATE@
__defined at:__ @duckdb.h 438:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagCreate :: DuckDBFileFlag
pattern DuckDBFileFlagCreate = DuckDBFileFlag 3
{-| Create a new file, or fail if it already exists.
__C declaration:__ @DUCKDB_FILE_FLAG_CREATE_NEW@
__defined at:__ @duckdb.h 441:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagCreateNew :: DuckDBFileFlag
pattern DuckDBFileFlagCreateNew = DuckDBFileFlag 4
{-| Open the file in append mode.
__C declaration:__ @DUCKDB_FILE_FLAG_APPEND@
__defined at:__ @duckdb.h 444:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBFileFlagAppend :: DuckDBFileFlag
pattern DuckDBFileFlagAppend = DuckDBFileFlag 5
{-| An enum over DuckDB\'s configuration option scopes.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @enum duckdb_config_option_scope@
__defined at:__ @duckdb.h 454:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBConfigOptionScope = DuckDBConfigOptionScope
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBConfigOptionScope where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBConfigOptionScope where
readRaw =
\ptr0 ->
pure DuckDBConfigOptionScope
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBConfigOptionScope where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBConfigOptionScope unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBConfigOptionScope instance BG.Storable DuckDBConfigOptionScope
deriving via BG.CUInt instance BG.Prim DuckDBConfigOptionScope
instance CEnum.CEnum DuckDBConfigOptionScope where
type CEnumZ DuckDBConfigOptionScope = BG.CUInt
toCEnum = DuckDBConfigOptionScope
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBConfigOptionScopeInvalid")
, (1, BG.singleton "DuckDBConfigOptionScopeLocal")
, (2, BG.singleton "DuckDBConfigOptionScopeSession")
, (3, BG.singleton "DuckDBConfigOptionScopeGlobal")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBConfigOptionScope"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBConfigOptionScope"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBConfigOptionScope where
minDeclaredValue = DuckDBConfigOptionScopeInvalid
maxDeclaredValue = DuckDBConfigOptionScopeGlobal
instance Show DuckDBConfigOptionScope where
showsPrec = CEnum.shows
instance Read DuckDBConfigOptionScope where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBConfigOptionScope ty where
hasField =
\x0 ->
(\y1 ->
DuckDBConfigOptionScope {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBConfigOptionScope) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBConfigOptionScope "unwrap" where
type CFieldType DuckDBConfigOptionScope "unwrap" =
BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_CONFIG_OPTION_SCOPE_INVALID@
__defined at:__ @duckdb.h 455:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBConfigOptionScopeInvalid :: DuckDBConfigOptionScope
pattern DuckDBConfigOptionScopeInvalid = DuckDBConfigOptionScope 0
{-| The option is set for the duration of the current transaction only. CURRENTLY NOT IMPLEMENTED.
__C declaration:__ @DUCKDB_CONFIG_OPTION_SCOPE_LOCAL@
__defined at:__ @duckdb.h 458:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBConfigOptionScopeLocal :: DuckDBConfigOptionScope
pattern DuckDBConfigOptionScopeLocal = DuckDBConfigOptionScope 1
{-| The option is set for the current session/connection only.
__C declaration:__ @DUCKDB_CONFIG_OPTION_SCOPE_SESSION@
__defined at:__ @duckdb.h 461:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBConfigOptionScopeSession :: DuckDBConfigOptionScope
pattern DuckDBConfigOptionScopeSession = DuckDBConfigOptionScope 2
{-| Set the option globally for all sessions/connections.
__C declaration:__ @DUCKDB_CONFIG_OPTION_SCOPE_GLOBAL@
__defined at:__ @duckdb.h 464:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBConfigOptionScopeGlobal :: DuckDBConfigOptionScope
pattern DuckDBConfigOptionScopeGlobal = DuckDBConfigOptionScope 3
{-| An enum over DuckDB\'s catalog entry types.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @enum duckdb_catalog_entry_type@
__defined at:__ @duckdb.h 474:14@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCatalogEntryType = DuckDBCatalogEntryType
{ unwrap :: BG.CUInt
}
deriving stock (Eq, BG.Generic, Ord)
deriving newtype (BG.HasFFIType)
instance Marshal.StaticSize DuckDBCatalogEntryType where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBCatalogEntryType where
readRaw =
\ptr0 ->
pure DuckDBCatalogEntryType
<*> Marshal.readRawByteOff ptr0 (0 :: Int)
instance Marshal.WriteRaw DuckDBCatalogEntryType where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBCatalogEntryType unwrap2 ->
Marshal.writeRawByteOff ptr0 (0 :: Int) unwrap2
deriving via Marshal.EquivStorable DuckDBCatalogEntryType instance BG.Storable DuckDBCatalogEntryType
deriving via BG.CUInt instance BG.Prim DuckDBCatalogEntryType
instance CEnum.CEnum DuckDBCatalogEntryType where
type CEnumZ DuckDBCatalogEntryType = BG.CUInt
toCEnum = DuckDBCatalogEntryType
fromCEnum = BG.getField @"unwrap"
declaredValues =
\_ ->
CEnum.declaredValuesFromList [ (0, BG.singleton "DuckDBCatalogEntryTypeInvalid")
, (1, BG.singleton "DuckDBCatalogEntryTypeTable")
, (2, BG.singleton "DuckDBCatalogEntryTypeSchema")
, (3, BG.singleton "DuckDBCatalogEntryTypeView")
, (4, BG.singleton "DuckDBCatalogEntryTypeIndex")
, (5, BG.singleton "DuckDBCatalogEntryTypePreparedStatement")
, (6, BG.singleton "DuckDBCatalogEntryTypeSequence")
, (7, BG.singleton "DuckDBCatalogEntryTypeCollation")
, (8, BG.singleton "DuckDBCatalogEntryTypeType")
, (9, BG.singleton "DuckDBCatalogEntryTypeDatabase")
]
showsUndeclared =
CEnum.showsWrappedUndeclared "DuckDBCatalogEntryType"
readPrecUndeclared =
CEnum.readPrecWrappedUndeclared "DuckDBCatalogEntryType"
isDeclared = CEnum.seqIsDeclared
mkDeclared = CEnum.seqMkDeclared
instance CEnum.SequentialCEnum DuckDBCatalogEntryType where
minDeclaredValue = DuckDBCatalogEntryTypeInvalid
maxDeclaredValue = DuckDBCatalogEntryTypeDatabase
instance Show DuckDBCatalogEntryType where
showsPrec = CEnum.shows
instance Read DuckDBCatalogEntryType where
readPrec = CEnum.readPrec
readList = BG.readListDefault
readListPrec = BG.readListPrecDefault
instance ( ty ~ BG.CUInt
) => BG.CompatHasField.HasField "unwrap" DuckDBCatalogEntryType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCatalogEntryType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.CUInt
) => BG.HasField "unwrap" (BG.Ptr DuckDBCatalogEntryType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCatalogEntryType "unwrap" where
type CFieldType DuckDBCatalogEntryType "unwrap" =
BG.CUInt
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_INVALID@
__defined at:__ @duckdb.h 475:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeInvalid :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeInvalid = DuckDBCatalogEntryType 0
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_TABLE@
__defined at:__ @duckdb.h 476:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeTable :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeTable = DuckDBCatalogEntryType 1
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_SCHEMA@
__defined at:__ @duckdb.h 477:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeSchema :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeSchema = DuckDBCatalogEntryType 2
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_VIEW@
__defined at:__ @duckdb.h 478:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeView :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeView = DuckDBCatalogEntryType 3
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_INDEX@
__defined at:__ @duckdb.h 479:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeIndex :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeIndex = DuckDBCatalogEntryType 4
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_PREPARED_STATEMENT@
__defined at:__ @duckdb.h 480:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypePreparedStatement :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypePreparedStatement = DuckDBCatalogEntryType 5
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_SEQUENCE@
__defined at:__ @duckdb.h 481:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeSequence :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeSequence = DuckDBCatalogEntryType 6
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_COLLATION@
__defined at:__ @duckdb.h 482:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeCollation :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeCollation = DuckDBCatalogEntryType 7
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_TYPE@
__defined at:__ @duckdb.h 483:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeType :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeType = DuckDBCatalogEntryType 8
{-| __C declaration:__ @DUCKDB_CATALOG_ENTRY_TYPE_DATABASE@
__defined at:__ @duckdb.h 484:2@
__exported by:__ @duckdb.h@
-}
pattern DuckDBCatalogEntryTypeDatabase :: DuckDBCatalogEntryType
pattern DuckDBCatalogEntryTypeDatabase = DuckDBCatalogEntryType 9
{-|
Alias for the t'DuckDBType' enum.
history:
* stable: v0.1.0
__C declaration:__ @duckdb_type@
__defined at:__ @duckdb.h 497:21@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTypeAlias = DuckDBTypeAlias
{ unwrap :: DuckDBType
}
deriving stock (Eq, BG.Generic, Ord, Read, Show)
deriving newtype
( BG.HasFFIType
, BG.Prim
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ DuckDBType
) => BG.CompatHasField.HasField "unwrap" DuckDBTypeAlias ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTypeAlias {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ DuckDBType
) => BG.HasField "unwrap" (BG.Ptr DuckDBTypeAlias) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTypeAlias "unwrap" where
type CFieldType DuckDBTypeAlias "unwrap" = DuckDBType
offset# = \_ -> \_ -> 0
{-| DATE is stored as days since 1970-01-01.
history:
* stable: v0.1.0
__C declaration:__ @struct duckdb_date@
__defined at:__ @duckdb.h 579:8@
__exported by:__ @duckdb.h@
-}
data DuckDBDate = DuckDBDate
{ days :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @days@
__defined at:__ @duckdb.h 580:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBDate where
staticSizeOf = \_ -> (4 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBDate where
readRaw =
\ptr0 ->
pure DuckDBDate
<*> HasCField.readRaw (BG.Proxy @"days") ptr0
instance Marshal.WriteRaw DuckDBDate where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBDate days2 ->
HasCField.writeRaw (BG.Proxy @"days") ptr0 days2
deriving via Marshal.EquivStorable DuckDBDate instance BG.Storable DuckDBDate
deriving via Struct.IsStructViaReadRaw DuckDBDate instance Struct.IsStruct DuckDBDate
{-| __C declaration:__ @days@
__defined at:__ @duckdb.h 580:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "days" DuckDBDate ty where
hasField =
\x0 ->
(\y1 ->
DuckDBDate {days = y1}, BG.getField @"days" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "days" (BG.Ptr DuckDBDate) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"days")
instance HasCField.HasCField DuckDBDate "days" where
type CFieldType DuckDBDate "days" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 0
{-| Decomposed date components.
history:
* stable: v0.2.9
__C declaration:__ @struct duckdb_date_struct@
__defined at:__ @duckdb.h 589:8@
__exported by:__ @duckdb.h@
-}
data DuckDBDateStruct = DuckDBDateStruct
{ year :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @year@
__defined at:__ @duckdb.h 590:10@
__exported by:__ @duckdb.h@
-}
, month :: HsBindgen.Runtime.LibC.Int8
{- ^ __C declaration:__ @month@
__defined at:__ @duckdb.h 591:9@
__exported by:__ @duckdb.h@
-}
, day :: HsBindgen.Runtime.LibC.Int8
{- ^ __C declaration:__ @day@
__defined at:__ @duckdb.h 592:9@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBDateStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBDateStruct where
readRaw =
\ptr0 ->
pure DuckDBDateStruct
<*> HasCField.readRaw (BG.Proxy @"year") ptr0
<*> HasCField.readRaw (BG.Proxy @"month") ptr0
<*> HasCField.readRaw (BG.Proxy @"day") ptr0
instance Marshal.WriteRaw DuckDBDateStruct where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBDateStruct year2 month3 day4 ->
HasCField.writeRaw (BG.Proxy @"year") ptr0 year2
>> HasCField.writeRaw (BG.Proxy @"month") ptr0 month3
>> HasCField.writeRaw (BG.Proxy @"day") ptr0 day4
deriving via Marshal.EquivStorable DuckDBDateStruct instance BG.Storable DuckDBDateStruct
deriving via Struct.IsStructViaReadRaw DuckDBDateStruct instance Struct.IsStruct DuckDBDateStruct
{-| __C declaration:__ @year@
__defined at:__ @duckdb.h 590:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "year" DuckDBDateStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDateStruct {year = y1, month = BG.getField @"month" x0, day = BG.getField @"day" x0}
, BG.getField @"year" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "year" (BG.Ptr DuckDBDateStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"year")
instance HasCField.HasCField DuckDBDateStruct "year" where
type CFieldType DuckDBDateStruct "year" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @month@
__defined at:__ @duckdb.h 591:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.CompatHasField.HasField "month" DuckDBDateStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDateStruct {month = y1, year = BG.getField @"year" x0, day = BG.getField @"day" x0}
, BG.getField @"month" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.HasField "month" (BG.Ptr DuckDBDateStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"month")
instance HasCField.HasCField DuckDBDateStruct "month" where
type CFieldType DuckDBDateStruct "month" =
HsBindgen.Runtime.LibC.Int8
offset# = \_ -> \_ -> 4
{-| __C declaration:__ @day@
__defined at:__ @duckdb.h 592:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.CompatHasField.HasField "day" DuckDBDateStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDateStruct {day = y1, year = BG.getField @"year" x0, month = BG.getField @"month" x0}
, BG.getField @"day" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.HasField "day" (BG.Ptr DuckDBDateStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"day")
instance HasCField.HasCField DuckDBDateStruct "day" where
type CFieldType DuckDBDateStruct "day" =
HsBindgen.Runtime.LibC.Int8
offset# = \_ -> \_ -> 5
{-| TIME is stored as microseconds since 00:00:00.
history:
* stable: v0.1.0
__C declaration:__ @struct duckdb_time@
__defined at:__ @duckdb.h 601:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTime = DuckDBTime
{ micros :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @micros@
__defined at:__ @duckdb.h 602:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTime where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTime where
readRaw =
\ptr0 ->
pure DuckDBTime
<*> HasCField.readRaw (BG.Proxy @"micros") ptr0
instance Marshal.WriteRaw DuckDBTime where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTime micros2 ->
HasCField.writeRaw (BG.Proxy @"micros") ptr0 micros2
deriving via Marshal.EquivStorable DuckDBTime instance BG.Storable DuckDBTime
deriving via Struct.IsStructViaReadRaw DuckDBTime instance Struct.IsStruct DuckDBTime
{-| __C declaration:__ @micros@
__defined at:__ @duckdb.h 602:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "micros" DuckDBTime ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTime {micros = y1}, BG.getField @"micros" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "micros" (BG.Ptr DuckDBTime) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"micros")
instance HasCField.HasCField DuckDBTime "micros" where
type CFieldType DuckDBTime "micros" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| Decomposed time components.
history:
* stable: v0.2.9
__C declaration:__ @struct duckdb_time_struct@
__defined at:__ @duckdb.h 611:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimeStruct = DuckDBTimeStruct
{ hour :: HsBindgen.Runtime.LibC.Int8
{- ^ __C declaration:__ @hour@
__defined at:__ @duckdb.h 612:9@
__exported by:__ @duckdb.h@
-}
, min :: HsBindgen.Runtime.LibC.Int8
{- ^ __C declaration:__ @min@
__defined at:__ @duckdb.h 613:9@
__exported by:__ @duckdb.h@
-}
, sec :: HsBindgen.Runtime.LibC.Int8
{- ^ __C declaration:__ @sec@
__defined at:__ @duckdb.h 614:9@
__exported by:__ @duckdb.h@
-}
, micros :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @micros@
__defined at:__ @duckdb.h 615:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimeStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBTimeStruct where
readRaw =
\ptr0 ->
pure DuckDBTimeStruct
<*> HasCField.readRaw (BG.Proxy @"hour") ptr0
<*> HasCField.readRaw (BG.Proxy @"min") ptr0
<*> HasCField.readRaw (BG.Proxy @"sec") ptr0
<*> HasCField.readRaw (BG.Proxy @"micros") ptr0
instance Marshal.WriteRaw DuckDBTimeStruct where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimeStruct hour2 min3 sec4 micros5 ->
HasCField.writeRaw (BG.Proxy @"hour") ptr0 hour2
>> HasCField.writeRaw (BG.Proxy @"min") ptr0 min3
>> HasCField.writeRaw (BG.Proxy @"sec") ptr0 sec4
>> HasCField.writeRaw (BG.Proxy @"micros") ptr0 micros5
deriving via Marshal.EquivStorable DuckDBTimeStruct instance BG.Storable DuckDBTimeStruct
deriving via Struct.IsStructViaReadRaw DuckDBTimeStruct instance Struct.IsStruct DuckDBTimeStruct
{-| __C declaration:__ @hour@
__defined at:__ @duckdb.h 612:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.CompatHasField.HasField "hour" DuckDBTimeStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeStruct { hour = y1
, min = BG.getField @"min" x0
, sec = BG.getField @"sec" x0
, micros = BG.getField @"micros" x0
}
, BG.getField @"hour" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.HasField "hour" (BG.Ptr DuckDBTimeStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"hour")
instance HasCField.HasCField DuckDBTimeStruct "hour" where
type CFieldType DuckDBTimeStruct "hour" =
HsBindgen.Runtime.LibC.Int8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @min@
__defined at:__ @duckdb.h 613:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.CompatHasField.HasField "min" DuckDBTimeStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeStruct { min = y1
, hour = BG.getField @"hour" x0
, sec = BG.getField @"sec" x0
, micros = BG.getField @"micros" x0
}
, BG.getField @"min" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.HasField "min" (BG.Ptr DuckDBTimeStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"min")
instance HasCField.HasCField DuckDBTimeStruct "min" where
type CFieldType DuckDBTimeStruct "min" =
HsBindgen.Runtime.LibC.Int8
offset# = \_ -> \_ -> 1
{-| __C declaration:__ @sec@
__defined at:__ @duckdb.h 614:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.CompatHasField.HasField "sec" DuckDBTimeStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeStruct { sec = y1
, hour = BG.getField @"hour" x0
, min = BG.getField @"min" x0
, micros = BG.getField @"micros" x0
}
, BG.getField @"sec" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int8
) => BG.HasField "sec" (BG.Ptr DuckDBTimeStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"sec")
instance HasCField.HasCField DuckDBTimeStruct "sec" where
type CFieldType DuckDBTimeStruct "sec" =
HsBindgen.Runtime.LibC.Int8
offset# = \_ -> \_ -> 2
{-| __C declaration:__ @micros@
__defined at:__ @duckdb.h 615:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "micros" DuckDBTimeStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeStruct { micros = y1
, hour = BG.getField @"hour" x0
, min = BG.getField @"min" x0
, sec = BG.getField @"sec" x0
}
, BG.getField @"micros" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "micros" (BG.Ptr DuckDBTimeStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"micros")
instance HasCField.HasCField DuckDBTimeStruct "micros" where
type CFieldType DuckDBTimeStruct "micros" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 4
{-| TIME_NS is stored as nanoseconds since 00:00:00.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @struct duckdb_time_ns@
__defined at:__ @duckdb.h 625:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimeNs = DuckDBTimeNs
{ nanos :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @nanos@
__defined at:__ @duckdb.h 626:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimeNs where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimeNs where
readRaw =
\ptr0 ->
pure DuckDBTimeNs
<*> HasCField.readRaw (BG.Proxy @"nanos") ptr0
instance Marshal.WriteRaw DuckDBTimeNs where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimeNs nanos2 ->
HasCField.writeRaw (BG.Proxy @"nanos") ptr0 nanos2
deriving via Marshal.EquivStorable DuckDBTimeNs instance BG.Storable DuckDBTimeNs
deriving via Struct.IsStructViaReadRaw DuckDBTimeNs instance Struct.IsStruct DuckDBTimeNs
{-| __C declaration:__ @nanos@
__defined at:__ @duckdb.h 626:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "nanos" DuckDBTimeNs ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimeNs {nanos = y1}, BG.getField @"nanos" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "nanos" (BG.Ptr DuckDBTimeNs) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"nanos")
instance HasCField.HasCField DuckDBTimeNs "nanos" where
type CFieldType DuckDBTimeNs "nanos" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| TIME_TZ stored as 40 bits for microseconds and 24 bits for offset.
history:
* stable: v0.10.0
__C declaration:__ @struct duckdb_time_tz@
__defined at:__ @duckdb.h 635:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimeTz = DuckDBTimeTz
{ bits :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @bits@
__defined at:__ @duckdb.h 636:11@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimeTz where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimeTz where
readRaw =
\ptr0 ->
pure DuckDBTimeTz
<*> HasCField.readRaw (BG.Proxy @"bits") ptr0
instance Marshal.WriteRaw DuckDBTimeTz where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimeTz bits2 ->
HasCField.writeRaw (BG.Proxy @"bits") ptr0 bits2
deriving via Marshal.EquivStorable DuckDBTimeTz instance BG.Storable DuckDBTimeTz
deriving via Struct.IsStructViaReadRaw DuckDBTimeTz instance Struct.IsStruct DuckDBTimeTz
{-| __C declaration:__ @bits@
__defined at:__ @duckdb.h 636:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "bits" DuckDBTimeTz ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimeTz {bits = y1}, BG.getField @"bits" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "bits" (BG.Ptr DuckDBTimeTz) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"bits")
instance HasCField.HasCField DuckDBTimeTz "bits" where
type CFieldType DuckDBTimeTz "bits" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 0
{-| Decomposed TIME_TZ components.
history:
* stable: v0.10.0
__C declaration:__ @struct duckdb_time_tz_struct@
__defined at:__ @duckdb.h 645:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimeTzStruct = DuckDBTimeTzStruct
{ time :: DuckDBTimeStruct
{- ^ __C declaration:__ @time@
__defined at:__ @duckdb.h 646:21@
__exported by:__ @duckdb.h@
-}
, offset :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @offset@
__defined at:__ @duckdb.h 647:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimeTzStruct where
staticSizeOf = \_ -> (12 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBTimeTzStruct where
readRaw =
\ptr0 ->
pure DuckDBTimeTzStruct
<*> HasCField.readRaw (BG.Proxy @"time") ptr0
<*> HasCField.readRaw (BG.Proxy @"offset") ptr0
instance Marshal.WriteRaw DuckDBTimeTzStruct where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimeTzStruct time2 offset3 ->
HasCField.writeRaw (BG.Proxy @"time") ptr0 time2
>> HasCField.writeRaw (BG.Proxy @"offset") ptr0 offset3
deriving via Marshal.EquivStorable DuckDBTimeTzStruct instance BG.Storable DuckDBTimeTzStruct
deriving via Struct.IsStructViaReadRaw DuckDBTimeTzStruct instance Struct.IsStruct DuckDBTimeTzStruct
{-| __C declaration:__ @time@
__defined at:__ @duckdb.h 646:21@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBTimeStruct
) => BG.CompatHasField.HasField "time" DuckDBTimeTzStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeTzStruct {time = y1, offset = BG.getField @"offset" x0}
, BG.getField @"time" x0
)
instance ( ty ~ DuckDBTimeStruct
) => BG.HasField "time" (BG.Ptr DuckDBTimeTzStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"time")
instance HasCField.HasCField DuckDBTimeTzStruct "time" where
type CFieldType DuckDBTimeTzStruct "time" =
DuckDBTimeStruct
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @offset@
__defined at:__ @duckdb.h 647:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "offset" DuckDBTimeTzStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimeTzStruct {offset = y1, time = BG.getField @"time" x0}
, BG.getField @"offset" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "offset" (BG.Ptr DuckDBTimeTzStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"offset")
instance HasCField.HasCField DuckDBTimeTzStruct "offset" where
type CFieldType DuckDBTimeTzStruct "offset" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 8
{-| TIMESTAMP is stored as microseconds since 1970-01-01.
history:
* stable: v0.1.0
__C declaration:__ @struct duckdb_timestamp@
__defined at:__ @duckdb.h 656:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimestamp = DuckDBTimestamp
{ micros :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @micros@
__defined at:__ @duckdb.h 657:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimestamp where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimestamp where
readRaw =
\ptr0 ->
pure DuckDBTimestamp
<*> HasCField.readRaw (BG.Proxy @"micros") ptr0
instance Marshal.WriteRaw DuckDBTimestamp where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimestamp micros2 ->
HasCField.writeRaw (BG.Proxy @"micros") ptr0 micros2
deriving via Marshal.EquivStorable DuckDBTimestamp instance BG.Storable DuckDBTimestamp
deriving via Struct.IsStructViaReadRaw DuckDBTimestamp instance Struct.IsStruct DuckDBTimestamp
{-| __C declaration:__ @micros@
__defined at:__ @duckdb.h 657:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "micros" DuckDBTimestamp ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimestamp {micros = y1}, BG.getField @"micros" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "micros" (BG.Ptr DuckDBTimestamp) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"micros")
instance HasCField.HasCField DuckDBTimestamp "micros" where
type CFieldType DuckDBTimestamp "micros" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| Decomposed timestamp components.
history:
* stable: v0.2.9
__C declaration:__ @struct duckdb_timestamp_struct@
__defined at:__ @duckdb.h 666:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimestampStruct = DuckDBTimestampStruct
{ date :: DuckDBDateStruct
{- ^ __C declaration:__ @date@
__defined at:__ @duckdb.h 667:21@
__exported by:__ @duckdb.h@
-}
, time :: DuckDBTimeStruct
{- ^ __C declaration:__ @time@
__defined at:__ @duckdb.h 668:21@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimestampStruct where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (4 :: Int)
instance Marshal.ReadRaw DuckDBTimestampStruct where
readRaw =
\ptr0 ->
pure DuckDBTimestampStruct
<*> HasCField.readRaw (BG.Proxy @"date") ptr0
<*> HasCField.readRaw (BG.Proxy @"time") ptr0
instance Marshal.WriteRaw DuckDBTimestampStruct where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimestampStruct date2 time3 ->
HasCField.writeRaw (BG.Proxy @"date") ptr0 date2
>> HasCField.writeRaw (BG.Proxy @"time") ptr0 time3
deriving via Marshal.EquivStorable DuckDBTimestampStruct instance BG.Storable DuckDBTimestampStruct
deriving via Struct.IsStructViaReadRaw DuckDBTimestampStruct instance Struct.IsStruct DuckDBTimestampStruct
{-| __C declaration:__ @date@
__defined at:__ @duckdb.h 667:21@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBDateStruct
) => BG.CompatHasField.HasField "date" DuckDBTimestampStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimestampStruct {date = y1, time = BG.getField @"time" x0}
, BG.getField @"date" x0
)
instance ( ty ~ DuckDBDateStruct
) => BG.HasField "date" (BG.Ptr DuckDBTimestampStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"date")
instance HasCField.HasCField DuckDBTimestampStruct "date" where
type CFieldType DuckDBTimestampStruct "date" =
DuckDBDateStruct
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @time@
__defined at:__ @duckdb.h 668:21@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBTimeStruct
) => BG.CompatHasField.HasField "time" DuckDBTimestampStruct ty where
hasField =
\x0 ->
( \y1 ->
DuckDBTimestampStruct {time = y1, date = BG.getField @"date" x0}
, BG.getField @"time" x0
)
instance ( ty ~ DuckDBTimeStruct
) => BG.HasField "time" (BG.Ptr DuckDBTimestampStruct) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"time")
instance HasCField.HasCField DuckDBTimestampStruct "time" where
type CFieldType DuckDBTimestampStruct "time" =
DuckDBTimeStruct
offset# = \_ -> \_ -> 8
{-| TIMESTAMP_S is stored as seconds since 1970-01-01.
history:
* stable: v1.2.0
__C declaration:__ @struct duckdb_timestamp_s@
__defined at:__ @duckdb.h 677:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimestampS = DuckDBTimestampS
{ seconds :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @seconds@
__defined at:__ @duckdb.h 678:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimestampS where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimestampS where
readRaw =
\ptr0 ->
pure DuckDBTimestampS
<*> HasCField.readRaw (BG.Proxy @"seconds") ptr0
instance Marshal.WriteRaw DuckDBTimestampS where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimestampS seconds2 ->
HasCField.writeRaw (BG.Proxy @"seconds") ptr0 seconds2
deriving via Marshal.EquivStorable DuckDBTimestampS instance BG.Storable DuckDBTimestampS
deriving via Struct.IsStructViaReadRaw DuckDBTimestampS instance Struct.IsStruct DuckDBTimestampS
{-| __C declaration:__ @seconds@
__defined at:__ @duckdb.h 678:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "seconds" DuckDBTimestampS ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimestampS {seconds = y1}, BG.getField @"seconds" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "seconds" (BG.Ptr DuckDBTimestampS) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"seconds")
instance HasCField.HasCField DuckDBTimestampS "seconds" where
type CFieldType DuckDBTimestampS "seconds" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| TIMESTAMP_MS is stored as milliseconds since 1970-01-01.
history:
* stable: v1.2.0
__C declaration:__ @struct duckdb_timestamp_ms@
__defined at:__ @duckdb.h 687:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimestampMs = DuckDBTimestampMs
{ millis :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @millis@
__defined at:__ @duckdb.h 688:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimestampMs where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimestampMs where
readRaw =
\ptr0 ->
pure DuckDBTimestampMs
<*> HasCField.readRaw (BG.Proxy @"millis") ptr0
instance Marshal.WriteRaw DuckDBTimestampMs where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimestampMs millis2 ->
HasCField.writeRaw (BG.Proxy @"millis") ptr0 millis2
deriving via Marshal.EquivStorable DuckDBTimestampMs instance BG.Storable DuckDBTimestampMs
deriving via Struct.IsStructViaReadRaw DuckDBTimestampMs instance Struct.IsStruct DuckDBTimestampMs
{-| __C declaration:__ @millis@
__defined at:__ @duckdb.h 688:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "millis" DuckDBTimestampMs ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimestampMs {millis = y1}, BG.getField @"millis" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "millis" (BG.Ptr DuckDBTimestampMs) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"millis")
instance HasCField.HasCField DuckDBTimestampMs "millis" where
type CFieldType DuckDBTimestampMs "millis" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| TIMESTAMP_NS is stored as nanoseconds since 1970-01-01.
history:
* stable: v1.2.0
__C declaration:__ @struct duckdb_timestamp_ns@
__defined at:__ @duckdb.h 697:8@
__exported by:__ @duckdb.h@
-}
data DuckDBTimestampNs = DuckDBTimestampNs
{ nanos :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @nanos@
__defined at:__ @duckdb.h 698:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBTimestampNs where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBTimestampNs where
readRaw =
\ptr0 ->
pure DuckDBTimestampNs
<*> HasCField.readRaw (BG.Proxy @"nanos") ptr0
instance Marshal.WriteRaw DuckDBTimestampNs where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBTimestampNs nanos2 ->
HasCField.writeRaw (BG.Proxy @"nanos") ptr0 nanos2
deriving via Marshal.EquivStorable DuckDBTimestampNs instance BG.Storable DuckDBTimestampNs
deriving via Struct.IsStructViaReadRaw DuckDBTimestampNs instance Struct.IsStruct DuckDBTimestampNs
{-| __C declaration:__ @nanos@
__defined at:__ @duckdb.h 698:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "nanos" DuckDBTimestampNs ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTimestampNs {nanos = y1}, BG.getField @"nanos" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "nanos" (BG.Ptr DuckDBTimestampNs) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"nanos")
instance HasCField.HasCField DuckDBTimestampNs "nanos" where
type CFieldType DuckDBTimestampNs "nanos" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| INTERVAL is stored in months, days, and micros.
history:
* stable: v0.2.1
__C declaration:__ @struct duckdb_interval@
__defined at:__ @duckdb.h 707:8@
__exported by:__ @duckdb.h@
-}
data DuckDBInterval = DuckDBInterval
{ months :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @months@
__defined at:__ @duckdb.h 708:10@
__exported by:__ @duckdb.h@
-}
, days :: HsBindgen.Runtime.LibC.Int32
{- ^ __C declaration:__ @days@
__defined at:__ @duckdb.h 709:10@
__exported by:__ @duckdb.h@
-}
, micros :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @micros@
__defined at:__ @duckdb.h 710:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBInterval where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBInterval where
readRaw =
\ptr0 ->
pure DuckDBInterval
<*> HasCField.readRaw (BG.Proxy @"months") ptr0
<*> HasCField.readRaw (BG.Proxy @"days") ptr0
<*> HasCField.readRaw (BG.Proxy @"micros") ptr0
instance Marshal.WriteRaw DuckDBInterval where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBInterval months2 days3 micros4 ->
HasCField.writeRaw (BG.Proxy @"months") ptr0 months2
>> HasCField.writeRaw (BG.Proxy @"days") ptr0 days3
>> HasCField.writeRaw (BG.Proxy @"micros") ptr0 micros4
deriving via Marshal.EquivStorable DuckDBInterval instance BG.Storable DuckDBInterval
deriving via Struct.IsStructViaReadRaw DuckDBInterval instance Struct.IsStruct DuckDBInterval
{-| __C declaration:__ @months@
__defined at:__ @duckdb.h 708:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "months" DuckDBInterval ty where
hasField =
\x0 ->
( \y1 ->
DuckDBInterval {months = y1, days = BG.getField @"days" x0, micros = BG.getField @"micros" x0}
, BG.getField @"months" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "months" (BG.Ptr DuckDBInterval) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"months")
instance HasCField.HasCField DuckDBInterval "months" where
type CFieldType DuckDBInterval "months" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @days@
__defined at:__ @duckdb.h 709:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.CompatHasField.HasField "days" DuckDBInterval ty where
hasField =
\x0 ->
( \y1 ->
DuckDBInterval { days = y1
, months = BG.getField @"months" x0
, micros = BG.getField @"micros" x0
}
, BG.getField @"days" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int32
) => BG.HasField "days" (BG.Ptr DuckDBInterval) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"days")
instance HasCField.HasCField DuckDBInterval "days" where
type CFieldType DuckDBInterval "days" =
HsBindgen.Runtime.LibC.Int32
offset# = \_ -> \_ -> 4
{-| __C declaration:__ @micros@
__defined at:__ @duckdb.h 710:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "micros" DuckDBInterval ty where
hasField =
\x0 ->
( \y1 ->
DuckDBInterval {micros = y1, months = BG.getField @"months" x0, days = BG.getField @"days" x0}
, BG.getField @"micros" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "micros" (BG.Ptr DuckDBInterval) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"micros")
instance HasCField.HasCField DuckDBInterval "micros" where
type CFieldType DuckDBInterval "micros" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 8
{-| HUGEINT is composed of a lower and upper component. Value is upper * 2^64 + lower.
history:
* stable: v0.2.1
__C declaration:__ @struct duckdb_hugeint@
__defined at:__ @duckdb.h 719:8@
__exported by:__ @duckdb.h@
-}
data DuckDBHugeInt = DuckDBHugeInt
{ lower :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @lower@
__defined at:__ @duckdb.h 720:11@
__exported by:__ @duckdb.h@
-}
, upper :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @upper@
__defined at:__ @duckdb.h 721:10@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBHugeInt where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBHugeInt where
readRaw =
\ptr0 ->
pure DuckDBHugeInt
<*> HasCField.readRaw (BG.Proxy @"lower") ptr0
<*> HasCField.readRaw (BG.Proxy @"upper") ptr0
instance Marshal.WriteRaw DuckDBHugeInt where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBHugeInt lower2 upper3 ->
HasCField.writeRaw (BG.Proxy @"lower") ptr0 lower2
>> HasCField.writeRaw (BG.Proxy @"upper") ptr0 upper3
deriving via Marshal.EquivStorable DuckDBHugeInt instance BG.Storable DuckDBHugeInt
deriving via Struct.IsStructViaReadRaw DuckDBHugeInt instance Struct.IsStruct DuckDBHugeInt
{-| __C declaration:__ @lower@
__defined at:__ @duckdb.h 720:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "lower" DuckDBHugeInt ty where
hasField =
\x0 ->
( \y1 ->
DuckDBHugeInt {lower = y1, upper = BG.getField @"upper" x0}
, BG.getField @"lower" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "lower" (BG.Ptr DuckDBHugeInt) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"lower")
instance HasCField.HasCField DuckDBHugeInt "lower" where
type CFieldType DuckDBHugeInt "lower" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @upper@
__defined at:__ @duckdb.h 721:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "upper" DuckDBHugeInt ty where
hasField =
\x0 ->
( \y1 ->
DuckDBHugeInt {upper = y1, lower = BG.getField @"lower" x0}
, BG.getField @"upper" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "upper" (BG.Ptr DuckDBHugeInt) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"upper")
instance HasCField.HasCField DuckDBHugeInt "upper" where
type CFieldType DuckDBHugeInt "upper" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 8
{-| UHUGEINT is composed of a lower and upper component. Value is upper * 2^64 + lower.
history:
* stable: v0.10.0
__C declaration:__ @struct duckdb_uhugeint@
__defined at:__ @duckdb.h 730:8@
__exported by:__ @duckdb.h@
-}
data DuckDBUHugeInt = DuckDBUHugeInt
{ lower :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @lower@
__defined at:__ @duckdb.h 731:11@
__exported by:__ @duckdb.h@
-}
, upper :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @upper@
__defined at:__ @duckdb.h 732:11@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBUHugeInt where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBUHugeInt where
readRaw =
\ptr0 ->
pure DuckDBUHugeInt
<*> HasCField.readRaw (BG.Proxy @"lower") ptr0
<*> HasCField.readRaw (BG.Proxy @"upper") ptr0
instance Marshal.WriteRaw DuckDBUHugeInt where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBUHugeInt lower2 upper3 ->
HasCField.writeRaw (BG.Proxy @"lower") ptr0 lower2
>> HasCField.writeRaw (BG.Proxy @"upper") ptr0 upper3
deriving via Marshal.EquivStorable DuckDBUHugeInt instance BG.Storable DuckDBUHugeInt
deriving via Struct.IsStructViaReadRaw DuckDBUHugeInt instance Struct.IsStruct DuckDBUHugeInt
{-| __C declaration:__ @lower@
__defined at:__ @duckdb.h 731:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "lower" DuckDBUHugeInt ty where
hasField =
\x0 ->
( \y1 ->
DuckDBUHugeInt {lower = y1, upper = BG.getField @"upper" x0}
, BG.getField @"lower" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "lower" (BG.Ptr DuckDBUHugeInt) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"lower")
instance HasCField.HasCField DuckDBUHugeInt "lower" where
type CFieldType DuckDBUHugeInt "lower" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @upper@
__defined at:__ @duckdb.h 732:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "upper" DuckDBUHugeInt ty where
hasField =
\x0 ->
( \y1 ->
DuckDBUHugeInt {upper = y1, lower = BG.getField @"lower" x0}
, BG.getField @"upper" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "upper" (BG.Ptr DuckDBUHugeInt) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"upper")
instance HasCField.HasCField DuckDBUHugeInt "upper" where
type CFieldType DuckDBUHugeInt "upper" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 8
{-| DECIMAL is composed of a width and a scale. Value is stored in a HUGEINT.
history:
* stable: v0.3.3
__C declaration:__ @struct duckdb_decimal@
__defined at:__ @duckdb.h 741:8@
__exported by:__ @duckdb.h@
-}
data DuckDBDecimal = DuckDBDecimal
{ width :: HsBindgen.Runtime.LibC.Word8
{- ^ __C declaration:__ @width@
__defined at:__ @duckdb.h 742:10@
__exported by:__ @duckdb.h@
-}
, scale :: HsBindgen.Runtime.LibC.Word8
{- ^ __C declaration:__ @scale@
__defined at:__ @duckdb.h 743:10@
__exported by:__ @duckdb.h@
-}
, value :: DuckDBHugeInt
{- ^ __C declaration:__ @value@
__defined at:__ @duckdb.h 744:17@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBDecimal where
staticSizeOf = \_ -> (24 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBDecimal where
readRaw =
\ptr0 ->
pure DuckDBDecimal
<*> HasCField.readRaw (BG.Proxy @"width") ptr0
<*> HasCField.readRaw (BG.Proxy @"scale") ptr0
<*> HasCField.readRaw (BG.Proxy @"value") ptr0
instance Marshal.WriteRaw DuckDBDecimal where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBDecimal width2 scale3 value4 ->
HasCField.writeRaw (BG.Proxy @"width") ptr0 width2
>> HasCField.writeRaw (BG.Proxy @"scale") ptr0 scale3
>> HasCField.writeRaw (BG.Proxy @"value") ptr0 value4
deriving via Marshal.EquivStorable DuckDBDecimal instance BG.Storable DuckDBDecimal
deriving via Struct.IsStructViaReadRaw DuckDBDecimal instance Struct.IsStruct DuckDBDecimal
{-| __C declaration:__ @width@
__defined at:__ @duckdb.h 742:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word8
) => BG.CompatHasField.HasField "width" DuckDBDecimal ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDecimal {width = y1, scale = BG.getField @"scale" x0, value = BG.getField @"value" x0}
, BG.getField @"width" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word8
) => BG.HasField "width" (BG.Ptr DuckDBDecimal) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"width")
instance HasCField.HasCField DuckDBDecimal "width" where
type CFieldType DuckDBDecimal "width" =
HsBindgen.Runtime.LibC.Word8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @scale@
__defined at:__ @duckdb.h 743:10@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word8
) => BG.CompatHasField.HasField "scale" DuckDBDecimal ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDecimal {scale = y1, width = BG.getField @"width" x0, value = BG.getField @"value" x0}
, BG.getField @"scale" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word8
) => BG.HasField "scale" (BG.Ptr DuckDBDecimal) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"scale")
instance HasCField.HasCField DuckDBDecimal "scale" where
type CFieldType DuckDBDecimal "scale" =
HsBindgen.Runtime.LibC.Word8
offset# = \_ -> \_ -> 1
{-| __C declaration:__ @value@
__defined at:__ @duckdb.h 744:17@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBHugeInt
) => BG.CompatHasField.HasField "value" DuckDBDecimal ty where
hasField =
\x0 ->
( \y1 ->
DuckDBDecimal {value = y1, width = BG.getField @"width" x0, scale = BG.getField @"scale" x0}
, BG.getField @"value" x0
)
instance ( ty ~ DuckDBHugeInt
) => BG.HasField "value" (BG.Ptr DuckDBDecimal) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"value")
instance HasCField.HasCField DuckDBDecimal "value" where
type CFieldType DuckDBDecimal "value" = DuckDBHugeInt
offset# = \_ -> \_ -> 8
{-| A type holding information about the query execution progress.
history:
* stable: v0.10.0
__C declaration:__ @struct duckdb_query_progress_type@
__defined at:__ @duckdb.h 753:8@
__exported by:__ @duckdb.h@
-}
data DuckDBQueryProgress = DuckDBQueryProgress
{ percentage :: BG.CDouble
{- ^ __C declaration:__ @percentage@
__defined at:__ @duckdb.h 754:9@
__exported by:__ @duckdb.h@
-}
, rows_processed :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @rows_processed@
__defined at:__ @duckdb.h 755:11@
__exported by:__ @duckdb.h@
-}
, total_rows_to_process :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @total_rows_to_process@
__defined at:__ @duckdb.h 756:11@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBQueryProgress where
staticSizeOf = \_ -> (24 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBQueryProgress where
readRaw =
\ptr0 ->
pure DuckDBQueryProgress
<*> HasCField.readRaw (BG.Proxy @"percentage") ptr0
<*> HasCField.readRaw (BG.Proxy @"rows_processed") ptr0
<*> HasCField.readRaw (BG.Proxy @"total_rows_to_process") ptr0
instance Marshal.WriteRaw DuckDBQueryProgress where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBQueryProgress percentage2 rows_processed3 total_rows_to_process4 ->
HasCField.writeRaw (BG.Proxy @"percentage") ptr0 percentage2
>> HasCField.writeRaw (BG.Proxy @"rows_processed") ptr0 rows_processed3
>> HasCField.writeRaw (BG.Proxy @"total_rows_to_process") ptr0 total_rows_to_process4
deriving via Marshal.EquivStorable DuckDBQueryProgress instance BG.Storable DuckDBQueryProgress
deriving via Struct.IsStructViaReadRaw DuckDBQueryProgress instance Struct.IsStruct DuckDBQueryProgress
{-| __C declaration:__ @percentage@
__defined at:__ @duckdb.h 754:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.CDouble
) => BG.CompatHasField.HasField "percentage" DuckDBQueryProgress ty where
hasField =
\x0 ->
( \y1 ->
DuckDBQueryProgress { percentage = y1
, rows_processed = BG.getField @"rows_processed" x0
, total_rows_to_process = BG.getField @"total_rows_to_process" x0
}
, BG.getField @"percentage" x0
)
instance ( ty ~ BG.CDouble
) => BG.HasField "percentage" (BG.Ptr DuckDBQueryProgress) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"percentage")
instance HasCField.HasCField DuckDBQueryProgress "percentage" where
type CFieldType DuckDBQueryProgress "percentage" =
BG.CDouble
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @rows_processed@
__defined at:__ @duckdb.h 755:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "rows_processed" DuckDBQueryProgress ty where
hasField =
\x0 ->
( \y1 ->
DuckDBQueryProgress { rows_processed = y1
, percentage = BG.getField @"percentage" x0
, total_rows_to_process = BG.getField @"total_rows_to_process" x0
}
, BG.getField @"rows_processed" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "rows_processed" (BG.Ptr DuckDBQueryProgress) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"rows_processed")
instance HasCField.HasCField DuckDBQueryProgress "rows_processed" where
type CFieldType DuckDBQueryProgress "rows_processed" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @total_rows_to_process@
__defined at:__ @duckdb.h 756:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "total_rows_to_process" DuckDBQueryProgress ty where
hasField =
\x0 ->
( \y1 ->
DuckDBQueryProgress { total_rows_to_process = y1
, percentage = BG.getField @"percentage" x0
, rows_processed = BG.getField @"rows_processed" x0
}
, BG.getField @"total_rows_to_process" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "total_rows_to_process" (BG.Ptr DuckDBQueryProgress) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"total_rows_to_process")
instance HasCField.HasCField DuckDBQueryProgress "total_rows_to_process" where
type CFieldType DuckDBQueryProgress "total_rows_to_process" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 16
{-| Internal representation of a LIST metadata entry.
history:
* stable: v0.7.0
__C declaration:__ @struct duckdb_list_entry@
__defined at:__ @duckdb.h 765:8@
__exported by:__ @duckdb.h@
-}
data DuckDBListEntry = DuckDBListEntry
{ offset :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @offset@
__defined at:__ @duckdb.h 766:11@
__exported by:__ @duckdb.h@
-}
, length :: HsBindgen.Runtime.LibC.Word64
{- ^ __C declaration:__ @length@
__defined at:__ @duckdb.h 767:11@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBListEntry where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBListEntry where
readRaw =
\ptr0 ->
pure DuckDBListEntry
<*> HasCField.readRaw (BG.Proxy @"offset") ptr0
<*> HasCField.readRaw (BG.Proxy @"length") ptr0
instance Marshal.WriteRaw DuckDBListEntry where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBListEntry offset2 length3 ->
HasCField.writeRaw (BG.Proxy @"offset") ptr0 offset2
>> HasCField.writeRaw (BG.Proxy @"length") ptr0 length3
deriving via Marshal.EquivStorable DuckDBListEntry instance BG.Storable DuckDBListEntry
deriving via Struct.IsStructViaReadRaw DuckDBListEntry instance Struct.IsStruct DuckDBListEntry
{-| __C declaration:__ @offset@
__defined at:__ @duckdb.h 766:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "offset" DuckDBListEntry ty where
hasField =
\x0 ->
( \y1 ->
DuckDBListEntry {offset = y1, length = BG.getField @"length" x0}
, BG.getField @"offset" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "offset" (BG.Ptr DuckDBListEntry) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"offset")
instance HasCField.HasCField DuckDBListEntry "offset" where
type CFieldType DuckDBListEntry "offset" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @length@
__defined at:__ @duckdb.h 767:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.CompatHasField.HasField "length" DuckDBListEntry ty where
hasField =
\x0 ->
( \y1 ->
DuckDBListEntry {length = y1, offset = BG.getField @"offset" x0}
, BG.getField @"length" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word64
) => BG.HasField "length" (BG.Ptr DuckDBListEntry) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"length")
instance HasCField.HasCField DuckDBListEntry "length" where
type CFieldType DuckDBListEntry "length" =
HsBindgen.Runtime.LibC.Word64
offset# = \_ -> \_ -> 8
{-| A column in a result. Use accessor functions rather than accessing fields directly.
history:
* stable: v0.1.0
__C declaration:__ @struct duckdb_column@
__defined at:__ @duckdb.h 776:8@
__exported by:__ @duckdb.h@
-}
data DuckDBColumn = DuckDBColumn
{ deprecated_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @deprecated_data@
__defined at:__ @duckdb.h 777:8@
__exported by:__ @duckdb.h@
-}
, deprecated_nullmask :: BG.Ptr BG.CBool
{- ^ __C declaration:__ @deprecated_nullmask@
__defined at:__ @duckdb.h 778:8@
__exported by:__ @duckdb.h@
-}
, deprecated_type :: DuckDBTypeAlias
{- ^ __C declaration:__ @deprecated_type@
__defined at:__ @duckdb.h 779:14@
__exported by:__ @duckdb.h@
-}
, deprecated_name :: BG.Ptr BG.CChar
{- ^ __C declaration:__ @deprecated_name@
__defined at:__ @duckdb.h 780:8@
__exported by:__ @duckdb.h@
-}
, internal_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @internal_data@
__defined at:__ @duckdb.h 781:8@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBColumn where
staticSizeOf = \_ -> (40 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBColumn where
readRaw =
\ptr0 ->
pure DuckDBColumn
<*> HasCField.readRaw (BG.Proxy @"deprecated_data") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_nullmask") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_type") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_name") ptr0
<*> HasCField.readRaw (BG.Proxy @"internal_data") ptr0
instance Marshal.WriteRaw DuckDBColumn where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBColumn
deprecated_data2
deprecated_nullmask3
deprecated_type4
deprecated_name5
internal_data6 ->
HasCField.writeRaw (BG.Proxy @"deprecated_data") ptr0 deprecated_data2
>> HasCField.writeRaw (BG.Proxy @"deprecated_nullmask") ptr0 deprecated_nullmask3
>> HasCField.writeRaw (BG.Proxy @"deprecated_type") ptr0 deprecated_type4
>> HasCField.writeRaw (BG.Proxy @"deprecated_name") ptr0 deprecated_name5
>> HasCField.writeRaw (BG.Proxy @"internal_data") ptr0 internal_data6
deriving via Marshal.EquivStorable DuckDBColumn instance BG.Storable DuckDBColumn
deriving via Struct.IsStructViaReadRaw DuckDBColumn instance Struct.IsStruct DuckDBColumn
{-| __C declaration:__ @deprecated_data@
__defined at:__ @duckdb.h 777:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "deprecated_data" DuckDBColumn ty where
hasField =
\x0 ->
( \y1 ->
DuckDBColumn { deprecated_data = y1
, deprecated_nullmask = BG.getField @"deprecated_nullmask" x0
, deprecated_type = BG.getField @"deprecated_type" x0
, deprecated_name = BG.getField @"deprecated_name" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "deprecated_data" (BG.Ptr DuckDBColumn) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_data")
instance HasCField.HasCField DuckDBColumn "deprecated_data" where
type CFieldType DuckDBColumn "deprecated_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @deprecated_nullmask@
__defined at:__ @duckdb.h 778:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.CBool
) => BG.CompatHasField.HasField "deprecated_nullmask" DuckDBColumn ty where
hasField =
\x0 ->
( \y1 ->
DuckDBColumn { deprecated_nullmask = y1
, deprecated_data = BG.getField @"deprecated_data" x0
, deprecated_type = BG.getField @"deprecated_type" x0
, deprecated_name = BG.getField @"deprecated_name" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_nullmask" x0
)
instance ( ty ~ BG.Ptr BG.CBool
) => BG.HasField "deprecated_nullmask" (BG.Ptr DuckDBColumn) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_nullmask")
instance HasCField.HasCField DuckDBColumn "deprecated_nullmask" where
type CFieldType DuckDBColumn "deprecated_nullmask" =
BG.Ptr BG.CBool
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @deprecated_type@
__defined at:__ @duckdb.h 779:14@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBTypeAlias
) => BG.CompatHasField.HasField "deprecated_type" DuckDBColumn ty where
hasField =
\x0 ->
( \y1 ->
DuckDBColumn { deprecated_type = y1
, deprecated_data = BG.getField @"deprecated_data" x0
, deprecated_nullmask = BG.getField @"deprecated_nullmask" x0
, deprecated_name = BG.getField @"deprecated_name" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_type" x0
)
instance ( ty ~ DuckDBTypeAlias
) => BG.HasField "deprecated_type" (BG.Ptr DuckDBColumn) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_type")
instance HasCField.HasCField DuckDBColumn "deprecated_type" where
type CFieldType DuckDBColumn "deprecated_type" =
DuckDBTypeAlias
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @deprecated_name@
__defined at:__ @duckdb.h 780:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.CChar
) => BG.CompatHasField.HasField "deprecated_name" DuckDBColumn ty where
hasField =
\x0 ->
( \y1 ->
DuckDBColumn { deprecated_name = y1
, deprecated_data = BG.getField @"deprecated_data" x0
, deprecated_nullmask = BG.getField @"deprecated_nullmask" x0
, deprecated_type = BG.getField @"deprecated_type" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_name" x0
)
instance ( ty ~ BG.Ptr BG.CChar
) => BG.HasField "deprecated_name" (BG.Ptr DuckDBColumn) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_name")
instance HasCField.HasCField DuckDBColumn "deprecated_name" where
type CFieldType DuckDBColumn "deprecated_name" =
BG.Ptr BG.CChar
offset# = \_ -> \_ -> 24
{-| __C declaration:__ @internal_data@
__defined at:__ @duckdb.h 781:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "internal_data" DuckDBColumn ty where
hasField =
\x0 ->
( \y1 ->
DuckDBColumn { internal_data = y1
, deprecated_data = BG.getField @"deprecated_data" x0
, deprecated_nullmask = BG.getField @"deprecated_nullmask" x0
, deprecated_type = BG.getField @"deprecated_type" x0
, deprecated_name = BG.getField @"deprecated_name" x0
}
, BG.getField @"internal_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "internal_data" (BG.Ptr DuckDBColumn) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"internal_data")
instance HasCField.HasCField DuckDBColumn "internal_data" where
type CFieldType DuckDBColumn "internal_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 32
{-| A DuckDB string (char* + size). Free data with duckdb_free.
history:
* stable: v0.6.0
__C declaration:__ @struct duckdb_string@
__defined at:__ @duckdb.h 790:8@
__exported by:__ @duckdb.h@
-}
data DuckDBString = DuckDBString
{ data' :: BG.Ptr BG.CChar
{- ^ __C declaration:__ @data@
__defined at:__ @duckdb.h 791:8@
__exported by:__ @duckdb.h@
-}
, size :: DuckDBIdx
{- ^ __C declaration:__ @size@
__defined at:__ @duckdb.h 792:8@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBString where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBString where
readRaw =
\ptr0 ->
pure DuckDBString
<*> HasCField.readRaw (BG.Proxy @"data'") ptr0
<*> HasCField.readRaw (BG.Proxy @"size") ptr0
instance Marshal.WriteRaw DuckDBString where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBString data'2 size3 ->
HasCField.writeRaw (BG.Proxy @"data'") ptr0 data'2
>> HasCField.writeRaw (BG.Proxy @"size") ptr0 size3
deriving via Marshal.EquivStorable DuckDBString instance BG.Storable DuckDBString
deriving via Struct.IsStructViaReadRaw DuckDBString instance Struct.IsStruct DuckDBString
{-| __C declaration:__ @data@
__defined at:__ @duckdb.h 791:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.CChar
) => BG.CompatHasField.HasField "data'" DuckDBString ty where
hasField =
\x0 ->
( \y1 ->
DuckDBString {data' = y1, size = BG.getField @"size" x0}
, BG.getField @"data'" x0
)
instance ( ty ~ BG.Ptr BG.CChar
) => BG.HasField "data'" (BG.Ptr DuckDBString) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"data'")
instance HasCField.HasCField DuckDBString "data'" where
type CFieldType DuckDBString "data'" =
BG.Ptr BG.CChar
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @size@
__defined at:__ @duckdb.h 792:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "size" DuckDBString ty where
hasField =
\x0 ->
( \y1 ->
DuckDBString {size = y1, data' = BG.getField @"data'" x0}
, BG.getField @"size" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "size" (BG.Ptr DuckDBString) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"size")
instance HasCField.HasCField DuckDBString "size" where
type CFieldType DuckDBString "size" = DuckDBIdx
offset# = \_ -> \_ -> 8
{-| A DuckDB BLOB (void* + size). Free data with duckdb_free.
history:
* stable: v0.2.5
__C declaration:__ @struct duckdb_blob@
__defined at:__ @duckdb.h 801:8@
__exported by:__ @duckdb.h@
-}
data DuckDBBlob = DuckDBBlob
{ data' :: BG.Ptr BG.Void
{- ^ __C declaration:__ @data@
__defined at:__ @duckdb.h 802:8@
__exported by:__ @duckdb.h@
-}
, size :: DuckDBIdx
{- ^ __C declaration:__ @size@
__defined at:__ @duckdb.h 803:8@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBBlob where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBBlob where
readRaw =
\ptr0 ->
pure DuckDBBlob
<*> HasCField.readRaw (BG.Proxy @"data'") ptr0
<*> HasCField.readRaw (BG.Proxy @"size") ptr0
instance Marshal.WriteRaw DuckDBBlob where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBBlob data'2 size3 ->
HasCField.writeRaw (BG.Proxy @"data'") ptr0 data'2
>> HasCField.writeRaw (BG.Proxy @"size") ptr0 size3
deriving via Marshal.EquivStorable DuckDBBlob instance BG.Storable DuckDBBlob
deriving via Struct.IsStructViaReadRaw DuckDBBlob instance Struct.IsStruct DuckDBBlob
{-| __C declaration:__ @data@
__defined at:__ @duckdb.h 802:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "data'" DuckDBBlob ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBlob {data' = y1, size = BG.getField @"size" x0}
, BG.getField @"data'" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "data'" (BG.Ptr DuckDBBlob) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"data'")
instance HasCField.HasCField DuckDBBlob "data'" where
type CFieldType DuckDBBlob "data'" = BG.Ptr BG.Void
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @size@
__defined at:__ @duckdb.h 803:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "size" DuckDBBlob ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBlob {size = y1, data' = BG.getField @"data'" x0}
, BG.getField @"size" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "size" (BG.Ptr DuckDBBlob) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"size")
instance HasCField.HasCField DuckDBBlob "size" where
type CFieldType DuckDBBlob "size" = DuckDBIdx
offset# = \_ -> \_ -> 8
{-| A DuckDB BIT (uint8_t* + size). Free data with duckdb_free.
history:
* stable: v1.2.0
__C declaration:__ @struct duckdb_bit@
__defined at:__ @duckdb.h 812:8@
__exported by:__ @duckdb.h@
-}
data DuckDBBit = DuckDBBit
{ data' :: BG.Ptr HsBindgen.Runtime.LibC.Word8
{- ^ __C declaration:__ @data@
__defined at:__ @duckdb.h 813:11@
__exported by:__ @duckdb.h@
-}
, size :: DuckDBIdx
{- ^ __C declaration:__ @size@
__defined at:__ @duckdb.h 814:8@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBBit where
staticSizeOf = \_ -> (16 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBBit where
readRaw =
\ptr0 ->
pure DuckDBBit
<*> HasCField.readRaw (BG.Proxy @"data'") ptr0
<*> HasCField.readRaw (BG.Proxy @"size") ptr0
instance Marshal.WriteRaw DuckDBBit where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBBit data'2 size3 ->
HasCField.writeRaw (BG.Proxy @"data'") ptr0 data'2
>> HasCField.writeRaw (BG.Proxy @"size") ptr0 size3
deriving via Marshal.EquivStorable DuckDBBit instance BG.Storable DuckDBBit
deriving via Struct.IsStructViaReadRaw DuckDBBit instance Struct.IsStruct DuckDBBit
{-| __C declaration:__ @data@
__defined at:__ @duckdb.h 813:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr HsBindgen.Runtime.LibC.Word8
) => BG.CompatHasField.HasField "data'" DuckDBBit ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBit {data' = y1, size = BG.getField @"size" x0}
, BG.getField @"data'" x0
)
instance ( ty ~ BG.Ptr HsBindgen.Runtime.LibC.Word8
) => BG.HasField "data'" (BG.Ptr DuckDBBit) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"data'")
instance HasCField.HasCField DuckDBBit "data'" where
type CFieldType DuckDBBit "data'" =
BG.Ptr HsBindgen.Runtime.LibC.Word8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @size@
__defined at:__ @duckdb.h 814:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "size" DuckDBBit ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBit {size = y1, data' = BG.getField @"data'" x0}
, BG.getField @"size" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "size" (BG.Ptr DuckDBBit) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"size")
instance HasCField.HasCField DuckDBBit "size" where
type CFieldType DuckDBBit "size" = DuckDBIdx
offset# = \_ -> \_ -> 8
{-| A DuckDB BIGNUM (uint8_t* + size + is_negative). The absolute value is stored in data in big endian format. Free data with duckdb_free.
history:
* stable: v1.2.0
__C declaration:__ @struct duckdb_bignum@
__defined at:__ @duckdb.h 824:8@
__exported by:__ @duckdb.h@
-}
data DuckDBBignum = DuckDBBignum
{ data' :: BG.Ptr HsBindgen.Runtime.LibC.Word8
{- ^ __C declaration:__ @data@
__defined at:__ @duckdb.h 825:11@
__exported by:__ @duckdb.h@
-}
, size :: DuckDBIdx
{- ^ __C declaration:__ @size@
__defined at:__ @duckdb.h 826:8@
__exported by:__ @duckdb.h@
-}
, is_negative :: BG.CBool
{- ^ __C declaration:__ @is_negative@
__defined at:__ @duckdb.h 827:7@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBBignum where
staticSizeOf = \_ -> (24 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBBignum where
readRaw =
\ptr0 ->
pure DuckDBBignum
<*> HasCField.readRaw (BG.Proxy @"data'") ptr0
<*> HasCField.readRaw (BG.Proxy @"size") ptr0
<*> HasCField.readRaw (BG.Proxy @"is_negative") ptr0
instance Marshal.WriteRaw DuckDBBignum where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBBignum data'2 size3 is_negative4 ->
HasCField.writeRaw (BG.Proxy @"data'") ptr0 data'2
>> HasCField.writeRaw (BG.Proxy @"size") ptr0 size3
>> HasCField.writeRaw (BG.Proxy @"is_negative") ptr0 is_negative4
deriving via Marshal.EquivStorable DuckDBBignum instance BG.Storable DuckDBBignum
deriving via Struct.IsStructViaReadRaw DuckDBBignum instance Struct.IsStruct DuckDBBignum
{-| __C declaration:__ @data@
__defined at:__ @duckdb.h 825:11@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr HsBindgen.Runtime.LibC.Word8
) => BG.CompatHasField.HasField "data'" DuckDBBignum ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBignum { data' = y1
, size = BG.getField @"size" x0
, is_negative = BG.getField @"is_negative" x0
}
, BG.getField @"data'" x0
)
instance ( ty ~ BG.Ptr HsBindgen.Runtime.LibC.Word8
) => BG.HasField "data'" (BG.Ptr DuckDBBignum) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"data'")
instance HasCField.HasCField DuckDBBignum "data'" where
type CFieldType DuckDBBignum "data'" =
BG.Ptr HsBindgen.Runtime.LibC.Word8
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @size@
__defined at:__ @duckdb.h 826:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "size" DuckDBBignum ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBignum { size = y1
, data' = BG.getField @"data'" x0
, is_negative = BG.getField @"is_negative" x0
}
, BG.getField @"size" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "size" (BG.Ptr DuckDBBignum) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"size")
instance HasCField.HasCField DuckDBBignum "size" where
type CFieldType DuckDBBignum "size" = DuckDBIdx
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @is_negative@
__defined at:__ @duckdb.h 827:7@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.CBool
) => BG.CompatHasField.HasField "is_negative" DuckDBBignum ty where
hasField =
\x0 ->
( \y1 ->
DuckDBBignum { is_negative = y1
, data' = BG.getField @"data'" x0
, size = BG.getField @"size" x0
}
, BG.getField @"is_negative" x0
)
instance ( ty ~ BG.CBool
) => BG.HasField "is_negative" (BG.Ptr DuckDBBignum) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"is_negative")
instance HasCField.HasCField DuckDBBignum "is_negative" where
type CFieldType DuckDBBignum "is_negative" = BG.CBool
offset# = \_ -> \_ -> 16
{-| A query result. Must be freed with duckdb_destroy_result.
history:
* stable: v0.1.0
__C declaration:__ @struct duckdb_result@
__defined at:__ @duckdb.h 836:8@
__exported by:__ @duckdb.h@
-}
data DuckDBResult = DuckDBResult
{ deprecated_column_count :: DuckDBIdx
{- ^ __C declaration:__ @deprecated_column_count@
__defined at:__ @duckdb.h 837:8@
__exported by:__ @duckdb.h@
-}
, deprecated_row_count :: DuckDBIdx
{- ^ __C declaration:__ @deprecated_row_count@
__defined at:__ @duckdb.h 838:8@
__exported by:__ @duckdb.h@
-}
, deprecated_rows_changed :: DuckDBIdx
{- ^ __C declaration:__ @deprecated_rows_changed@
__defined at:__ @duckdb.h 839:8@
__exported by:__ @duckdb.h@
-}
, deprecated_columns :: BG.Ptr DuckDBColumn
{- ^ __C declaration:__ @deprecated_columns@
__defined at:__ @duckdb.h 840:17@
__exported by:__ @duckdb.h@
-}
, deprecated_error_message :: BG.Ptr BG.CChar
{- ^ __C declaration:__ @deprecated_error_message@
__defined at:__ @duckdb.h 841:8@
__exported by:__ @duckdb.h@
-}
, internal_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @internal_data@
__defined at:__ @duckdb.h 842:8@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBResult where
staticSizeOf = \_ -> (48 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBResult where
readRaw =
\ptr0 ->
pure DuckDBResult
<*> HasCField.readRaw (BG.Proxy @"deprecated_column_count") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_row_count") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_rows_changed") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_columns") ptr0
<*> HasCField.readRaw (BG.Proxy @"deprecated_error_message") ptr0
<*> HasCField.readRaw (BG.Proxy @"internal_data") ptr0
instance Marshal.WriteRaw DuckDBResult where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBResult
deprecated_column_count2
deprecated_row_count3
deprecated_rows_changed4
deprecated_columns5
deprecated_error_message6
internal_data7 ->
HasCField.writeRaw (BG.Proxy @"deprecated_column_count") ptr0 deprecated_column_count2
>> HasCField.writeRaw (BG.Proxy @"deprecated_row_count") ptr0 deprecated_row_count3
>> HasCField.writeRaw (BG.Proxy @"deprecated_rows_changed") ptr0 deprecated_rows_changed4
>> HasCField.writeRaw (BG.Proxy @"deprecated_columns") ptr0 deprecated_columns5
>> HasCField.writeRaw (BG.Proxy @"deprecated_error_message") ptr0 deprecated_error_message6
>> HasCField.writeRaw (BG.Proxy @"internal_data") ptr0 internal_data7
deriving via Marshal.EquivStorable DuckDBResult instance BG.Storable DuckDBResult
deriving via Struct.IsStructViaReadRaw DuckDBResult instance Struct.IsStruct DuckDBResult
{-| __C declaration:__ @deprecated_column_count@
__defined at:__ @duckdb.h 837:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "deprecated_column_count" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { deprecated_column_count = y1
, deprecated_row_count = BG.getField @"deprecated_row_count" x0
, deprecated_rows_changed = BG.getField @"deprecated_rows_changed" x0
, deprecated_columns = BG.getField @"deprecated_columns" x0
, deprecated_error_message = BG.getField @"deprecated_error_message" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_column_count" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "deprecated_column_count" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_column_count")
instance HasCField.HasCField DuckDBResult "deprecated_column_count" where
type CFieldType DuckDBResult "deprecated_column_count" =
DuckDBIdx
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @deprecated_row_count@
__defined at:__ @duckdb.h 838:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "deprecated_row_count" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { deprecated_row_count = y1
, deprecated_column_count = BG.getField @"deprecated_column_count" x0
, deprecated_rows_changed = BG.getField @"deprecated_rows_changed" x0
, deprecated_columns = BG.getField @"deprecated_columns" x0
, deprecated_error_message = BG.getField @"deprecated_error_message" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_row_count" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "deprecated_row_count" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_row_count")
instance HasCField.HasCField DuckDBResult "deprecated_row_count" where
type CFieldType DuckDBResult "deprecated_row_count" =
DuckDBIdx
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @deprecated_rows_changed@
__defined at:__ @duckdb.h 839:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ DuckDBIdx
) => BG.CompatHasField.HasField "deprecated_rows_changed" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { deprecated_rows_changed = y1
, deprecated_column_count = BG.getField @"deprecated_column_count" x0
, deprecated_row_count = BG.getField @"deprecated_row_count" x0
, deprecated_columns = BG.getField @"deprecated_columns" x0
, deprecated_error_message = BG.getField @"deprecated_error_message" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_rows_changed" x0
)
instance ( ty ~ DuckDBIdx
) => BG.HasField "deprecated_rows_changed" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_rows_changed")
instance HasCField.HasCField DuckDBResult "deprecated_rows_changed" where
type CFieldType DuckDBResult "deprecated_rows_changed" =
DuckDBIdx
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @deprecated_columns@
__defined at:__ @duckdb.h 840:17@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr DuckDBColumn
) => BG.CompatHasField.HasField "deprecated_columns" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { deprecated_columns = y1
, deprecated_column_count = BG.getField @"deprecated_column_count" x0
, deprecated_row_count = BG.getField @"deprecated_row_count" x0
, deprecated_rows_changed = BG.getField @"deprecated_rows_changed" x0
, deprecated_error_message = BG.getField @"deprecated_error_message" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_columns" x0
)
instance ( ty ~ BG.Ptr DuckDBColumn
) => BG.HasField "deprecated_columns" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_columns")
instance HasCField.HasCField DuckDBResult "deprecated_columns" where
type CFieldType DuckDBResult "deprecated_columns" =
BG.Ptr DuckDBColumn
offset# = \_ -> \_ -> 24
{-| __C declaration:__ @deprecated_error_message@
__defined at:__ @duckdb.h 841:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.CChar
) => BG.CompatHasField.HasField "deprecated_error_message" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { deprecated_error_message = y1
, deprecated_column_count = BG.getField @"deprecated_column_count" x0
, deprecated_row_count = BG.getField @"deprecated_row_count" x0
, deprecated_rows_changed = BG.getField @"deprecated_rows_changed" x0
, deprecated_columns = BG.getField @"deprecated_columns" x0
, internal_data = BG.getField @"internal_data" x0
}
, BG.getField @"deprecated_error_message" x0
)
instance ( ty ~ BG.Ptr BG.CChar
) => BG.HasField "deprecated_error_message" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"deprecated_error_message")
instance HasCField.HasCField DuckDBResult "deprecated_error_message" where
type CFieldType DuckDBResult "deprecated_error_message" =
BG.Ptr BG.CChar
offset# = \_ -> \_ -> 32
{-| __C declaration:__ @internal_data@
__defined at:__ @duckdb.h 842:8@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "internal_data" DuckDBResult ty where
hasField =
\x0 ->
( \y1 ->
DuckDBResult { internal_data = y1
, deprecated_column_count = BG.getField @"deprecated_column_count" x0
, deprecated_row_count = BG.getField @"deprecated_row_count" x0
, deprecated_rows_changed = BG.getField @"deprecated_rows_changed" x0
, deprecated_columns = BG.getField @"deprecated_columns" x0
, deprecated_error_message = BG.getField @"deprecated_error_message" x0
}
, BG.getField @"internal_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "internal_data" (BG.Ptr DuckDBResult) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"internal_data")
instance HasCField.HasCField DuckDBResult "internal_data" where
type CFieldType DuckDBResult "internal_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 40
{-| A database instance cache. Must be destroyed with duckdb_destroy_instance_cache.
history:
* unstable: v1.2.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_instance_cache@
__defined at:__ @duckdb.h 862:16@
__exported by:__ @duckdb.h@
-}
data DuckDBInstanceCacheStruct
instance Marshal.StaticSize DuckDBInstanceCacheStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A database instance cache. Must be destroyed with duckdb_destroy_instance_cache.
history:
* unstable: v1.2.0
* stable: v1.5.6
__C declaration:__ @duckdb_instance_cache@
__defined at:__ @duckdb.h 864:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBInstanceCache = DuckDBInstanceCache
{ unwrap :: BG.Ptr DuckDBInstanceCacheStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBInstanceCacheStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBInstanceCache ty where
hasField =
\x0 ->
(\y1 ->
DuckDBInstanceCache {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBInstanceCacheStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBInstanceCache) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBInstanceCache "unwrap" where
type CFieldType DuckDBInstanceCache "unwrap" =
BG.Ptr DuckDBInstanceCacheStruct
offset# = \_ -> \_ -> 0
{-| A database object. Must be closed with duckdb_close.
history:
* stable: v0.1.0
__C declaration:__ @struct _duckdb_database@
__defined at:__ @duckdb.h 872:16@
__exported by:__ @duckdb.h@
-}
data DuckDBDatabaseStruct
instance Marshal.StaticSize DuckDBDatabaseStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A database object. Must be closed with duckdb_close.
history:
* stable: v0.1.0
__C declaration:__ @duckdb_database@
__defined at:__ @duckdb.h 874:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBDatabase = DuckDBDatabase
{ unwrap :: BG.Ptr DuckDBDatabaseStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBDatabaseStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBDatabase ty where
hasField =
\x0 ->
(\y1 ->
DuckDBDatabase {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBDatabaseStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBDatabase) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBDatabase "unwrap" where
type CFieldType DuckDBDatabase "unwrap" =
BG.Ptr DuckDBDatabaseStruct
offset# = \_ -> \_ -> 0
{-| A connection to a duckdb database. Must be closed with duckdb_disconnect.
history:
* stable: v0.1.0
__C declaration:__ @struct _duckdb_connection@
__defined at:__ @duckdb.h 882:16@
__exported by:__ @duckdb.h@
-}
data DuckDBConnectionStruct
instance Marshal.StaticSize DuckDBConnectionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A connection to a duckdb database. Must be closed with duckdb_disconnect.
history:
* stable: v0.1.0
__C declaration:__ @duckdb_connection@
__defined at:__ @duckdb.h 884:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBConnection = DuckDBConnection
{ unwrap :: BG.Ptr DuckDBConnectionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBConnectionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBConnection ty where
hasField =
\x0 ->
(\y1 ->
DuckDBConnection {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBConnectionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBConnection) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBConnection "unwrap" where
type CFieldType DuckDBConnection "unwrap" =
BG.Ptr DuckDBConnectionStruct
offset# = \_ -> \_ -> 0
{-| A client context of a duckdb connection. Must be destroyed with duckdb_destroy_client_context.
history:
* unstable: v1.3.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_client_context@
__defined at:__ @duckdb.h 893:16@
__exported by:__ @duckdb.h@
-}
data DuckDBClientContextStruct
instance Marshal.StaticSize DuckDBClientContextStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A client context of a duckdb connection. Must be destroyed with duckdb_destroy_client_context.
history:
* unstable: v1.3.0
* stable: v1.5.6
__C declaration:__ @duckdb_client_context@
__defined at:__ @duckdb.h 895:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBClientContext = DuckDBClientContext
{ unwrap :: BG.Ptr DuckDBClientContextStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBClientContextStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBClientContext ty where
hasField =
\x0 ->
(\y1 ->
DuckDBClientContext {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBClientContextStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBClientContext) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBClientContext "unwrap" where
type CFieldType DuckDBClientContext "unwrap" =
BG.Ptr DuckDBClientContextStruct
offset# = \_ -> \_ -> 0
{-| A prepared statement. Must be destroyed with duckdb_destroy_prepare.
history:
* stable: v0.1.0
__C declaration:__ @struct _duckdb_prepared_statement@
__defined at:__ @duckdb.h 903:16@
__exported by:__ @duckdb.h@
-}
data DuckDBPreparedStatementStruct
instance Marshal.StaticSize DuckDBPreparedStatementStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A prepared statement. Must be destroyed with duckdb_destroy_prepare.
history:
* stable: v0.1.0
__C declaration:__ @duckdb_prepared_statement@
__defined at:__ @duckdb.h 905:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBPreparedStatement = DuckDBPreparedStatement
{ unwrap :: BG.Ptr DuckDBPreparedStatementStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBPreparedStatementStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBPreparedStatement ty where
hasField =
\x0 ->
(\y1 ->
DuckDBPreparedStatement {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBPreparedStatementStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBPreparedStatement) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBPreparedStatement "unwrap" where
type CFieldType DuckDBPreparedStatement "unwrap" =
BG.Ptr DuckDBPreparedStatementStruct
offset# = \_ -> \_ -> 0
{-| Extracted statements. Must be destroyed with duckdb_destroy_extracted.
history:
* stable: v0.7.0
__C declaration:__ @struct _duckdb_extracted_statements@
__defined at:__ @duckdb.h 913:16@
__exported by:__ @duckdb.h@
-}
data DuckDBExtractedStatementsStruct
instance Marshal.StaticSize DuckDBExtractedStatementsStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Extracted statements. Must be destroyed with duckdb_destroy_extracted.
history:
* stable: v0.7.0
__C declaration:__ @duckdb_extracted_statements@
__defined at:__ @duckdb.h 915:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBExtractedStatements = DuckDBExtractedStatements
{ unwrap :: BG.Ptr DuckDBExtractedStatementsStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBExtractedStatementsStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBExtractedStatements ty where
hasField =
\x0 ->
(\y1 ->
DuckDBExtractedStatements {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBExtractedStatementsStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBExtractedStatements) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBExtractedStatements "unwrap" where
type CFieldType DuckDBExtractedStatements "unwrap" =
BG.Ptr DuckDBExtractedStatementsStruct
offset# = \_ -> \_ -> 0
{-| A pending query result. Must be destroyed with duckdb_destroy_pending.
history:
* stable: v0.5.0
__C declaration:__ @struct _duckdb_pending_result@
__defined at:__ @duckdb.h 923:16@
__exported by:__ @duckdb.h@
-}
data DuckDBPendingResultStruct
instance Marshal.StaticSize DuckDBPendingResultStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A pending query result. Must be destroyed with duckdb_destroy_pending.
history:
* stable: v0.5.0
__C declaration:__ @duckdb_pending_result@
__defined at:__ @duckdb.h 925:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBPendingResult = DuckDBPendingResult
{ unwrap :: BG.Ptr DuckDBPendingResultStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBPendingResultStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBPendingResult ty where
hasField =
\x0 ->
(\y1 ->
DuckDBPendingResult {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBPendingResultStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBPendingResult) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBPendingResult "unwrap" where
type CFieldType DuckDBPendingResult "unwrap" =
BG.Ptr DuckDBPendingResultStruct
offset# = \_ -> \_ -> 0
{-| The appender enables fast data loading into DuckDB. Must be destroyed with duckdb_appender_destroy.
history:
* stable: v0.2.5
__C declaration:__ @struct _duckdb_appender@
__defined at:__ @duckdb.h 933:16@
__exported by:__ @duckdb.h@
-}
data DuckDBAppenderStruct
instance Marshal.StaticSize DuckDBAppenderStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| The appender enables fast data loading into DuckDB. Must be destroyed with duckdb_appender_destroy.
history:
* stable: v0.2.5
__C declaration:__ @duckdb_appender@
__defined at:__ @duckdb.h 935:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAppender = DuckDBAppender
{ unwrap :: BG.Ptr DuckDBAppenderStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBAppenderStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBAppender ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAppender {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBAppenderStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBAppender) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAppender "unwrap" where
type CFieldType DuckDBAppender "unwrap" =
BG.Ptr DuckDBAppenderStruct
offset# = \_ -> \_ -> 0
{-| The table description allows querying information about the table. Must be destroyed with duckdb_table_description_destroy.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_table_description@
__defined at:__ @duckdb.h 944:16@
__exported by:__ @duckdb.h@
-}
data DuckDBTableDescriptionStruct
instance Marshal.StaticSize DuckDBTableDescriptionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| The table description allows querying information about the table. Must be destroyed with duckdb_table_description_destroy.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_table_description@
__defined at:__ @duckdb.h 946:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableDescription = DuckDBTableDescription
{ unwrap :: BG.Ptr DuckDBTableDescriptionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBTableDescriptionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBTableDescription ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableDescription {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBTableDescriptionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableDescription) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableDescription "unwrap" where
type CFieldType DuckDBTableDescription "unwrap" =
BG.Ptr DuckDBTableDescriptionStruct
offset# = \_ -> \_ -> 0
{-| The configuration for opening a database. Must be destroyed with duckdb_destroy_config.
history:
* stable: v0.2.8
__C declaration:__ @struct _duckdb_config@
__defined at:__ @duckdb.h 954:16@
__exported by:__ @duckdb.h@
-}
data DuckDBConfigStruct
instance Marshal.StaticSize DuckDBConfigStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| The configuration for opening a database. Must be destroyed with duckdb_destroy_config.
history:
* stable: v0.2.8
__C declaration:__ @duckdb_config@
__defined at:__ @duckdb.h 956:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBConfig = DuckDBConfig
{ unwrap :: BG.Ptr DuckDBConfigStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBConfigStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBConfig ty where
hasField =
\x0 ->
(\y1 ->
DuckDBConfig {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBConfigStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBConfig) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBConfig "unwrap" where
type CFieldType DuckDBConfig "unwrap" =
BG.Ptr DuckDBConfigStruct
offset# = \_ -> \_ -> 0
{-| A custom configuration option instance. Must be destroyed with duckdb_destroy_config_option.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_config_option@
__defined at:__ @duckdb.h 965:16@
__exported by:__ @duckdb.h@
-}
data DuckDBConfigOptionStruct
instance Marshal.StaticSize DuckDBConfigOptionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A custom configuration option instance. Must be destroyed with duckdb_destroy_config_option.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_config_option@
__defined at:__ @duckdb.h 967:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBConfigOption = DuckDBConfigOption
{ unwrap :: BG.Ptr DuckDBConfigOptionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBConfigOptionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBConfigOption ty where
hasField =
\x0 ->
(\y1 ->
DuckDBConfigOption {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBConfigOptionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBConfigOption) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBConfigOption "unwrap" where
type CFieldType DuckDBConfigOption "unwrap" =
BG.Ptr DuckDBConfigOptionStruct
offset# = \_ -> \_ -> 0
{-| A logical type. Must be destroyed with duckdb_destroy_logical_type.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_logical_type@
__defined at:__ @duckdb.h 975:16@
__exported by:__ @duckdb.h@
-}
data DuckDBLogicalTypeStruct
instance Marshal.StaticSize DuckDBLogicalTypeStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A logical type. Must be destroyed with duckdb_destroy_logical_type.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_logical_type@
__defined at:__ @duckdb.h 977:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBLogicalType = DuckDBLogicalType
{ unwrap :: BG.Ptr DuckDBLogicalTypeStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBLogicalTypeStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBLogicalType ty where
hasField =
\x0 ->
(\y1 ->
DuckDBLogicalType {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBLogicalTypeStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBLogicalType) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBLogicalType "unwrap" where
type CFieldType DuckDBLogicalType "unwrap" =
BG.Ptr DuckDBLogicalTypeStruct
offset# = \_ -> \_ -> 0
{-| Holds extra information to register a custom logical type. Reserved for future use.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_create_type_info@
__defined at:__ @duckdb.h 985:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCreateTypeInfoStruct
instance Marshal.StaticSize DuckDBCreateTypeInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds extra information to register a custom logical type. Reserved for future use.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_create_type_info@
__defined at:__ @duckdb.h 987:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCreateTypeInfo = DuckDBCreateTypeInfo
{ unwrap :: BG.Ptr DuckDBCreateTypeInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCreateTypeInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCreateTypeInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCreateTypeInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCreateTypeInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCreateTypeInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCreateTypeInfo "unwrap" where
type CFieldType DuckDBCreateTypeInfo "unwrap" =
BG.Ptr DuckDBCreateTypeInfoStruct
offset# = \_ -> \_ -> 0
{-|
Contains a data chunk of a t'DuckDBResult' . Must be destroyed with duckdb_destroy_data_chunk.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_data_chunk@
__defined at:__ @duckdb.h 995:16@
__exported by:__ @duckdb.h@
-}
data DuckDBDataChunkStruct
instance Marshal.StaticSize DuckDBDataChunkStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-|
Contains a data chunk of a t'DuckDBResult' . Must be destroyed with duckdb_destroy_data_chunk.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_data_chunk@
__defined at:__ @duckdb.h 997:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBDataChunk = DuckDBDataChunk
{ unwrap :: BG.Ptr DuckDBDataChunkStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBDataChunkStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBDataChunk ty where
hasField =
\x0 ->
(\y1 ->
DuckDBDataChunk {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBDataChunkStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBDataChunk) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBDataChunk "unwrap" where
type CFieldType DuckDBDataChunk "unwrap" =
BG.Ptr DuckDBDataChunkStruct
offset# = \_ -> \_ -> 0
{-| A value of a logical type. Must be destroyed with duckdb_destroy_value.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_value@
__defined at:__ @duckdb.h 1005:16@
__exported by:__ @duckdb.h@
-}
data DuckDBValueStruct
instance Marshal.StaticSize DuckDBValueStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A value of a logical type. Must be destroyed with duckdb_destroy_value.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_value@
__defined at:__ @duckdb.h 1007:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBValue = DuckDBValue
{ unwrap :: BG.Ptr DuckDBValueStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBValueStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBValue ty where
hasField =
\x0 ->
(\y1 ->
DuckDBValue {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBValueStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBValue) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBValue "unwrap" where
type CFieldType DuckDBValue "unwrap" =
BG.Ptr DuckDBValueStruct
offset# = \_ -> \_ -> 0
{-| Holds a recursive tree containing profiling metrics.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_profiling_info@
__defined at:__ @duckdb.h 1015:16@
__exported by:__ @duckdb.h@
-}
data DuckDBProfilingInfoStruct
instance Marshal.StaticSize DuckDBProfilingInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds a recursive tree containing profiling metrics.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_profiling_info@
__defined at:__ @duckdb.h 1017:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBProfilingInfo = DuckDBProfilingInfo
{ unwrap :: BG.Ptr DuckDBProfilingInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBProfilingInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBProfilingInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBProfilingInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBProfilingInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBProfilingInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBProfilingInfo "unwrap" where
type CFieldType DuckDBProfilingInfo "unwrap" =
BG.Ptr DuckDBProfilingInfoStruct
offset# = \_ -> \_ -> 0
{-| Holds error data. Must be destroyed with duckdb_destroy_error_data.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_error_data@
__defined at:__ @duckdb.h 1026:16@
__exported by:__ @duckdb.h@
-}
data DuckDBErrorDataStruct
instance Marshal.StaticSize DuckDBErrorDataStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds error data. Must be destroyed with duckdb_destroy_error_data.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @duckdb_error_data@
__defined at:__ @duckdb.h 1028:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBErrorData = DuckDBErrorData
{ unwrap :: BG.Ptr DuckDBErrorDataStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBErrorDataStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBErrorData ty where
hasField =
\x0 ->
(\y1 ->
DuckDBErrorData {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBErrorDataStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBErrorData) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBErrorData "unwrap" where
type CFieldType DuckDBErrorData "unwrap" =
BG.Ptr DuckDBErrorDataStruct
offset# = \_ -> \_ -> 0
{-| Holds a bound expression. Must be destroyed with duckdb_destroy_expression.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_expression@
__defined at:__ @duckdb.h 1037:16@
__exported by:__ @duckdb.h@
-}
data DuckDBExpressionStruct
instance Marshal.StaticSize DuckDBExpressionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds a bound expression. Must be destroyed with duckdb_destroy_expression.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @duckdb_expression@
__defined at:__ @duckdb.h 1039:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBExpression = DuckDBExpression
{ unwrap :: BG.Ptr DuckDBExpressionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBExpressionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBExpression ty where
hasField =
\x0 ->
(\y1 ->
DuckDBExpression {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBExpressionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBExpression) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBExpression "unwrap" where
type CFieldType DuckDBExpression "unwrap" =
BG.Ptr DuckDBExpressionStruct
offset# = \_ -> \_ -> 0
{-| A vector, either standalone or a column in a data chunk.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_vector@
__defined at:__ @duckdb.h 1047:16@
__exported by:__ @duckdb.h@
-}
data DuckDBVectorStruct
instance Marshal.StaticSize DuckDBVectorStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A vector, either standalone or a column in a data chunk.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_vector@
__defined at:__ @duckdb.h 1049:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBVector = DuckDBVector
{ unwrap :: BG.Ptr DuckDBVectorStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBVectorStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBVector ty where
hasField =
\x0 ->
(\y1 ->
DuckDBVector {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBVectorStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBVector) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBVector "unwrap" where
type CFieldType DuckDBVector "unwrap" =
BG.Ptr DuckDBVectorStruct
offset# = \_ -> \_ -> 0
{-| A selection vector defining a selection on top of a vector. Must be destroyed with duckdb_destroy_selection_vector.
history:
* unstable: v1.3.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_selection_vector@
__defined at:__ @duckdb.h 1058:16@
__exported by:__ @duckdb.h@
-}
data DuckDBSelectionVectorStruct
instance Marshal.StaticSize DuckDBSelectionVectorStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A selection vector defining a selection on top of a vector. Must be destroyed with duckdb_destroy_selection_vector.
history:
* unstable: v1.3.0
* stable: v1.5.6
__C declaration:__ @duckdb_selection_vector@
__defined at:__ @duckdb.h 1060:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBSelectionVector = DuckDBSelectionVector
{ unwrap :: BG.Ptr DuckDBSelectionVectorStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBSelectionVectorStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBSelectionVector ty where
hasField =
\x0 ->
(\y1 ->
DuckDBSelectionVector {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBSelectionVectorStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBSelectionVector) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBSelectionVector "unwrap" where
type CFieldType DuckDBSelectionVector "unwrap" =
BG.Ptr DuckDBSelectionVectorStruct
offset# = \_ -> \_ -> 0
{-| Arrow options for transforming DuckDB schema/chunks to Arrow. Must be destroyed with duckdb_destroy_arrow_options.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_arrow_options@
__defined at:__ @duckdb.h 1069:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowOptionsStruct
instance Marshal.StaticSize DuckDBArrowOptionsStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Arrow options for transforming DuckDB schema/chunks to Arrow. Must be destroyed with duckdb_destroy_arrow_options.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @duckdb_arrow_options@
__defined at:__ @duckdb.h 1071:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrowOptions = DuckDBArrowOptions
{ unwrap :: BG.Ptr DuckDBArrowOptionsStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowOptionsStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrowOptions ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrowOptions {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowOptionsStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrowOptions) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrowOptions "unwrap" where
type CFieldType DuckDBArrowOptions "unwrap" =
BG.Ptr DuckDBArrowOptionsStruct
offset# = \_ -> \_ -> 0
{-| An arrow result set. Must be destroyed with duckdb_destroy_arrow.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @struct _duckdb_arrow@
__defined at:__ @duckdb.h 1080:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowStruct
instance Marshal.StaticSize DuckDBArrowStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An arrow result set. Must be destroyed with duckdb_destroy_arrow.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @duckdb_arrow@
__defined at:__ @duckdb.h 1082:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrow = DuckDBArrow
{ unwrap :: BG.Ptr DuckDBArrowStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrow ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrow {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrow) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrow "unwrap" where
type CFieldType DuckDBArrow "unwrap" =
BG.Ptr DuckDBArrowStruct
offset# = \_ -> \_ -> 0
{-| An arrow stream wrapper. Must be destroyed with duckdb_destroy_arrow_stream.
history:
* stable: v0.9.0
* deprecated: v1.5.6
__C declaration:__ @struct _duckdb_arrow_stream@
__defined at:__ @duckdb.h 1091:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowStreamStruct
instance Marshal.StaticSize DuckDBArrowStreamStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An arrow stream wrapper. Must be destroyed with duckdb_destroy_arrow_stream.
history:
* stable: v0.9.0
* deprecated: v1.5.6
__C declaration:__ @duckdb_arrow_stream@
__defined at:__ @duckdb.h 1093:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrowStream = DuckDBArrowStream
{ unwrap :: BG.Ptr DuckDBArrowStreamStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowStreamStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrowStream ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrowStream {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowStreamStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrowStream) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrowStream "unwrap" where
type CFieldType DuckDBArrowStream "unwrap" =
BG.Ptr DuckDBArrowStreamStruct
offset# = \_ -> \_ -> 0
{-| An arrow schema wrapper.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @struct _duckdb_arrow_schema@
__defined at:__ @duckdb.h 1102:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowSchemaStruct
instance Marshal.StaticSize DuckDBArrowSchemaStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An arrow schema wrapper.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @duckdb_arrow_schema@
__defined at:__ @duckdb.h 1104:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrowSchema = DuckDBArrowSchema
{ unwrap :: BG.Ptr DuckDBArrowSchemaStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowSchemaStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrowSchema ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrowSchema {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowSchemaStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrowSchema "unwrap" where
type CFieldType DuckDBArrowSchema "unwrap" =
BG.Ptr DuckDBArrowSchemaStruct
offset# = \_ -> \_ -> 0
{-| An arrow array wrapper.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @struct _duckdb_arrow_array@
__defined at:__ @duckdb.h 1113:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowArrayStruct
instance Marshal.StaticSize DuckDBArrowArrayStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An arrow array wrapper.
history:
* stable: v0.2.8
* deprecated: v1.5.6
__C declaration:__ @duckdb_arrow_array@
__defined at:__ @duckdb.h 1115:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrowArray = DuckDBArrowArray
{ unwrap :: BG.Ptr DuckDBArrowArrayStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowArrayStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrowArray ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrowArray {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowArrayStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrowArray "unwrap" where
type CFieldType DuckDBArrowArray "unwrap" =
BG.Ptr DuckDBArrowArrayStruct
offset# = \_ -> \_ -> 0
{-| Holds a converted Arrow schema. Must be destroyed with duckdb_destroy_arrow_converted_schema.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_arrow_converted_schema@
__defined at:__ @duckdb.h 1124:16@
__exported by:__ @duckdb.h@
-}
data DuckDBArrowConvertedSchemaStruct
instance Marshal.StaticSize DuckDBArrowConvertedSchemaStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds a converted Arrow schema. Must be destroyed with duckdb_destroy_arrow_converted_schema.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @duckdb_arrow_converted_schema@
__defined at:__ @duckdb.h 1126:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBArrowConvertedSchema = DuckDBArrowConvertedSchema
{ unwrap :: BG.Ptr DuckDBArrowConvertedSchemaStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBArrowConvertedSchemaStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBArrowConvertedSchema ty where
hasField =
\x0 ->
(\y1 ->
DuckDBArrowConvertedSchema {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBArrowConvertedSchemaStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBArrowConvertedSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBArrowConvertedSchema "unwrap" where
type CFieldType DuckDBArrowConvertedSchema "unwrap" =
BG.Ptr DuckDBArrowConvertedSchemaStruct
offset# = \_ -> \_ -> 0
{-| File open options. Must be destroyed with duckdb_destroy_file_open_options.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_file_open_options@
__defined at:__ @duckdb.h 1135:16@
__exported by:__ @duckdb.h@
-}
data DuckDBFileOpenOptionsStruct
instance Marshal.StaticSize DuckDBFileOpenOptionsStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| File open options. Must be destroyed with duckdb_destroy_file_open_options.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_file_open_options@
__defined at:__ @duckdb.h 1137:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBFileOpenOptions = DuckDBFileOpenOptions
{ unwrap :: BG.Ptr DuckDBFileOpenOptionsStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBFileOpenOptionsStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBFileOpenOptions ty where
hasField =
\x0 ->
(\y1 ->
DuckDBFileOpenOptions {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBFileOpenOptionsStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBFileOpenOptions) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBFileOpenOptions "unwrap" where
type CFieldType DuckDBFileOpenOptions "unwrap" =
BG.Ptr DuckDBFileOpenOptionsStruct
offset# = \_ -> \_ -> 0
{-| A file system instance. Must be destroyed with duckdb_destroy_file_system.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_file_system@
__defined at:__ @duckdb.h 1146:16@
__exported by:__ @duckdb.h@
-}
data DuckDBFileSystemStruct
instance Marshal.StaticSize DuckDBFileSystemStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A file system instance. Must be destroyed with duckdb_destroy_file_system.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_file_system@
__defined at:__ @duckdb.h 1148:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBFileSystem = DuckDBFileSystem
{ unwrap :: BG.Ptr DuckDBFileSystemStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBFileSystemStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBFileSystem ty where
hasField =
\x0 ->
(\y1 ->
DuckDBFileSystem {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBFileSystemStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBFileSystem) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBFileSystem "unwrap" where
type CFieldType DuckDBFileSystem "unwrap" =
BG.Ptr DuckDBFileSystemStruct
offset# = \_ -> \_ -> 0
{-| A file handle. Must be destroyed with duckdb_destroy_file_handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_file_handle@
__defined at:__ @duckdb.h 1157:16@
__exported by:__ @duckdb.h@
-}
data DuckDBFileHandleStruct
instance Marshal.StaticSize DuckDBFileHandleStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A file handle. Must be destroyed with duckdb_destroy_file_handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_file_handle@
__defined at:__ @duckdb.h 1159:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBFileHandle = DuckDBFileHandle
{ unwrap :: BG.Ptr DuckDBFileHandleStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBFileHandleStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBFileHandle ty where
hasField =
\x0 ->
(\y1 ->
DuckDBFileHandle {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBFileHandleStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBFileHandle) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBFileHandle "unwrap" where
type CFieldType DuckDBFileHandle "unwrap" =
BG.Ptr DuckDBFileHandleStruct
offset# = \_ -> \_ -> 0
{-| A handle to a database catalog. Must be destroyed with duckdb_destroy_catalog.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_catalog@
__defined at:__ @duckdb.h 1168:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCatalogStruct
instance Marshal.StaticSize DuckDBCatalogStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A handle to a database catalog. Must be destroyed with duckdb_destroy_catalog.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_catalog@
__defined at:__ @duckdb.h 1170:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCatalog = DuckDBCatalog
{ unwrap :: BG.Ptr DuckDBCatalogStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCatalogStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCatalog ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCatalog {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCatalogStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCatalog) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCatalog "unwrap" where
type CFieldType DuckDBCatalog "unwrap" =
BG.Ptr DuckDBCatalogStruct
offset# = \_ -> \_ -> 0
{-| A handle to a catalog entry. Must be destroyed with duckdb_destroy_catalog_entry.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_catalog_entry@
__defined at:__ @duckdb.h 1179:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCatalogEntryStruct
instance Marshal.StaticSize DuckDBCatalogEntryStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A handle to a catalog entry. Must be destroyed with duckdb_destroy_catalog_entry.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_catalog_entry@
__defined at:__ @duckdb.h 1181:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCatalogEntry = DuckDBCatalogEntry
{ unwrap :: BG.Ptr DuckDBCatalogEntryStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCatalogEntryStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCatalogEntry ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCatalogEntry {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCatalogEntryStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCatalogEntry) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCatalogEntry "unwrap" where
type CFieldType DuckDBCatalogEntry "unwrap" =
BG.Ptr DuckDBCatalogEntryStruct
offset# = \_ -> \_ -> 0
{-| Used for threading, contains a task state. Must be destroyed with duckdb_destroy_task_state.
history:
* stable: v0.5.0
__C declaration:__ @duckdb_task_state@
__defined at:__ @duckdb.h 1189:15@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTaskState = DuckDBTaskState
{ unwrap :: BG.Ptr BG.Void
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "unwrap" DuckDBTaskState ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTaskState {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "unwrap" (BG.Ptr DuckDBTaskState) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTaskState "unwrap" where
type CFieldType DuckDBTaskState "unwrap" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 0
{-| A scalar function. Must be destroyed with duckdb_destroy_scalar_function.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_scalar_function@
__defined at:__ @duckdb.h 1197:16@
__exported by:__ @duckdb.h@
-}
data DuckDBScalarFunctionStruct
instance Marshal.StaticSize DuckDBScalarFunctionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A scalar function. Must be destroyed with duckdb_destroy_scalar_function.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_scalar_function@
__defined at:__ @duckdb.h 1199:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunction = DuckDBScalarFunction
{ unwrap :: BG.Ptr DuckDBScalarFunctionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBScalarFunctionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunction ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunction {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBScalarFunctionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunction) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunction "unwrap" where
type CFieldType DuckDBScalarFunction "unwrap" =
BG.Ptr DuckDBScalarFunctionStruct
offset# = \_ -> \_ -> 0
{-| A scalar function set. Must be destroyed with duckdb_destroy_scalar_function_set.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_scalar_function_set@
__defined at:__ @duckdb.h 1207:16@
__exported by:__ @duckdb.h@
-}
data DuckDBScalarFunctionSetStruct
instance Marshal.StaticSize DuckDBScalarFunctionSetStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A scalar function set. Must be destroyed with duckdb_destroy_scalar_function_set.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_scalar_function_set@
__defined at:__ @duckdb.h 1209:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionSet = DuckDBScalarFunctionSet
{ unwrap :: BG.Ptr DuckDBScalarFunctionSetStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBScalarFunctionSetStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionSet ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunctionSet {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBScalarFunctionSetStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionSet) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionSet "unwrap" where
type CFieldType DuckDBScalarFunctionSet "unwrap" =
BG.Ptr DuckDBScalarFunctionSetStruct
offset# = \_ -> \_ -> 0
{-| An aggregate function. Must be destroyed with duckdb_destroy_aggregate_function.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_aggregate_function@
__defined at:__ @duckdb.h 1217:16@
__exported by:__ @duckdb.h@
-}
data DuckDBAggregateFunctionStruct
instance Marshal.StaticSize DuckDBAggregateFunctionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An aggregate function. Must be destroyed with duckdb_destroy_aggregate_function.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_function@
__defined at:__ @duckdb.h 1219:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateFunction = DuckDBAggregateFunction
{ unwrap :: BG.Ptr DuckDBAggregateFunctionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBAggregateFunctionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateFunction ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateFunction {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBAggregateFunctionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateFunction) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateFunction "unwrap" where
type CFieldType DuckDBAggregateFunction "unwrap" =
BG.Ptr DuckDBAggregateFunctionStruct
offset# = \_ -> \_ -> 0
{-| An aggregate function set. Must be destroyed with duckdb_destroy_aggregate_function_set.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_aggregate_function_set@
__defined at:__ @duckdb.h 1227:16@
__exported by:__ @duckdb.h@
-}
data DuckDBAggregateFunctionSetStruct
instance Marshal.StaticSize DuckDBAggregateFunctionSetStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| An aggregate function set. Must be destroyed with duckdb_destroy_aggregate_function_set.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_function_set@
__defined at:__ @duckdb.h 1229:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateFunctionSet = DuckDBAggregateFunctionSet
{ unwrap :: BG.Ptr DuckDBAggregateFunctionSetStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBAggregateFunctionSetStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateFunctionSet ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateFunctionSet {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBAggregateFunctionSetStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateFunctionSet) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateFunctionSet "unwrap" where
type CFieldType DuckDBAggregateFunctionSet "unwrap" =
BG.Ptr DuckDBAggregateFunctionSetStruct
offset# = \_ -> \_ -> 0
{-| The state of an aggregate function.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_aggregate_state@
__defined at:__ @duckdb.h 1237:16@
__exported by:__ @duckdb.h@
-}
data DuckDBAggregateStateStruct
instance Marshal.StaticSize DuckDBAggregateStateStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| The state of an aggregate function.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_state@
__defined at:__ @duckdb.h 1239:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateState = DuckDBAggregateState
{ unwrap :: BG.Ptr DuckDBAggregateStateStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBAggregateStateStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateState ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateState {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBAggregateStateStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateState) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateState "unwrap" where
type CFieldType DuckDBAggregateState "unwrap" =
BG.Ptr DuckDBAggregateStateStruct
offset# = \_ -> \_ -> 0
{-| A table function. Must be destroyed with duckdb_destroy_table_function.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_table_function@
__defined at:__ @duckdb.h 1247:16@
__exported by:__ @duckdb.h@
-}
data DuckDBTableFunctionStruct
instance Marshal.StaticSize DuckDBTableFunctionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A table function. Must be destroyed with duckdb_destroy_table_function.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_table_function@
__defined at:__ @duckdb.h 1249:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunction = DuckDBTableFunction
{ unwrap :: BG.Ptr DuckDBTableFunctionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBTableFunctionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunction ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableFunction {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBTableFunctionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunction) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunction "unwrap" where
type CFieldType DuckDBTableFunction "unwrap" =
BG.Ptr DuckDBTableFunctionStruct
offset# = \_ -> \_ -> 0
{-| A cast function. Must be destroyed with duckdb_destroy_cast_function.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_cast_function@
__defined at:__ @duckdb.h 1257:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCastFunctionStruct
instance Marshal.StaticSize DuckDBCastFunctionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A cast function. Must be destroyed with duckdb_destroy_cast_function.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_cast_function@
__defined at:__ @duckdb.h 1259:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCastFunction = DuckDBCastFunction
{ unwrap :: BG.Ptr DuckDBCastFunctionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCastFunctionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCastFunction ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCastFunction {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCastFunctionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCastFunction) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCastFunction "unwrap" where
type CFieldType DuckDBCastFunction "unwrap" =
BG.Ptr DuckDBCastFunctionStruct
offset# = \_ -> \_ -> 0
{-| A COPY function. Must be destroyed with duckdb_destroy_copy_function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_copy_function@
__defined at:__ @duckdb.h 1268:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCopyFunctionStruct
instance Marshal.StaticSize DuckDBCopyFunctionStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A COPY function. Must be destroyed with duckdb_destroy_copy_function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function@
__defined at:__ @duckdb.h 1270:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunction = DuckDBCopyFunction
{ unwrap :: BG.Ptr DuckDBCopyFunctionStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunction ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyFunction {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunction) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunction "unwrap" where
type CFieldType DuckDBCopyFunction "unwrap" =
BG.Ptr DuckDBCopyFunctionStruct
offset# = \_ -> \_ -> 0
{-| Info for the bind function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_copy_function_bind_info@
__defined at:__ @duckdb.h 1279:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCopyFunctionBindInfoStruct
instance Marshal.StaticSize DuckDBCopyFunctionBindInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Info for the bind function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_bind_info@
__defined at:__ @duckdb.h 1281:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionBindInfo = DuckDBCopyFunctionBindInfo
{ unwrap :: BG.Ptr DuckDBCopyFunctionBindInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionBindInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionBindInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyFunctionBindInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionBindInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionBindInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionBindInfo "unwrap" where
type CFieldType DuckDBCopyFunctionBindInfo "unwrap" =
BG.Ptr DuckDBCopyFunctionBindInfoStruct
offset# = \_ -> \_ -> 0
{-| Info for the global initialization function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_copy_function_global_init_info@
__defined at:__ @duckdb.h 1290:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCopyFunctionGlobalInitInfoStruct
instance Marshal.StaticSize DuckDBCopyFunctionGlobalInitInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Info for the global initialization function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_global_init_info@
__defined at:__ @duckdb.h 1292:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionGlobalInitInfo = DuckDBCopyFunctionGlobalInitInfo
{ unwrap :: BG.Ptr DuckDBCopyFunctionGlobalInitInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionGlobalInitInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionGlobalInitInfo ty where
hasField =
\x0 ->
( \y1 ->
DuckDBCopyFunctionGlobalInitInfo {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionGlobalInitInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionGlobalInitInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionGlobalInitInfo "unwrap" where
type CFieldType DuckDBCopyFunctionGlobalInitInfo "unwrap" =
BG.Ptr DuckDBCopyFunctionGlobalInitInfoStruct
offset# = \_ -> \_ -> 0
{-| Info for the sink function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_copy_function_sink_info@
__defined at:__ @duckdb.h 1301:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCopyFunctionSinkInfoStruct
instance Marshal.StaticSize DuckDBCopyFunctionSinkInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Info for the sink function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_sink_info@
__defined at:__ @duckdb.h 1303:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionSinkInfo = DuckDBCopyFunctionSinkInfo
{ unwrap :: BG.Ptr DuckDBCopyFunctionSinkInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionSinkInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionSinkInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyFunctionSinkInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionSinkInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionSinkInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionSinkInfo "unwrap" where
type CFieldType DuckDBCopyFunctionSinkInfo "unwrap" =
BG.Ptr DuckDBCopyFunctionSinkInfoStruct
offset# = \_ -> \_ -> 0
{-| Info for the finalize function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_copy_function_finalize_info@
__defined at:__ @duckdb.h 1312:16@
__exported by:__ @duckdb.h@
-}
data DuckDBCopyFunctionFinalizeInfoStruct
instance Marshal.StaticSize DuckDBCopyFunctionFinalizeInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Info for the finalize function of a COPY function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_finalize_info@
__defined at:__ @duckdb.h 1314:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionFinalizeInfo = DuckDBCopyFunctionFinalizeInfo
{ unwrap :: BG.Ptr DuckDBCopyFunctionFinalizeInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionFinalizeInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionFinalizeInfo ty where
hasField =
\x0 ->
( \y1 -> DuckDBCopyFunctionFinalizeInfo {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ BG.Ptr DuckDBCopyFunctionFinalizeInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionFinalizeInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionFinalizeInfo "unwrap" where
type CFieldType DuckDBCopyFunctionFinalizeInfo "unwrap" =
BG.Ptr DuckDBCopyFunctionFinalizeInfoStruct
offset# = \_ -> \_ -> 0
{-| Info passed to a replacement scan callback.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_replacement_scan_info@
__defined at:__ @duckdb.h 1322:16@
__exported by:__ @duckdb.h@
-}
data DuckDBReplacementScanInfoStruct
instance Marshal.StaticSize DuckDBReplacementScanInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Info passed to a replacement scan callback.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_replacement_scan_info@
__defined at:__ @duckdb.h 1324:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBReplacementScanInfo = DuckDBReplacementScanInfo
{ unwrap :: BG.Ptr DuckDBReplacementScanInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBReplacementScanInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBReplacementScanInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBReplacementScanInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBReplacementScanInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBReplacementScanInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBReplacementScanInfo "unwrap" where
type CFieldType DuckDBReplacementScanInfo "unwrap" =
BG.Ptr DuckDBReplacementScanInfoStruct
offset# = \_ -> \_ -> 0
{-| A log storage instance. Must be destroyed with duckdb_destroy_log_storage.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @struct _duckdb_log_storage@
__defined at:__ @duckdb.h 1333:16@
__exported by:__ @duckdb.h@
-}
data DuckDBLogStorageStruct
instance Marshal.StaticSize DuckDBLogStorageStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| A log storage instance. Must be destroyed with duckdb_destroy_log_storage.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_log_storage@
__defined at:__ @duckdb.h 1335:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBLogStorage = DuckDBLogStorage
{ unwrap :: BG.Ptr DuckDBLogStorageStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBLogStorageStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBLogStorage ty where
hasField =
\x0 ->
(\y1 ->
DuckDBLogStorage {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBLogStorageStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBLogStorage) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBLogStorage "unwrap" where
type CFieldType DuckDBLogStorage "unwrap" =
BG.Ptr DuckDBLogStorageStruct
offset# = \_ -> \_ -> 0
{-| Additional function info.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_function_info@
__defined at:__ @duckdb.h 1343:16@
__exported by:__ @duckdb.h@
-}
data DuckDBFunctionInfoStruct
instance Marshal.StaticSize DuckDBFunctionInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Additional function info.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_function_info@
__defined at:__ @duckdb.h 1345:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBFunctionInfo = DuckDBFunctionInfo
{ unwrap :: BG.Ptr DuckDBFunctionInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBFunctionInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBFunctionInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBFunctionInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBFunctionInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBFunctionInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBFunctionInfo "unwrap" where
type CFieldType DuckDBFunctionInfo "unwrap" =
BG.Ptr DuckDBFunctionInfoStruct
offset# = \_ -> \_ -> 0
{-| The bind info of a function.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_bind_info@
__defined at:__ @duckdb.h 1353:16@
__exported by:__ @duckdb.h@
-}
data DuckDBBindInfoStruct
instance Marshal.StaticSize DuckDBBindInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| The bind info of a function.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_bind_info@
__defined at:__ @duckdb.h 1355:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBBindInfo = DuckDBBindInfo
{ unwrap :: BG.Ptr DuckDBBindInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBBindInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBBindInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBBindInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBBindInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBBindInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBBindInfo "unwrap" where
type CFieldType DuckDBBindInfo "unwrap" =
BG.Ptr DuckDBBindInfoStruct
offset# = \_ -> \_ -> 0
{-| Additional function initialization info.
history:
* stable: v0.3.3
__C declaration:__ @struct _duckdb_init_info@
__defined at:__ @duckdb.h 1363:16@
__exported by:__ @duckdb.h@
-}
data DuckDBInitInfoStruct
instance Marshal.StaticSize DuckDBInitInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Additional function initialization info.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_init_info@
__defined at:__ @duckdb.h 1365:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBInitInfo = DuckDBInitInfo
{ unwrap :: BG.Ptr DuckDBInitInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBInitInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBInitInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBInitInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBInitInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBInitInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBInitInfo "unwrap" where
type CFieldType DuckDBInitInfo "unwrap" =
BG.Ptr DuckDBInitInfoStruct
offset# = \_ -> \_ -> 0
{-| Holds the state of the C API extension initialization process.
history:
* stable: v1.1.0
__C declaration:__ @struct _duckdb_extension_info@
__defined at:__ @duckdb.h 1373:16@
__exported by:__ @duckdb.h@
-}
data DuckDBExtensionInfoStruct
instance Marshal.StaticSize DuckDBExtensionInfoStruct where
staticSizeOf = \_ -> (8 :: Int)
staticAlignment = \_ -> (8 :: Int)
{-| Holds the state of the C API extension initialization process.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_extension_info@
__defined at:__ @duckdb.h 1375:5@
__exported by:__ @duckdb.h@
-}
newtype DuckDBExtensionInfo = DuckDBExtensionInfo
{ unwrap :: BG.Ptr DuckDBExtensionInfoStruct
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.Ptr DuckDBExtensionInfoStruct
) => BG.CompatHasField.HasField "unwrap" DuckDBExtensionInfo ty where
hasField =
\x0 ->
(\y1 ->
DuckDBExtensionInfo {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.Ptr DuckDBExtensionInfoStruct
) => BG.HasField "unwrap" (BG.Ptr DuckDBExtensionInfo) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBExtensionInfo "unwrap" where
type CFieldType DuckDBExtensionInfo "unwrap" =
BG.Ptr DuckDBExtensionInfoStruct
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @sel_t@
__defined at:__ @duckdb.h 1386:18@
__exported by:__ @duckdb.h@
-}
newtype DuckDBSel = DuckDBSel
{ unwrap :: HsBindgen.Runtime.LibC.Word32
}
deriving stock (Eq, BG.Generic, Ord, Read, Show)
deriving newtype
( BG.Bitfield
, BG.Bits
, Bounded
, Enum
, BG.FiniteBits
, BG.HasFFIType
, Integral
, BG.Ix
, Num
, BG.Prim
, Marshal.ReadRaw
, Real
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.CompatHasField.HasField "unwrap" DuckDBSel ty where
hasField =
\x0 ->
(\y1 ->
DuckDBSel {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ HsBindgen.Runtime.LibC.Word32
) => BG.HasField "unwrap" (BG.Ptr DuckDBSel) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBSel "unwrap" where
type CFieldType DuckDBSel "unwrap" =
HsBindgen.Runtime.LibC.Word32
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBDeleteCallback'
__C declaration:__ @duckdb_delete_callback_t@
__defined at:__ @duckdb.h 1399:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBDeleteCallback_Aux = DuckDBDeleteCallback_Aux
{ unwrap :: BG.Ptr BG.Void -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBDeleteCallback_Aux@
foreign import ccall safe "wrapper" hs_bindgen_088c55413de95db1_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBDeleteCallback_Aux@
hs_bindgen_088c55413de95db1 ::
DuckDBDeleteCallback_Aux
-> IO (BG.FunPtr DuckDBDeleteCallback_Aux)
hs_bindgen_088c55413de95db1 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_088c55413de95db1_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBDeleteCallback_Aux@
foreign import ccall safe "dynamic" hs_bindgen_bc8843f2f2a2a638_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBDeleteCallback_Aux@
hs_bindgen_bc8843f2f2a2a638 ::
BG.FunPtr DuckDBDeleteCallback_Aux
-> DuckDBDeleteCallback_Aux
hs_bindgen_bc8843f2f2a2a638 =
\funPtr0 ->
DuckDBDeleteCallback_Aux (\x1 ->
hs_bindgen_bc8843f2f2a2a638_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBDeleteCallback_Aux where
toFunPtr = hs_bindgen_088c55413de95db1
instance BG.FromFunPtr DuckDBDeleteCallback_Aux where
fromFunPtr = hs_bindgen_bc8843f2f2a2a638
instance ( ty ~ (BG.Ptr BG.Void -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBDeleteCallback_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBDeleteCallback_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (BG.Ptr BG.Void -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBDeleteCallback_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBDeleteCallback_Aux "unwrap" where
type CFieldType DuckDBDeleteCallback_Aux "unwrap" =
BG.Ptr BG.Void -> IO ()
offset# = \_ -> \_ -> 0
{-| The callback to destroy data.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_delete_callback_t@
__defined at:__ @duckdb.h 1399:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBDeleteCallback = DuckDBDeleteCallback
{ unwrap :: BG.FunPtr DuckDBDeleteCallback_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBDeleteCallback_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBDeleteCallback ty where
hasField =
\x0 ->
(\y1 ->
DuckDBDeleteCallback {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBDeleteCallback_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBDeleteCallback) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBDeleteCallback "unwrap" where
type CFieldType DuckDBDeleteCallback "unwrap" =
BG.FunPtr DuckDBDeleteCallback_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCopyCallback'
__C declaration:__ @duckdb_copy_callback_t@
__defined at:__ @duckdb.h 1408:17@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyCallback_Aux = DuckDBCopyCallback_Aux
{ unwrap :: BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCopyCallback_Aux@
foreign import ccall safe "wrapper" hs_bindgen_edeef2eec728e6e2_base ::
(BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)))
-- __unique:__ @toDuckDBCopyCallback_Aux@
hs_bindgen_edeef2eec728e6e2 ::
DuckDBCopyCallback_Aux
-> IO (BG.FunPtr DuckDBCopyCallback_Aux)
hs_bindgen_edeef2eec728e6e2 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_edeef2eec728e6e2_base (\x1 ->
fmap BG.toFFIType (BG.getField @"unwrap" fun0 (BG.fromFFIType x1))))
-- __unique:__ @fromDuckDBCopyCallback_Aux@
foreign import ccall safe "dynamic" hs_bindgen_05b2b99ed7267c75_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
-- __unique:__ @fromDuckDBCopyCallback_Aux@
hs_bindgen_05b2b99ed7267c75 ::
BG.FunPtr DuckDBCopyCallback_Aux
-> DuckDBCopyCallback_Aux
hs_bindgen_05b2b99ed7267c75 =
\funPtr0 ->
DuckDBCopyCallback_Aux (\x1 ->
fmap BG.fromFFIType (hs_bindgen_05b2b99ed7267c75_base (BG.castFunPtr funPtr0) (BG.toFFIType x1)))
instance BG.ToFunPtr DuckDBCopyCallback_Aux where
toFunPtr = hs_bindgen_edeef2eec728e6e2
instance BG.FromFunPtr DuckDBCopyCallback_Aux where
fromFunPtr = hs_bindgen_05b2b99ed7267c75
instance ( ty ~ (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyCallback_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyCallback_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyCallback_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyCallback_Aux "unwrap" where
type CFieldType DuckDBCopyCallback_Aux "unwrap" =
BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
offset# = \_ -> \_ -> 0
{-| The callback to copy data.
history:
* unstable: v1.4.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_callback_t@
__defined at:__ @duckdb.h 1408:17@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyCallback = DuckDBCopyCallback
{ unwrap :: BG.FunPtr DuckDBCopyCallback_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCopyCallback_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyCallback ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyCallback {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBCopyCallback_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyCallback) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyCallback "unwrap" where
type CFieldType DuckDBCopyCallback "unwrap" =
BG.FunPtr DuckDBCopyCallback_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBTableFunctionBindFun'
__C declaration:__ @duckdb_table_function_bind_t@
__defined at:__ @duckdb.h 1416:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionBindFun_Aux = DuckDBTableFunctionBindFun_Aux
{ unwrap :: DuckDBBindInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBTableFunctionBindFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_b9cffd5e02c3fac5_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBTableFunctionBindFun_Aux@
hs_bindgen_b9cffd5e02c3fac5 ::
DuckDBTableFunctionBindFun_Aux
-> IO (BG.FunPtr DuckDBTableFunctionBindFun_Aux)
hs_bindgen_b9cffd5e02c3fac5 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_b9cffd5e02c3fac5_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBTableFunctionBindFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_798fc7d822fb3036_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBTableFunctionBindFun_Aux@
hs_bindgen_798fc7d822fb3036 ::
BG.FunPtr DuckDBTableFunctionBindFun_Aux
-> DuckDBTableFunctionBindFun_Aux
hs_bindgen_798fc7d822fb3036 =
\funPtr0 ->
DuckDBTableFunctionBindFun_Aux (\x1 ->
hs_bindgen_798fc7d822fb3036_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBTableFunctionBindFun_Aux where
toFunPtr = hs_bindgen_b9cffd5e02c3fac5
instance BG.FromFunPtr DuckDBTableFunctionBindFun_Aux where
fromFunPtr = hs_bindgen_798fc7d822fb3036
instance ( ty ~ (DuckDBBindInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionBindFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBTableFunctionBindFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBBindInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionBindFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionBindFun_Aux "unwrap" where
type CFieldType DuckDBTableFunctionBindFun_Aux "unwrap" =
DuckDBBindInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The bind function of a table function.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_table_function_bind_t@
__defined at:__ @duckdb.h 1416:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionBindFun = DuckDBTableFunctionBindFun
{ unwrap :: BG.FunPtr DuckDBTableFunctionBindFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionBindFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionBindFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableFunctionBindFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionBindFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionBindFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionBindFun "unwrap" where
type CFieldType DuckDBTableFunctionBindFun "unwrap" =
BG.FunPtr DuckDBTableFunctionBindFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBTableFunctionInitFun'
__C declaration:__ @duckdb_table_function_init_t@
__defined at:__ @duckdb.h 1424:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionInitFun_Aux = DuckDBTableFunctionInitFun_Aux
{ unwrap :: DuckDBInitInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBTableFunctionInitFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_7fb60608b369dd4b_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBTableFunctionInitFun_Aux@
hs_bindgen_7fb60608b369dd4b ::
DuckDBTableFunctionInitFun_Aux
-> IO (BG.FunPtr DuckDBTableFunctionInitFun_Aux)
hs_bindgen_7fb60608b369dd4b =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_7fb60608b369dd4b_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBTableFunctionInitFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_b7d67ef3d038a116_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBTableFunctionInitFun_Aux@
hs_bindgen_b7d67ef3d038a116 ::
BG.FunPtr DuckDBTableFunctionInitFun_Aux
-> DuckDBTableFunctionInitFun_Aux
hs_bindgen_b7d67ef3d038a116 =
\funPtr0 ->
DuckDBTableFunctionInitFun_Aux (\x1 ->
hs_bindgen_b7d67ef3d038a116_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBTableFunctionInitFun_Aux where
toFunPtr = hs_bindgen_7fb60608b369dd4b
instance BG.FromFunPtr DuckDBTableFunctionInitFun_Aux where
fromFunPtr = hs_bindgen_b7d67ef3d038a116
instance ( ty ~ (DuckDBInitInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionInitFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBTableFunctionInitFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBInitInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionInitFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionInitFun_Aux "unwrap" where
type CFieldType DuckDBTableFunctionInitFun_Aux "unwrap" =
DuckDBInitInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The init function of a table function.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_table_function_init_t@
__defined at:__ @duckdb.h 1424:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionInitFun = DuckDBTableFunctionInitFun
{ unwrap :: BG.FunPtr DuckDBTableFunctionInitFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionInitFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionInitFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableFunctionInitFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionInitFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionInitFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionInitFun "unwrap" where
type CFieldType DuckDBTableFunctionInitFun "unwrap" =
BG.FunPtr DuckDBTableFunctionInitFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBTableFunctionFun'
__C declaration:__ @duckdb_table_function_t@
__defined at:__ @duckdb.h 1432:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionFun_Aux = DuckDBTableFunctionFun_Aux
{ unwrap :: DuckDBFunctionInfo -> DuckDBDataChunk -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBTableFunctionFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_53d8e71eff3b0bb4_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBTableFunctionFun_Aux@
hs_bindgen_53d8e71eff3b0bb4 ::
DuckDBTableFunctionFun_Aux
-> IO (BG.FunPtr DuckDBTableFunctionFun_Aux)
hs_bindgen_53d8e71eff3b0bb4 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_53d8e71eff3b0bb4_base (\x1 ->
\x2 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2)))
-- __unique:__ @fromDuckDBTableFunctionFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_226eeecfc5e200d9_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBTableFunctionFun_Aux@
hs_bindgen_226eeecfc5e200d9 ::
BG.FunPtr DuckDBTableFunctionFun_Aux
-> DuckDBTableFunctionFun_Aux
hs_bindgen_226eeecfc5e200d9 =
\funPtr0 ->
DuckDBTableFunctionFun_Aux (\x1 ->
\x2 ->
hs_bindgen_226eeecfc5e200d9_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr DuckDBTableFunctionFun_Aux where
toFunPtr = hs_bindgen_53d8e71eff3b0bb4
instance BG.FromFunPtr DuckDBTableFunctionFun_Aux where
fromFunPtr = hs_bindgen_226eeecfc5e200d9
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionFun_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableFunctionFun_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionFun_Aux "unwrap" where
type CFieldType DuckDBTableFunctionFun_Aux "unwrap" =
DuckDBFunctionInfo -> DuckDBDataChunk -> IO ()
offset# = \_ -> \_ -> 0
{-| The main function of a table function.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_table_function_t@
__defined at:__ @duckdb.h 1432:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBTableFunctionFun = DuckDBTableFunctionFun
{ unwrap :: BG.FunPtr DuckDBTableFunctionFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBTableFunctionFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBTableFunctionFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBTableFunctionFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBTableFunctionFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBTableFunctionFun "unwrap" where
type CFieldType DuckDBTableFunctionFun "unwrap" =
BG.FunPtr DuckDBTableFunctionFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBReplacementCallback'
__C declaration:__ @duckdb_replacement_callback_t@
__defined at:__ @duckdb.h 1440:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBReplacementCallback_Aux = DuckDBReplacementCallback_Aux
{ unwrap :: DuckDBReplacementScanInfo -> PtrConst.PtrConst BG.CChar -> BG.Ptr BG.Void -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBReplacementCallback_Aux@
foreign import ccall safe "wrapper" hs_bindgen_b4d89b8f0853ff56_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBReplacementCallback_Aux@
hs_bindgen_b4d89b8f0853ff56 ::
DuckDBReplacementCallback_Aux
-> IO (BG.FunPtr DuckDBReplacementCallback_Aux)
hs_bindgen_b4d89b8f0853ff56 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_b4d89b8f0853ff56_base (\x1 ->
\x2 ->
\x3 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3)))
-- __unique:__ @fromDuckDBReplacementCallback_Aux@
foreign import ccall safe "dynamic" hs_bindgen_4e157a67ceab2edc_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBReplacementCallback_Aux@
hs_bindgen_4e157a67ceab2edc ::
BG.FunPtr DuckDBReplacementCallback_Aux
-> DuckDBReplacementCallback_Aux
hs_bindgen_4e157a67ceab2edc =
\funPtr0 ->
DuckDBReplacementCallback_Aux (\x1 ->
\x2 ->
\x3 ->
hs_bindgen_4e157a67ceab2edc_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
instance BG.ToFunPtr DuckDBReplacementCallback_Aux where
toFunPtr = hs_bindgen_b4d89b8f0853ff56
instance BG.FromFunPtr DuckDBReplacementCallback_Aux where
fromFunPtr = hs_bindgen_4e157a67ceab2edc
instance ( ty ~ (DuckDBReplacementScanInfo -> PtrConst.PtrConst BG.CChar -> BG.Ptr BG.Void -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBReplacementCallback_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBReplacementCallback_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBReplacementScanInfo -> PtrConst.PtrConst BG.CChar -> BG.Ptr BG.Void -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBReplacementCallback_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBReplacementCallback_Aux "unwrap" where
type CFieldType DuckDBReplacementCallback_Aux "unwrap" =
DuckDBReplacementScanInfo -> PtrConst.PtrConst BG.CChar -> BG.Ptr BG.Void -> IO ()
offset# = \_ -> \_ -> 0
{-| The callback function for replacement scans.
history:
* stable: v0.3.3
__C declaration:__ @duckdb_replacement_callback_t@
__defined at:__ @duckdb.h 1440:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBReplacementCallback = DuckDBReplacementCallback
{ unwrap :: BG.FunPtr DuckDBReplacementCallback_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBReplacementCallback_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBReplacementCallback ty where
hasField =
\x0 ->
(\y1 ->
DuckDBReplacementCallback {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBReplacementCallback_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBReplacementCallback) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBReplacementCallback "unwrap" where
type CFieldType DuckDBReplacementCallback "unwrap" =
BG.FunPtr DuckDBReplacementCallback_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBLoggerWriteLogEntryFun'
__C declaration:__ @duckdb_logger_write_log_entry_t@
__defined at:__ @duckdb.h 1449:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBLoggerWriteLogEntryFun_Aux = DuckDBLoggerWriteLogEntryFun_Aux
{ unwrap :: BG.Ptr BG.Void -> BG.Ptr DuckDBTimestamp -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBLoggerWriteLogEntryFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_ea7c4e837c257e90_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBLoggerWriteLogEntryFun_Aux@
hs_bindgen_ea7c4e837c257e90 ::
DuckDBLoggerWriteLogEntryFun_Aux
-> IO (BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux)
hs_bindgen_ea7c4e837c257e90 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_ea7c4e837c257e90_base (\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3) (BG.fromFFIType x4) (BG.fromFFIType x5)))
-- __unique:__ @fromDuckDBLoggerWriteLogEntryFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_8d44e6357922aee3_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBLoggerWriteLogEntryFun_Aux@
hs_bindgen_8d44e6357922aee3 ::
BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux
-> DuckDBLoggerWriteLogEntryFun_Aux
hs_bindgen_8d44e6357922aee3 =
\funPtr0 ->
DuckDBLoggerWriteLogEntryFun_Aux (\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
hs_bindgen_8d44e6357922aee3_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4) (BG.toFFIType x5))
instance BG.ToFunPtr DuckDBLoggerWriteLogEntryFun_Aux where
toFunPtr = hs_bindgen_ea7c4e837c257e90
instance BG.FromFunPtr DuckDBLoggerWriteLogEntryFun_Aux where
fromFunPtr = hs_bindgen_8d44e6357922aee3
instance ( ty ~ (BG.Ptr BG.Void -> BG.Ptr DuckDBTimestamp -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBLoggerWriteLogEntryFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBLoggerWriteLogEntryFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (BG.Ptr BG.Void -> BG.Ptr DuckDBTimestamp -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBLoggerWriteLogEntryFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBLoggerWriteLogEntryFun_Aux "unwrap" where
type CFieldType DuckDBLoggerWriteLogEntryFun_Aux "unwrap" =
BG.Ptr BG.Void -> BG.Ptr DuckDBTimestamp -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO ()
offset# = \_ -> \_ -> 0
{-| The callback to write a log entry.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_logger_write_log_entry_t@
__defined at:__ @duckdb.h 1449:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBLoggerWriteLogEntryFun = DuckDBLoggerWriteLogEntryFun
{ unwrap :: BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBLoggerWriteLogEntryFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBLoggerWriteLogEntryFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBLoggerWriteLogEntryFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBLoggerWriteLogEntryFun "unwrap" where
type CFieldType DuckDBLoggerWriteLogEntryFun "unwrap" =
BG.FunPtr DuckDBLoggerWriteLogEntryFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCopyFunctionSinkFun'
__C declaration:__ @duckdb_copy_function_sink_t@
__defined at:__ @duckdb.h 1459:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionSinkFun_Aux = DuckDBCopyFunctionSinkFun_Aux
{ unwrap :: DuckDBCopyFunctionSinkInfo -> DuckDBDataChunk -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCopyFunctionSinkFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_65cd6c9e5697a4db_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBCopyFunctionSinkFun_Aux@
hs_bindgen_65cd6c9e5697a4db ::
DuckDBCopyFunctionSinkFun_Aux
-> IO (BG.FunPtr DuckDBCopyFunctionSinkFun_Aux)
hs_bindgen_65cd6c9e5697a4db =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_65cd6c9e5697a4db_base (\x1 ->
\x2 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2)))
-- __unique:__ @fromDuckDBCopyFunctionSinkFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_27010a41023bec9f_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBCopyFunctionSinkFun_Aux@
hs_bindgen_27010a41023bec9f ::
BG.FunPtr DuckDBCopyFunctionSinkFun_Aux
-> DuckDBCopyFunctionSinkFun_Aux
hs_bindgen_27010a41023bec9f =
\funPtr0 ->
DuckDBCopyFunctionSinkFun_Aux (\x1 ->
\x2 ->
hs_bindgen_27010a41023bec9f_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr DuckDBCopyFunctionSinkFun_Aux where
toFunPtr = hs_bindgen_65cd6c9e5697a4db
instance BG.FromFunPtr DuckDBCopyFunctionSinkFun_Aux where
fromFunPtr = hs_bindgen_27010a41023bec9f
instance ( ty ~ (DuckDBCopyFunctionSinkInfo -> DuckDBDataChunk -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionSinkFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBCopyFunctionSinkFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBCopyFunctionSinkInfo -> DuckDBDataChunk -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionSinkFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionSinkFun_Aux "unwrap" where
type CFieldType DuckDBCopyFunctionSinkFun_Aux "unwrap" =
DuckDBCopyFunctionSinkInfo -> DuckDBDataChunk -> IO ()
offset# = \_ -> \_ -> 0
{-| The sink function of a copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_sink_t@
__defined at:__ @duckdb.h 1459:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionSinkFun = DuckDBCopyFunctionSinkFun
{ unwrap :: BG.FunPtr DuckDBCopyFunctionSinkFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionSinkFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionSinkFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyFunctionSinkFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionSinkFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionSinkFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionSinkFun "unwrap" where
type CFieldType DuckDBCopyFunctionSinkFun "unwrap" =
BG.FunPtr DuckDBCopyFunctionSinkFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCopyFunctionFinalizeFun'
__C declaration:__ @duckdb_copy_function_finalize_t@
__defined at:__ @duckdb.h 1468:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionFinalizeFun_Aux = DuckDBCopyFunctionFinalizeFun_Aux
{ unwrap :: DuckDBCopyFunctionFinalizeInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCopyFunctionFinalizeFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_a0c65c3d04272ccd_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBCopyFunctionFinalizeFun_Aux@
hs_bindgen_a0c65c3d04272ccd ::
DuckDBCopyFunctionFinalizeFun_Aux
-> IO (BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux)
hs_bindgen_a0c65c3d04272ccd =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_a0c65c3d04272ccd_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBCopyFunctionFinalizeFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_58cc1a6f629467fc_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBCopyFunctionFinalizeFun_Aux@
hs_bindgen_58cc1a6f629467fc ::
BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux
-> DuckDBCopyFunctionFinalizeFun_Aux
hs_bindgen_58cc1a6f629467fc =
\funPtr0 ->
DuckDBCopyFunctionFinalizeFun_Aux (\x1 ->
hs_bindgen_58cc1a6f629467fc_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBCopyFunctionFinalizeFun_Aux where
toFunPtr = hs_bindgen_a0c65c3d04272ccd
instance BG.FromFunPtr DuckDBCopyFunctionFinalizeFun_Aux where
fromFunPtr = hs_bindgen_58cc1a6f629467fc
instance ( ty ~ (DuckDBCopyFunctionFinalizeInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionFinalizeFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBCopyFunctionFinalizeFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBCopyFunctionFinalizeInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionFinalizeFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionFinalizeFun_Aux "unwrap" where
type CFieldType DuckDBCopyFunctionFinalizeFun_Aux "unwrap" =
DuckDBCopyFunctionFinalizeInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The finalize function of a copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_finalize_t@
__defined at:__ @duckdb.h 1468:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionFinalizeFun = DuckDBCopyFunctionFinalizeFun
{ unwrap :: BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionFinalizeFun ty where
hasField =
\x0 ->
( \y1 -> DuckDBCopyFunctionFinalizeFun {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionFinalizeFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionFinalizeFun "unwrap" where
type CFieldType DuckDBCopyFunctionFinalizeFun "unwrap" =
BG.FunPtr DuckDBCopyFunctionFinalizeFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateStateSizeFun'
__C declaration:__ @duckdb_aggregate_state_size@
__defined at:__ @duckdb.h 1476:17@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateStateSizeFun_Aux = DuckDBAggregateStateSizeFun_Aux
{ unwrap :: DuckDBFunctionInfo -> IO DuckDBIdx
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateStateSizeFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_72af9c6ff78a0cab_base ::
(BG.Ptr BG.Void -> IO HsBindgen.Runtime.LibC.Word64)
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO HsBindgen.Runtime.LibC.Word64))
-- __unique:__ @toDuckDBAggregateStateSizeFun_Aux@
hs_bindgen_72af9c6ff78a0cab ::
DuckDBAggregateStateSizeFun_Aux
-> IO (BG.FunPtr DuckDBAggregateStateSizeFun_Aux)
hs_bindgen_72af9c6ff78a0cab =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_72af9c6ff78a0cab_base (\x1 ->
fmap BG.toFFIType (BG.getField @"unwrap" fun0 (BG.fromFFIType x1))))
-- __unique:__ @fromDuckDBAggregateStateSizeFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_9b6685daa72b6ee0_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO HsBindgen.Runtime.LibC.Word64)
-> BG.Ptr BG.Void -> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @fromDuckDBAggregateStateSizeFun_Aux@
hs_bindgen_9b6685daa72b6ee0 ::
BG.FunPtr DuckDBAggregateStateSizeFun_Aux
-> DuckDBAggregateStateSizeFun_Aux
hs_bindgen_9b6685daa72b6ee0 =
\funPtr0 ->
DuckDBAggregateStateSizeFun_Aux (\x1 ->
fmap BG.fromFFIType (hs_bindgen_9b6685daa72b6ee0_base (BG.castFunPtr funPtr0) (BG.toFFIType x1)))
instance BG.ToFunPtr DuckDBAggregateStateSizeFun_Aux where
toFunPtr = hs_bindgen_72af9c6ff78a0cab
instance BG.FromFunPtr DuckDBAggregateStateSizeFun_Aux where
fromFunPtr = hs_bindgen_9b6685daa72b6ee0
instance ( ty ~ (DuckDBFunctionInfo -> IO DuckDBIdx)
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateStateSizeFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBAggregateStateSizeFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBFunctionInfo -> IO DuckDBIdx)
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateStateSizeFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateStateSizeFun_Aux "unwrap" where
type CFieldType DuckDBAggregateStateSizeFun_Aux "unwrap" =
DuckDBFunctionInfo -> IO DuckDBIdx
offset# = \_ -> \_ -> 0
{-| A function to get the size of an aggregate state.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_state_size@
__defined at:__ @duckdb.h 1476:17@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateStateSizeFun = DuckDBAggregateStateSizeFun
{ unwrap :: BG.FunPtr DuckDBAggregateStateSizeFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateStateSizeFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateStateSizeFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateStateSizeFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateStateSizeFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateStateSizeFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateStateSizeFun "unwrap" where
type CFieldType DuckDBAggregateStateSizeFun "unwrap" =
BG.FunPtr DuckDBAggregateStateSizeFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateInitFun'
__C declaration:__ @duckdb_aggregate_init_t@
__defined at:__ @duckdb.h 1484:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateInitFun_Aux = DuckDBAggregateInitFun_Aux
{ unwrap :: DuckDBFunctionInfo -> DuckDBAggregateState -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateInitFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_112ee1a46eac440d_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBAggregateInitFun_Aux@
hs_bindgen_112ee1a46eac440d ::
DuckDBAggregateInitFun_Aux
-> IO (BG.FunPtr DuckDBAggregateInitFun_Aux)
hs_bindgen_112ee1a46eac440d =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_112ee1a46eac440d_base (\x1 ->
\x2 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2)))
-- __unique:__ @fromDuckDBAggregateInitFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_06d2cdb271ba2e4b_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBAggregateInitFun_Aux@
hs_bindgen_06d2cdb271ba2e4b ::
BG.FunPtr DuckDBAggregateInitFun_Aux
-> DuckDBAggregateInitFun_Aux
hs_bindgen_06d2cdb271ba2e4b =
\funPtr0 ->
DuckDBAggregateInitFun_Aux (\x1 ->
\x2 ->
hs_bindgen_06d2cdb271ba2e4b_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr DuckDBAggregateInitFun_Aux where
toFunPtr = hs_bindgen_112ee1a46eac440d
instance BG.FromFunPtr DuckDBAggregateInitFun_Aux where
fromFunPtr = hs_bindgen_06d2cdb271ba2e4b
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBAggregateState -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateInitFun_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateInitFun_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBAggregateState -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateInitFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateInitFun_Aux "unwrap" where
type CFieldType DuckDBAggregateInitFun_Aux "unwrap" =
DuckDBFunctionInfo -> DuckDBAggregateState -> IO ()
offset# = \_ -> \_ -> 0
{-| A function to initialize an aggregate state.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_init_t@
__defined at:__ @duckdb.h 1484:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateInitFun = DuckDBAggregateInitFun
{ unwrap :: BG.FunPtr DuckDBAggregateInitFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateInitFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateInitFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateInitFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateInitFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateInitFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateInitFun "unwrap" where
type CFieldType DuckDBAggregateInitFun "unwrap" =
BG.FunPtr DuckDBAggregateInitFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateDestroyFun'
__C declaration:__ @duckdb_aggregate_destroy_t@
__defined at:__ @duckdb.h 1492:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateDestroyFun_Aux = DuckDBAggregateDestroyFun_Aux
{ unwrap :: BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateDestroyFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_7d4ad922621df3cd_base ::
(BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ()))
-- __unique:__ @toDuckDBAggregateDestroyFun_Aux@
hs_bindgen_7d4ad922621df3cd ::
DuckDBAggregateDestroyFun_Aux
-> IO (BG.FunPtr DuckDBAggregateDestroyFun_Aux)
hs_bindgen_7d4ad922621df3cd =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_7d4ad922621df3cd_base (\x1 ->
\x2 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2)))
-- __unique:__ @fromDuckDBAggregateDestroyFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_72792d9b3626d47e_base ::
BG.FunPtr (BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ()
-- __unique:__ @fromDuckDBAggregateDestroyFun_Aux@
hs_bindgen_72792d9b3626d47e ::
BG.FunPtr DuckDBAggregateDestroyFun_Aux
-> DuckDBAggregateDestroyFun_Aux
hs_bindgen_72792d9b3626d47e =
\funPtr0 ->
DuckDBAggregateDestroyFun_Aux (\x1 ->
\x2 ->
hs_bindgen_72792d9b3626d47e_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr DuckDBAggregateDestroyFun_Aux where
toFunPtr = hs_bindgen_7d4ad922621df3cd
instance BG.FromFunPtr DuckDBAggregateDestroyFun_Aux where
fromFunPtr = hs_bindgen_72792d9b3626d47e
instance ( ty ~ (BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateDestroyFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBAggregateDestroyFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateDestroyFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateDestroyFun_Aux "unwrap" where
type CFieldType DuckDBAggregateDestroyFun_Aux "unwrap" =
BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ()
offset# = \_ -> \_ -> 0
{-| An optional function to destroy an aggregate state.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_destroy_t@
__defined at:__ @duckdb.h 1492:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateDestroyFun = DuckDBAggregateDestroyFun
{ unwrap :: BG.FunPtr DuckDBAggregateDestroyFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateDestroyFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateDestroyFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateDestroyFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateDestroyFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateDestroyFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateDestroyFun "unwrap" where
type CFieldType DuckDBAggregateDestroyFun "unwrap" =
BG.FunPtr DuckDBAggregateDestroyFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateUpdateFun'
__C declaration:__ @duckdb_aggregate_update_t@
__defined at:__ @duckdb.h 1500:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateUpdateFun_Aux = DuckDBAggregateUpdateFun_Aux
{ unwrap :: DuckDBFunctionInfo -> DuckDBDataChunk -> BG.Ptr DuckDBAggregateState -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateUpdateFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_d4fd9371233e285c_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBAggregateUpdateFun_Aux@
hs_bindgen_d4fd9371233e285c ::
DuckDBAggregateUpdateFun_Aux
-> IO (BG.FunPtr DuckDBAggregateUpdateFun_Aux)
hs_bindgen_d4fd9371233e285c =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_d4fd9371233e285c_base (\x1 ->
\x2 ->
\x3 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3)))
-- __unique:__ @fromDuckDBAggregateUpdateFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_908fd23c59acf55b_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBAggregateUpdateFun_Aux@
hs_bindgen_908fd23c59acf55b ::
BG.FunPtr DuckDBAggregateUpdateFun_Aux
-> DuckDBAggregateUpdateFun_Aux
hs_bindgen_908fd23c59acf55b =
\funPtr0 ->
DuckDBAggregateUpdateFun_Aux (\x1 ->
\x2 ->
\x3 ->
hs_bindgen_908fd23c59acf55b_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
instance BG.ToFunPtr DuckDBAggregateUpdateFun_Aux where
toFunPtr = hs_bindgen_d4fd9371233e285c
instance BG.FromFunPtr DuckDBAggregateUpdateFun_Aux where
fromFunPtr = hs_bindgen_908fd23c59acf55b
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> BG.Ptr DuckDBAggregateState -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateUpdateFun_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateUpdateFun_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> BG.Ptr DuckDBAggregateState -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateUpdateFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateUpdateFun_Aux "unwrap" where
type CFieldType DuckDBAggregateUpdateFun_Aux "unwrap" =
DuckDBFunctionInfo -> DuckDBDataChunk -> BG.Ptr DuckDBAggregateState -> IO ()
offset# = \_ -> \_ -> 0
{-| A function to update a set of aggregate states with new values.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_update_t@
__defined at:__ @duckdb.h 1500:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateUpdateFun = DuckDBAggregateUpdateFun
{ unwrap :: BG.FunPtr DuckDBAggregateUpdateFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateUpdateFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateUpdateFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateUpdateFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateUpdateFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateUpdateFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateUpdateFun "unwrap" where
type CFieldType DuckDBAggregateUpdateFun "unwrap" =
BG.FunPtr DuckDBAggregateUpdateFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateCombineFun'
__C declaration:__ @duckdb_aggregate_combine_t@
__defined at:__ @duckdb.h 1509:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateCombineFun_Aux = DuckDBAggregateCombineFun_Aux
{ unwrap :: DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateCombineFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_1161e149188b237c_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ()))
-- __unique:__ @toDuckDBAggregateCombineFun_Aux@
hs_bindgen_1161e149188b237c ::
DuckDBAggregateCombineFun_Aux
-> IO (BG.FunPtr DuckDBAggregateCombineFun_Aux)
hs_bindgen_1161e149188b237c =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_1161e149188b237c_base (\x1 ->
\x2 ->
\x3 ->
\x4 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3) (BG.fromFFIType x4)))
-- __unique:__ @fromDuckDBAggregateCombineFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_8bb9fd204182e149_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> IO ()
-- __unique:__ @fromDuckDBAggregateCombineFun_Aux@
hs_bindgen_8bb9fd204182e149 ::
BG.FunPtr DuckDBAggregateCombineFun_Aux
-> DuckDBAggregateCombineFun_Aux
hs_bindgen_8bb9fd204182e149 =
\funPtr0 ->
DuckDBAggregateCombineFun_Aux (\x1 ->
\x2 ->
\x3 ->
\x4 ->
hs_bindgen_8bb9fd204182e149_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
instance BG.ToFunPtr DuckDBAggregateCombineFun_Aux where
toFunPtr = hs_bindgen_1161e149188b237c
instance BG.FromFunPtr DuckDBAggregateCombineFun_Aux where
fromFunPtr = hs_bindgen_8bb9fd204182e149
instance ( ty ~ (DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateCombineFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBAggregateCombineFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateCombineFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateCombineFun_Aux "unwrap" where
type CFieldType DuckDBAggregateCombineFun_Aux "unwrap" =
DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> BG.Ptr DuckDBAggregateState -> DuckDBIdx -> IO ()
offset# = \_ -> \_ -> 0
{-| A function to combine aggregate states.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_combine_t@
__defined at:__ @duckdb.h 1509:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateCombineFun = DuckDBAggregateCombineFun
{ unwrap :: BG.FunPtr DuckDBAggregateCombineFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateCombineFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateCombineFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateCombineFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateCombineFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateCombineFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateCombineFun "unwrap" where
type CFieldType DuckDBAggregateCombineFun "unwrap" =
BG.FunPtr DuckDBAggregateCombineFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBAggregateFinalizeFun'
__C declaration:__ @duckdb_aggregate_finalize_t@
__defined at:__ @duckdb.h 1518:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateFinalizeFun_Aux = DuckDBAggregateFinalizeFun_Aux
{ unwrap :: DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> DuckDBVector -> DuckDBIdx -> DuckDBIdx -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBAggregateFinalizeFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_75fe0b8164aa4652_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> HsBindgen.Runtime.LibC.Word64 -> IO ()))
-- __unique:__ @toDuckDBAggregateFinalizeFun_Aux@
hs_bindgen_75fe0b8164aa4652 ::
DuckDBAggregateFinalizeFun_Aux
-> IO (BG.FunPtr DuckDBAggregateFinalizeFun_Aux)
hs_bindgen_75fe0b8164aa4652 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_75fe0b8164aa4652_base (\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3) (BG.fromFFIType x4) (BG.fromFFIType x5)))
-- __unique:__ @fromDuckDBAggregateFinalizeFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_4f85ea442f82149c_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> HsBindgen.Runtime.LibC.Word64 -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> HsBindgen.Runtime.LibC.Word64 -> IO ()
-- __unique:__ @fromDuckDBAggregateFinalizeFun_Aux@
hs_bindgen_4f85ea442f82149c ::
BG.FunPtr DuckDBAggregateFinalizeFun_Aux
-> DuckDBAggregateFinalizeFun_Aux
hs_bindgen_4f85ea442f82149c =
\funPtr0 ->
DuckDBAggregateFinalizeFun_Aux (\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
hs_bindgen_4f85ea442f82149c_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4) (BG.toFFIType x5))
instance BG.ToFunPtr DuckDBAggregateFinalizeFun_Aux where
toFunPtr = hs_bindgen_75fe0b8164aa4652
instance BG.FromFunPtr DuckDBAggregateFinalizeFun_Aux where
fromFunPtr = hs_bindgen_4f85ea442f82149c
instance ( ty ~ (DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> DuckDBVector -> DuckDBIdx -> DuckDBIdx -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateFinalizeFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBAggregateFinalizeFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> DuckDBVector -> DuckDBIdx -> DuckDBIdx -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateFinalizeFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateFinalizeFun_Aux "unwrap" where
type CFieldType DuckDBAggregateFinalizeFun_Aux "unwrap" =
DuckDBFunctionInfo -> BG.Ptr DuckDBAggregateState -> DuckDBVector -> DuckDBIdx -> DuckDBIdx -> IO ()
offset# = \_ -> \_ -> 0
{-| A function to finalize aggregate states into a result vector.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_aggregate_finalize_t@
__defined at:__ @duckdb.h 1518:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBAggregateFinalizeFun = DuckDBAggregateFinalizeFun
{ unwrap :: BG.FunPtr DuckDBAggregateFinalizeFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBAggregateFinalizeFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBAggregateFinalizeFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBAggregateFinalizeFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBAggregateFinalizeFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBAggregateFinalizeFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBAggregateFinalizeFun "unwrap" where
type CFieldType DuckDBAggregateFinalizeFun "unwrap" =
BG.FunPtr DuckDBAggregateFinalizeFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBScalarFunctionBindFun'
__C declaration:__ @duckdb_scalar_function_bind_t@
__defined at:__ @duckdb.h 1528:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionBindFun_Aux = DuckDBScalarFunctionBindFun_Aux
{ unwrap :: DuckDBBindInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBScalarFunctionBindFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_b447efceabd3b194_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBScalarFunctionBindFun_Aux@
hs_bindgen_b447efceabd3b194 ::
DuckDBScalarFunctionBindFun_Aux
-> IO (BG.FunPtr DuckDBScalarFunctionBindFun_Aux)
hs_bindgen_b447efceabd3b194 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_b447efceabd3b194_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBScalarFunctionBindFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_baa1cac10cd218b0_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBScalarFunctionBindFun_Aux@
hs_bindgen_baa1cac10cd218b0 ::
BG.FunPtr DuckDBScalarFunctionBindFun_Aux
-> DuckDBScalarFunctionBindFun_Aux
hs_bindgen_baa1cac10cd218b0 =
\funPtr0 ->
DuckDBScalarFunctionBindFun_Aux (\x1 ->
hs_bindgen_baa1cac10cd218b0_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBScalarFunctionBindFun_Aux where
toFunPtr = hs_bindgen_b447efceabd3b194
instance BG.FromFunPtr DuckDBScalarFunctionBindFun_Aux where
fromFunPtr = hs_bindgen_baa1cac10cd218b0
instance ( ty ~ (DuckDBBindInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionBindFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBScalarFunctionBindFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBBindInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionBindFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionBindFun_Aux "unwrap" where
type CFieldType DuckDBScalarFunctionBindFun_Aux "unwrap" =
DuckDBBindInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The bind function of a scalar function.
history:
* unstable: v1.3.0
* stable: v1.5.6
__C declaration:__ @duckdb_scalar_function_bind_t@
__defined at:__ @duckdb.h 1528:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionBindFun = DuckDBScalarFunctionBindFun
{ unwrap :: BG.FunPtr DuckDBScalarFunctionBindFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionBindFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionBindFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunctionBindFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionBindFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionBindFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionBindFun "unwrap" where
type CFieldType DuckDBScalarFunctionBindFun "unwrap" =
BG.FunPtr DuckDBScalarFunctionBindFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBScalarFunctionInitFun'
__C declaration:__ @duckdb_scalar_function_init_t@
__defined at:__ @duckdb.h 1537:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionInitFun_Aux = DuckDBScalarFunctionInitFun_Aux
{ unwrap :: DuckDBInitInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBScalarFunctionInitFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_a710dd27822696d0_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBScalarFunctionInitFun_Aux@
hs_bindgen_a710dd27822696d0 ::
DuckDBScalarFunctionInitFun_Aux
-> IO (BG.FunPtr DuckDBScalarFunctionInitFun_Aux)
hs_bindgen_a710dd27822696d0 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_a710dd27822696d0_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBScalarFunctionInitFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_71d6ff240a569772_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBScalarFunctionInitFun_Aux@
hs_bindgen_71d6ff240a569772 ::
BG.FunPtr DuckDBScalarFunctionInitFun_Aux
-> DuckDBScalarFunctionInitFun_Aux
hs_bindgen_71d6ff240a569772 =
\funPtr0 ->
DuckDBScalarFunctionInitFun_Aux (\x1 ->
hs_bindgen_71d6ff240a569772_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBScalarFunctionInitFun_Aux where
toFunPtr = hs_bindgen_a710dd27822696d0
instance BG.FromFunPtr DuckDBScalarFunctionInitFun_Aux where
fromFunPtr = hs_bindgen_71d6ff240a569772
instance ( ty ~ (DuckDBInitInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionInitFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBScalarFunctionInitFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBInitInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionInitFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionInitFun_Aux "unwrap" where
type CFieldType DuckDBScalarFunctionInitFun_Aux "unwrap" =
DuckDBInitInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The init function of a scalar function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_scalar_function_init_t@
__defined at:__ @duckdb.h 1537:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionInitFun = DuckDBScalarFunctionInitFun
{ unwrap :: BG.FunPtr DuckDBScalarFunctionInitFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionInitFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionInitFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunctionInitFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionInitFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionInitFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionInitFun "unwrap" where
type CFieldType DuckDBScalarFunctionInitFun "unwrap" =
BG.FunPtr DuckDBScalarFunctionInitFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBScalarFunctionFun'
__C declaration:__ @duckdb_scalar_function_t@
__defined at:__ @duckdb.h 1545:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionFun_Aux = DuckDBScalarFunctionFun_Aux
{ unwrap :: DuckDBFunctionInfo -> DuckDBDataChunk -> DuckDBVector -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBScalarFunctionFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_eda963ff265a4fb9_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBScalarFunctionFun_Aux@
hs_bindgen_eda963ff265a4fb9 ::
DuckDBScalarFunctionFun_Aux
-> IO (BG.FunPtr DuckDBScalarFunctionFun_Aux)
hs_bindgen_eda963ff265a4fb9 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_eda963ff265a4fb9_base (\x1 ->
\x2 ->
\x3 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3)))
-- __unique:__ @fromDuckDBScalarFunctionFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_a054f63c36dae166_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBScalarFunctionFun_Aux@
hs_bindgen_a054f63c36dae166 ::
BG.FunPtr DuckDBScalarFunctionFun_Aux
-> DuckDBScalarFunctionFun_Aux
hs_bindgen_a054f63c36dae166 =
\funPtr0 ->
DuckDBScalarFunctionFun_Aux (\x1 ->
\x2 ->
\x3 ->
hs_bindgen_a054f63c36dae166_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
instance BG.ToFunPtr DuckDBScalarFunctionFun_Aux where
toFunPtr = hs_bindgen_eda963ff265a4fb9
instance BG.FromFunPtr DuckDBScalarFunctionFun_Aux where
fromFunPtr = hs_bindgen_a054f63c36dae166
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> DuckDBVector -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionFun_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunctionFun_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBDataChunk -> DuckDBVector -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionFun_Aux "unwrap" where
type CFieldType DuckDBScalarFunctionFun_Aux "unwrap" =
DuckDBFunctionInfo -> DuckDBDataChunk -> DuckDBVector -> IO ()
offset# = \_ -> \_ -> 0
{-| The main function of a scalar function.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_scalar_function_t@
__defined at:__ @duckdb.h 1545:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBScalarFunctionFun = DuckDBScalarFunctionFun
{ unwrap :: BG.FunPtr DuckDBScalarFunctionFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBScalarFunctionFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBScalarFunctionFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBScalarFunctionFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBScalarFunctionFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBScalarFunctionFun "unwrap" where
type CFieldType DuckDBScalarFunctionFun "unwrap" =
BG.FunPtr DuckDBScalarFunctionFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCastFunctionFun'
__C declaration:__ @duckdb_cast_function_t@
__defined at:__ @duckdb.h 1553:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCastFunctionFun_Aux = DuckDBCastFunctionFun_Aux
{ unwrap :: DuckDBFunctionInfo -> DuckDBIdx -> DuckDBVector -> DuckDBVector -> IO BG.CBool
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCastFunctionFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_9cc1e81196c8aecb_base ::
(BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool)
-> IO (BG.FunPtr (BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool))
-- __unique:__ @toDuckDBCastFunctionFun_Aux@
hs_bindgen_9cc1e81196c8aecb ::
DuckDBCastFunctionFun_Aux
-> IO (BG.FunPtr DuckDBCastFunctionFun_Aux)
hs_bindgen_9cc1e81196c8aecb =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_9cc1e81196c8aecb_base (\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.toFFIType (BG.getField @"unwrap" fun0 (BG.fromFFIType x1) (BG.fromFFIType x2) (BG.fromFFIType x3) (BG.fromFFIType x4))))
-- __unique:__ @fromDuckDBCastFunctionFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_e59e3217c0179ffd_base ::
BG.FunPtr (BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool)
-> BG.Ptr BG.Void -> HsBindgen.Runtime.LibC.Word64 -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool
-- __unique:__ @fromDuckDBCastFunctionFun_Aux@
hs_bindgen_e59e3217c0179ffd ::
BG.FunPtr DuckDBCastFunctionFun_Aux
-> DuckDBCastFunctionFun_Aux
hs_bindgen_e59e3217c0179ffd =
\funPtr0 ->
DuckDBCastFunctionFun_Aux (\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_e59e3217c0179ffd_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4)))
instance BG.ToFunPtr DuckDBCastFunctionFun_Aux where
toFunPtr = hs_bindgen_9cc1e81196c8aecb
instance BG.FromFunPtr DuckDBCastFunctionFun_Aux where
fromFunPtr = hs_bindgen_e59e3217c0179ffd
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBIdx -> DuckDBVector -> DuckDBVector -> IO BG.CBool)
) => BG.CompatHasField.HasField "unwrap" DuckDBCastFunctionFun_Aux ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCastFunctionFun_Aux {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ (DuckDBFunctionInfo -> DuckDBIdx -> DuckDBVector -> DuckDBVector -> IO BG.CBool)
) => BG.HasField "unwrap" (BG.Ptr DuckDBCastFunctionFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCastFunctionFun_Aux "unwrap" where
type CFieldType DuckDBCastFunctionFun_Aux "unwrap" =
DuckDBFunctionInfo -> DuckDBIdx -> DuckDBVector -> DuckDBVector -> IO BG.CBool
offset# = \_ -> \_ -> 0
{-| The function to cast from an input vector to an output vector.
history:
* stable: v1.1.0
__C declaration:__ @duckdb_cast_function_t@
__defined at:__ @duckdb.h 1553:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCastFunctionFun = DuckDBCastFunctionFun
{ unwrap :: BG.FunPtr DuckDBCastFunctionFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCastFunctionFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCastFunctionFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCastFunctionFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBCastFunctionFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCastFunctionFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCastFunctionFun "unwrap" where
type CFieldType DuckDBCastFunctionFun "unwrap" =
BG.FunPtr DuckDBCastFunctionFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCopyFunctionBindFun'
__C declaration:__ @duckdb_copy_function_bind_t@
__defined at:__ @duckdb.h 1563:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionBindFun_Aux = DuckDBCopyFunctionBindFun_Aux
{ unwrap :: DuckDBCopyFunctionBindInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCopyFunctionBindFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_3b4ab83fb44c89b2_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBCopyFunctionBindFun_Aux@
hs_bindgen_3b4ab83fb44c89b2 ::
DuckDBCopyFunctionBindFun_Aux
-> IO (BG.FunPtr DuckDBCopyFunctionBindFun_Aux)
hs_bindgen_3b4ab83fb44c89b2 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_3b4ab83fb44c89b2_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBCopyFunctionBindFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_22dfbb4393b5f8b4_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBCopyFunctionBindFun_Aux@
hs_bindgen_22dfbb4393b5f8b4 ::
BG.FunPtr DuckDBCopyFunctionBindFun_Aux
-> DuckDBCopyFunctionBindFun_Aux
hs_bindgen_22dfbb4393b5f8b4 =
\funPtr0 ->
DuckDBCopyFunctionBindFun_Aux (\x1 ->
hs_bindgen_22dfbb4393b5f8b4_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBCopyFunctionBindFun_Aux where
toFunPtr = hs_bindgen_3b4ab83fb44c89b2
instance BG.FromFunPtr DuckDBCopyFunctionBindFun_Aux where
fromFunPtr = hs_bindgen_22dfbb4393b5f8b4
instance ( ty ~ (DuckDBCopyFunctionBindInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionBindFun_Aux ty where
hasField =
\x0 ->
( \y1 -> DuckDBCopyFunctionBindFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBCopyFunctionBindInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionBindFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionBindFun_Aux "unwrap" where
type CFieldType DuckDBCopyFunctionBindFun_Aux "unwrap" =
DuckDBCopyFunctionBindInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The bind function of a copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_bind_t@
__defined at:__ @duckdb.h 1563:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionBindFun = DuckDBCopyFunctionBindFun
{ unwrap :: BG.FunPtr DuckDBCopyFunctionBindFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionBindFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionBindFun ty where
hasField =
\x0 ->
(\y1 ->
DuckDBCopyFunctionBindFun {unwrap = y1}, BG.getField @"unwrap" x0)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionBindFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionBindFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionBindFun "unwrap" where
type CFieldType DuckDBCopyFunctionBindFun "unwrap" =
BG.FunPtr DuckDBCopyFunctionBindFun_Aux
offset# = \_ -> \_ -> 0
{-| Auxiliary type used by t'DuckDBCopyFunctionGlobalInitFun'
__C declaration:__ @duckdb_copy_function_global_init_t@
__defined at:__ @duckdb.h 1572:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionGlobalInitFun_Aux = DuckDBCopyFunctionGlobalInitFun_Aux
{ unwrap :: DuckDBCopyFunctionGlobalInitInfo -> IO ()
}
deriving stock (BG.Generic)
-- __unique:__ @toDuckDBCopyFunctionGlobalInitFun_Aux@
foreign import ccall safe "wrapper" hs_bindgen_abbe705cb454d925_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @toDuckDBCopyFunctionGlobalInitFun_Aux@
hs_bindgen_abbe705cb454d925 ::
DuckDBCopyFunctionGlobalInitFun_Aux
-> IO (BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux)
hs_bindgen_abbe705cb454d925 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_abbe705cb454d925_base (\x1 ->
BG.getField @"unwrap" fun0 (BG.fromFFIType x1)))
-- __unique:__ @fromDuckDBCopyFunctionGlobalInitFun_Aux@
foreign import ccall safe "dynamic" hs_bindgen_4e8879a33da29a88_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @fromDuckDBCopyFunctionGlobalInitFun_Aux@
hs_bindgen_4e8879a33da29a88 ::
BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux
-> DuckDBCopyFunctionGlobalInitFun_Aux
hs_bindgen_4e8879a33da29a88 =
\funPtr0 ->
DuckDBCopyFunctionGlobalInitFun_Aux (\x1 ->
hs_bindgen_4e8879a33da29a88_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr DuckDBCopyFunctionGlobalInitFun_Aux where
toFunPtr = hs_bindgen_abbe705cb454d925
instance BG.FromFunPtr DuckDBCopyFunctionGlobalInitFun_Aux where
fromFunPtr = hs_bindgen_4e8879a33da29a88
instance ( ty ~ (DuckDBCopyFunctionGlobalInitInfo -> IO ())
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionGlobalInitFun_Aux ty where
hasField =
\x0 ->
( \y1 ->
DuckDBCopyFunctionGlobalInitFun_Aux {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ (DuckDBCopyFunctionGlobalInitInfo -> IO ())
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionGlobalInitFun_Aux) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionGlobalInitFun_Aux "unwrap" where
type CFieldType DuckDBCopyFunctionGlobalInitFun_Aux "unwrap" =
DuckDBCopyFunctionGlobalInitInfo -> IO ()
offset# = \_ -> \_ -> 0
{-| The global initialization function of a copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
__C declaration:__ @duckdb_copy_function_global_init_t@
__defined at:__ @duckdb.h 1572:16@
__exported by:__ @duckdb.h@
-}
newtype DuckDBCopyFunctionGlobalInitFun = DuckDBCopyFunctionGlobalInitFun
{ unwrap :: BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux
}
deriving stock (Eq, BG.Generic, Ord, Show)
deriving newtype
( BG.HasFFIType
, Marshal.ReadRaw
, Marshal.StaticSize
, BG.Storable
, Marshal.WriteRaw
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux
) => BG.CompatHasField.HasField "unwrap" DuckDBCopyFunctionGlobalInitFun ty where
hasField =
\x0 ->
( \y1 ->
DuckDBCopyFunctionGlobalInitFun {unwrap = y1}
, BG.getField @"unwrap" x0
)
instance ( ty ~ BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux
) => BG.HasField "unwrap" (BG.Ptr DuckDBCopyFunctionGlobalInitFun) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"unwrap")
instance HasCField.HasCField DuckDBCopyFunctionGlobalInitFun "unwrap" where
type CFieldType DuckDBCopyFunctionGlobalInitFun "unwrap" =
BG.FunPtr DuckDBCopyFunctionGlobalInitFun_Aux
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @struct duckdb_extension_access@
__defined at:__ @duckdb.h 10379:8@
__exported by:__ @duckdb.h@
-}
data DuckDBExtensionAccess = DuckDBExtensionAccess
{ set_error :: BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
{- ^ __C declaration:__ @set_error@
__defined at:__ @duckdb.h 10381:9@
__exported by:__ @duckdb.h@
-}
, get_database :: BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
{- ^ __C declaration:__ @get_database@
__defined at:__ @duckdb.h 10383:21@
__exported by:__ @duckdb.h@
-}
, get_api :: BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
{- ^ __C declaration:__ @get_api@
__defined at:__ @duckdb.h 10385:16@
__exported by:__ @duckdb.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize DuckDBExtensionAccess where
staticSizeOf = \_ -> (24 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw DuckDBExtensionAccess where
readRaw =
\ptr0 ->
pure DuckDBExtensionAccess
<*> HasCField.readRaw (BG.Proxy @"set_error") ptr0
<*> HasCField.readRaw (BG.Proxy @"get_database") ptr0
<*> HasCField.readRaw (BG.Proxy @"get_api") ptr0
instance Marshal.WriteRaw DuckDBExtensionAccess where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
DuckDBExtensionAccess set_error2 get_database3 get_api4 ->
HasCField.writeRaw (BG.Proxy @"set_error") ptr0 set_error2
>> HasCField.writeRaw (BG.Proxy @"get_database") ptr0 get_database3
>> HasCField.writeRaw (BG.Proxy @"get_api") ptr0 get_api4
deriving via Marshal.EquivStorable DuckDBExtensionAccess instance BG.Storable DuckDBExtensionAccess
deriving via Struct.IsStructViaReadRaw DuckDBExtensionAccess instance Struct.IsStruct DuckDBExtensionAccess
{-| __C declaration:__ @set_error@
__defined at:__ @duckdb.h 10381:9@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
) => BG.CompatHasField.HasField "set_error" DuckDBExtensionAccess ty where
hasField =
\x0 ->
( \y1 ->
DuckDBExtensionAccess { set_error = y1
, get_database = BG.getField @"get_database" x0
, get_api = BG.getField @"get_api" x0
}
, BG.getField @"set_error" x0
)
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
) => BG.HasField "set_error" (BG.Ptr DuckDBExtensionAccess) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"set_error")
instance HasCField.HasCField DuckDBExtensionAccess "set_error" where
type CFieldType DuckDBExtensionAccess "set_error" =
BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @get_database@
__defined at:__ @duckdb.h 10383:21@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
) => BG.CompatHasField.HasField "get_database" DuckDBExtensionAccess ty where
hasField =
\x0 ->
( \y1 ->
DuckDBExtensionAccess { get_database = y1
, set_error = BG.getField @"set_error" x0
, get_api = BG.getField @"get_api" x0
}
, BG.getField @"get_database" x0
)
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
) => BG.HasField "get_database" (BG.Ptr DuckDBExtensionAccess) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"get_database")
instance HasCField.HasCField DuckDBExtensionAccess "get_database" where
type CFieldType DuckDBExtensionAccess "get_database" =
BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @get_api@
__defined at:__ @duckdb.h 10385:16@
__exported by:__ @duckdb.h@
-}
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
) => BG.CompatHasField.HasField "get_api" DuckDBExtensionAccess ty where
hasField =
\x0 ->
( \y1 ->
DuckDBExtensionAccess { get_api = y1
, set_error = BG.getField @"set_error" x0
, get_database = BG.getField @"get_database" x0
}
, BG.getField @"get_api" x0
)
instance ( ty ~ BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
) => BG.HasField "get_api" (BG.Ptr DuckDBExtensionAccess) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"get_api")
instance HasCField.HasCField DuckDBExtensionAccess "get_api" where
type CFieldType DuckDBExtensionAccess "get_api" =
BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @struct ArrowSchema@
__defined at:__ @duckdb_arrow.h 10:8@
__exported by:__ @duckdb_arrow.h@
-}
data ArrowSchema = ArrowSchema
{ format :: PtrConst.PtrConst BG.CChar
{- ^ __C declaration:__ @format@
__defined at:__ @duckdb_arrow.h 11:15@
__exported by:__ @duckdb_arrow.h@
-}
, name :: PtrConst.PtrConst BG.CChar
{- ^ __C declaration:__ @name@
__defined at:__ @duckdb_arrow.h 12:15@
__exported by:__ @duckdb_arrow.h@
-}
, metadata :: PtrConst.PtrConst BG.CChar
{- ^ __C declaration:__ @metadata@
__defined at:__ @duckdb_arrow.h 13:15@
__exported by:__ @duckdb_arrow.h@
-}
, flags :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @flags@
__defined at:__ @duckdb_arrow.h 14:11@
__exported by:__ @duckdb_arrow.h@
-}
, n_children :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @n_children@
__defined at:__ @duckdb_arrow.h 15:11@
__exported by:__ @duckdb_arrow.h@
-}
, children :: BG.Ptr (BG.Ptr ArrowSchema)
{- ^ __C declaration:__ @children@
__defined at:__ @duckdb_arrow.h 16:24@
__exported by:__ @duckdb_arrow.h@
-}
, dictionary :: BG.Ptr ArrowSchema
{- ^ __C declaration:__ @dictionary@
__defined at:__ @duckdb_arrow.h 17:23@
__exported by:__ @duckdb_arrow.h@
-}
, release :: BG.FunPtr (BG.Ptr ArrowSchema -> IO ())
{- ^ __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 18:10@
__exported by:__ @duckdb_arrow.h@
-}
, private_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 19:9@
__exported by:__ @duckdb_arrow.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize ArrowSchema where
staticSizeOf = \_ -> (72 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw ArrowSchema where
readRaw =
\ptr0 ->
pure ArrowSchema
<*> HasCField.readRaw (BG.Proxy @"format") ptr0
<*> HasCField.readRaw (BG.Proxy @"name") ptr0
<*> HasCField.readRaw (BG.Proxy @"metadata") ptr0
<*> HasCField.readRaw (BG.Proxy @"flags") ptr0
<*> HasCField.readRaw (BG.Proxy @"n_children") ptr0
<*> HasCField.readRaw (BG.Proxy @"children") ptr0
<*> HasCField.readRaw (BG.Proxy @"dictionary") ptr0
<*> HasCField.readRaw (BG.Proxy @"release") ptr0
<*> HasCField.readRaw (BG.Proxy @"private_data") ptr0
instance Marshal.WriteRaw ArrowSchema where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
ArrowSchema
format2
name3
metadata4
flags5
n_children6
children7
dictionary8
release9
private_data10 ->
HasCField.writeRaw (BG.Proxy @"format") ptr0 format2
>> HasCField.writeRaw (BG.Proxy @"name") ptr0 name3
>> HasCField.writeRaw (BG.Proxy @"metadata") ptr0 metadata4
>> HasCField.writeRaw (BG.Proxy @"flags") ptr0 flags5
>> HasCField.writeRaw (BG.Proxy @"n_children") ptr0 n_children6
>> HasCField.writeRaw (BG.Proxy @"children") ptr0 children7
>> HasCField.writeRaw (BG.Proxy @"dictionary") ptr0 dictionary8
>> HasCField.writeRaw (BG.Proxy @"release") ptr0 release9
>> HasCField.writeRaw (BG.Proxy @"private_data") ptr0 private_data10
deriving via Marshal.EquivStorable ArrowSchema instance BG.Storable ArrowSchema
deriving via Struct.IsStructViaReadRaw ArrowSchema instance Struct.IsStruct ArrowSchema
{-| __C declaration:__ @format@
__defined at:__ @duckdb_arrow.h 11:15@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.CompatHasField.HasField "format" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { format = y1
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"format" x0
)
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.HasField "format" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"format")
instance HasCField.HasCField ArrowSchema "format" where
type CFieldType ArrowSchema "format" =
PtrConst.PtrConst BG.CChar
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @name@
__defined at:__ @duckdb_arrow.h 12:15@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.CompatHasField.HasField "name" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { name = y1
, format = BG.getField @"format" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"name" x0
)
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.HasField "name" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"name")
instance HasCField.HasCField ArrowSchema "name" where
type CFieldType ArrowSchema "name" =
PtrConst.PtrConst BG.CChar
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @metadata@
__defined at:__ @duckdb_arrow.h 13:15@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.CompatHasField.HasField "metadata" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { metadata = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"metadata" x0
)
instance ( ty ~ PtrConst.PtrConst BG.CChar
) => BG.HasField "metadata" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"metadata")
instance HasCField.HasCField ArrowSchema "metadata" where
type CFieldType ArrowSchema "metadata" =
PtrConst.PtrConst BG.CChar
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @flags@
__defined at:__ @duckdb_arrow.h 14:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "flags" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { flags = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"flags" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "flags" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"flags")
instance HasCField.HasCField ArrowSchema "flags" where
type CFieldType ArrowSchema "flags" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 24
{-| __C declaration:__ @n_children@
__defined at:__ @duckdb_arrow.h 15:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "n_children" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { n_children = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"n_children" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "n_children" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"n_children")
instance HasCField.HasCField ArrowSchema "n_children" where
type CFieldType ArrowSchema "n_children" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 32
{-| __C declaration:__ @children@
__defined at:__ @duckdb_arrow.h 16:24@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr (BG.Ptr ArrowSchema)
) => BG.CompatHasField.HasField "children" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { children = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"children" x0
)
instance ( ty ~ BG.Ptr (BG.Ptr ArrowSchema)
) => BG.HasField "children" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"children")
instance HasCField.HasCField ArrowSchema "children" where
type CFieldType ArrowSchema "children" =
BG.Ptr (BG.Ptr ArrowSchema)
offset# = \_ -> \_ -> 40
{-| __C declaration:__ @dictionary@
__defined at:__ @duckdb_arrow.h 17:23@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr ArrowSchema
) => BG.CompatHasField.HasField "dictionary" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { dictionary = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"dictionary" x0
)
instance ( ty ~ BG.Ptr ArrowSchema
) => BG.HasField "dictionary" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"dictionary")
instance HasCField.HasCField ArrowSchema "dictionary" where
type CFieldType ArrowSchema "dictionary" =
BG.Ptr ArrowSchema
offset# = \_ -> \_ -> 48
{-| __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 18:10@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowSchema -> IO ())
) => BG.CompatHasField.HasField "release" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { release = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"release" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowSchema -> IO ())
) => BG.HasField "release" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"release")
instance HasCField.HasCField ArrowSchema "release" where
type CFieldType ArrowSchema "release" =
BG.FunPtr (BG.Ptr ArrowSchema -> IO ())
offset# = \_ -> \_ -> 56
{-| __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 19:9@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "private_data" ArrowSchema ty where
hasField =
\x0 ->
( \y1 ->
ArrowSchema { private_data = y1
, format = BG.getField @"format" x0
, name = BG.getField @"name" x0
, metadata = BG.getField @"metadata" x0
, flags = BG.getField @"flags" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
}
, BG.getField @"private_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "private_data" (BG.Ptr ArrowSchema) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"private_data")
instance HasCField.HasCField ArrowSchema "private_data" where
type CFieldType ArrowSchema "private_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 64
{-| __C declaration:__ @struct ArrowArray@
__defined at:__ @duckdb_arrow.h 22:8@
__exported by:__ @duckdb_arrow.h@
-}
data ArrowArray = ArrowArray
{ length :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @length@
__defined at:__ @duckdb_arrow.h 23:11@
__exported by:__ @duckdb_arrow.h@
-}
, null_count :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @null_count@
__defined at:__ @duckdb_arrow.h 24:11@
__exported by:__ @duckdb_arrow.h@
-}
, offset :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @offset@
__defined at:__ @duckdb_arrow.h 25:11@
__exported by:__ @duckdb_arrow.h@
-}
, n_buffers :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @n_buffers@
__defined at:__ @duckdb_arrow.h 26:11@
__exported by:__ @duckdb_arrow.h@
-}
, n_children :: HsBindgen.Runtime.LibC.Int64
{- ^ __C declaration:__ @n_children@
__defined at:__ @duckdb_arrow.h 27:11@
__exported by:__ @duckdb_arrow.h@
-}
, buffers :: BG.Ptr (PtrConst.PtrConst BG.Void)
{- ^ __C declaration:__ @buffers@
__defined at:__ @duckdb_arrow.h 28:16@
__exported by:__ @duckdb_arrow.h@
-}
, children :: BG.Ptr (BG.Ptr ArrowArray)
{- ^ __C declaration:__ @children@
__defined at:__ @duckdb_arrow.h 29:23@
__exported by:__ @duckdb_arrow.h@
-}
, dictionary :: BG.Ptr ArrowArray
{- ^ __C declaration:__ @dictionary@
__defined at:__ @duckdb_arrow.h 30:22@
__exported by:__ @duckdb_arrow.h@
-}
, release :: BG.FunPtr (BG.Ptr ArrowArray -> IO ())
{- ^ __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 31:10@
__exported by:__ @duckdb_arrow.h@
-}
, private_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 32:9@
__exported by:__ @duckdb_arrow.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize ArrowArray where
staticSizeOf = \_ -> (80 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw ArrowArray where
readRaw =
\ptr0 ->
pure ArrowArray
<*> HasCField.readRaw (BG.Proxy @"length") ptr0
<*> HasCField.readRaw (BG.Proxy @"null_count") ptr0
<*> HasCField.readRaw (BG.Proxy @"offset") ptr0
<*> HasCField.readRaw (BG.Proxy @"n_buffers") ptr0
<*> HasCField.readRaw (BG.Proxy @"n_children") ptr0
<*> HasCField.readRaw (BG.Proxy @"buffers") ptr0
<*> HasCField.readRaw (BG.Proxy @"children") ptr0
<*> HasCField.readRaw (BG.Proxy @"dictionary") ptr0
<*> HasCField.readRaw (BG.Proxy @"release") ptr0
<*> HasCField.readRaw (BG.Proxy @"private_data") ptr0
instance Marshal.WriteRaw ArrowArray where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
ArrowArray
length2
null_count3
offset4
n_buffers5
n_children6
buffers7
children8
dictionary9
release10
private_data11 ->
HasCField.writeRaw (BG.Proxy @"length") ptr0 length2
>> HasCField.writeRaw (BG.Proxy @"null_count") ptr0 null_count3
>> HasCField.writeRaw (BG.Proxy @"offset") ptr0 offset4
>> HasCField.writeRaw (BG.Proxy @"n_buffers") ptr0 n_buffers5
>> HasCField.writeRaw (BG.Proxy @"n_children") ptr0 n_children6
>> HasCField.writeRaw (BG.Proxy @"buffers") ptr0 buffers7
>> HasCField.writeRaw (BG.Proxy @"children") ptr0 children8
>> HasCField.writeRaw (BG.Proxy @"dictionary") ptr0 dictionary9
>> HasCField.writeRaw (BG.Proxy @"release") ptr0 release10
>> HasCField.writeRaw (BG.Proxy @"private_data") ptr0 private_data11
deriving via Marshal.EquivStorable ArrowArray instance BG.Storable ArrowArray
deriving via Struct.IsStructViaReadRaw ArrowArray instance Struct.IsStruct ArrowArray
{-| __C declaration:__ @length@
__defined at:__ @duckdb_arrow.h 23:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "length" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { length = y1
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"length" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "length" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"length")
instance HasCField.HasCField ArrowArray "length" where
type CFieldType ArrowArray "length" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @null_count@
__defined at:__ @duckdb_arrow.h 24:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "null_count" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { null_count = y1
, length = BG.getField @"length" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"null_count" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "null_count" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"null_count")
instance HasCField.HasCField ArrowArray "null_count" where
type CFieldType ArrowArray "null_count" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @offset@
__defined at:__ @duckdb_arrow.h 25:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "offset" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { offset = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"offset" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "offset" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"offset")
instance HasCField.HasCField ArrowArray "offset" where
type CFieldType ArrowArray "offset" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @n_buffers@
__defined at:__ @duckdb_arrow.h 26:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "n_buffers" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { n_buffers = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"n_buffers" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "n_buffers" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"n_buffers")
instance HasCField.HasCField ArrowArray "n_buffers" where
type CFieldType ArrowArray "n_buffers" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 24
{-| __C declaration:__ @n_children@
__defined at:__ @duckdb_arrow.h 27:11@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.CompatHasField.HasField "n_children" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { n_children = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"n_children" x0
)
instance ( ty ~ HsBindgen.Runtime.LibC.Int64
) => BG.HasField "n_children" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"n_children")
instance HasCField.HasCField ArrowArray "n_children" where
type CFieldType ArrowArray "n_children" =
HsBindgen.Runtime.LibC.Int64
offset# = \_ -> \_ -> 32
{-| __C declaration:__ @buffers@
__defined at:__ @duckdb_arrow.h 28:16@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr (PtrConst.PtrConst BG.Void)
) => BG.CompatHasField.HasField "buffers" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { buffers = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"buffers" x0
)
instance ( ty ~ BG.Ptr (PtrConst.PtrConst BG.Void)
) => BG.HasField "buffers" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"buffers")
instance HasCField.HasCField ArrowArray "buffers" where
type CFieldType ArrowArray "buffers" =
BG.Ptr (PtrConst.PtrConst BG.Void)
offset# = \_ -> \_ -> 40
{-| __C declaration:__ @children@
__defined at:__ @duckdb_arrow.h 29:23@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr (BG.Ptr ArrowArray)
) => BG.CompatHasField.HasField "children" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { children = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"children" x0
)
instance ( ty ~ BG.Ptr (BG.Ptr ArrowArray)
) => BG.HasField "children" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"children")
instance HasCField.HasCField ArrowArray "children" where
type CFieldType ArrowArray "children" =
BG.Ptr (BG.Ptr ArrowArray)
offset# = \_ -> \_ -> 48
{-| __C declaration:__ @dictionary@
__defined at:__ @duckdb_arrow.h 30:22@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr ArrowArray
) => BG.CompatHasField.HasField "dictionary" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { dictionary = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"dictionary" x0
)
instance ( ty ~ BG.Ptr ArrowArray
) => BG.HasField "dictionary" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"dictionary")
instance HasCField.HasCField ArrowArray "dictionary" where
type CFieldType ArrowArray "dictionary" =
BG.Ptr ArrowArray
offset# = \_ -> \_ -> 56
{-| __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 31:10@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArray -> IO ())
) => BG.CompatHasField.HasField "release" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { release = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"release" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArray -> IO ())
) => BG.HasField "release" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"release")
instance HasCField.HasCField ArrowArray "release" where
type CFieldType ArrowArray "release" =
BG.FunPtr (BG.Ptr ArrowArray -> IO ())
offset# = \_ -> \_ -> 64
{-| __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 32:9@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "private_data" ArrowArray ty where
hasField =
\x0 ->
( \y1 ->
ArrowArray { private_data = y1
, length = BG.getField @"length" x0
, null_count = BG.getField @"null_count" x0
, offset = BG.getField @"offset" x0
, n_buffers = BG.getField @"n_buffers" x0
, n_children = BG.getField @"n_children" x0
, buffers = BG.getField @"buffers" x0
, children = BG.getField @"children" x0
, dictionary = BG.getField @"dictionary" x0
, release = BG.getField @"release" x0
}
, BG.getField @"private_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "private_data" (BG.Ptr ArrowArray) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"private_data")
instance HasCField.HasCField ArrowArray "private_data" where
type CFieldType ArrowArray "private_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 72
{-| __C declaration:__ @struct ArrowArrayStream@
__defined at:__ @duckdb_arrow.h 39:8@
__exported by:__ @duckdb_arrow.h@
-}
data ArrowArrayStream = ArrowArrayStream
{ get_schema :: BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
{- ^ __C declaration:__ @get_schema@
__defined at:__ @duckdb_arrow.h 40:9@
__exported by:__ @duckdb_arrow.h@
-}
, get_next :: BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
{- ^ __C declaration:__ @get_next@
__defined at:__ @duckdb_arrow.h 41:9@
__exported by:__ @duckdb_arrow.h@
-}
, get_last_error :: BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
{- ^ __C declaration:__ @get_last_error@
__defined at:__ @duckdb_arrow.h 42:17@
__exported by:__ @duckdb_arrow.h@
-}
, release :: BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ())
{- ^ __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 43:10@
__exported by:__ @duckdb_arrow.h@
-}
, private_data :: BG.Ptr BG.Void
{- ^ __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 44:9@
__exported by:__ @duckdb_arrow.h@
-}
}
deriving stock (Eq, BG.Generic, Show)
instance Marshal.StaticSize ArrowArrayStream where
staticSizeOf = \_ -> (40 :: Int)
staticAlignment = \_ -> (8 :: Int)
instance Marshal.ReadRaw ArrowArrayStream where
readRaw =
\ptr0 ->
pure ArrowArrayStream
<*> HasCField.readRaw (BG.Proxy @"get_schema") ptr0
<*> HasCField.readRaw (BG.Proxy @"get_next") ptr0
<*> HasCField.readRaw (BG.Proxy @"get_last_error") ptr0
<*> HasCField.readRaw (BG.Proxy @"release") ptr0
<*> HasCField.readRaw (BG.Proxy @"private_data") ptr0
instance Marshal.WriteRaw ArrowArrayStream where
writeRaw =
\ptr0 ->
\s1 ->
case s1 of
ArrowArrayStream get_schema2 get_next3 get_last_error4 release5 private_data6 ->
HasCField.writeRaw (BG.Proxy @"get_schema") ptr0 get_schema2
>> HasCField.writeRaw (BG.Proxy @"get_next") ptr0 get_next3
>> HasCField.writeRaw (BG.Proxy @"get_last_error") ptr0 get_last_error4
>> HasCField.writeRaw (BG.Proxy @"release") ptr0 release5
>> HasCField.writeRaw (BG.Proxy @"private_data") ptr0 private_data6
deriving via Marshal.EquivStorable ArrowArrayStream instance BG.Storable ArrowArrayStream
deriving via Struct.IsStructViaReadRaw ArrowArrayStream instance Struct.IsStruct ArrowArrayStream
{-| __C declaration:__ @get_schema@
__defined at:__ @duckdb_arrow.h 40:9@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
) => BG.CompatHasField.HasField "get_schema" ArrowArrayStream ty where
hasField =
\x0 ->
( \y1 ->
ArrowArrayStream { get_schema = y1
, get_next = BG.getField @"get_next" x0
, get_last_error = BG.getField @"get_last_error" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"get_schema" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
) => BG.HasField "get_schema" (BG.Ptr ArrowArrayStream) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"get_schema")
instance HasCField.HasCField ArrowArrayStream "get_schema" where
type CFieldType ArrowArrayStream "get_schema" =
BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
offset# = \_ -> \_ -> 0
{-| __C declaration:__ @get_next@
__defined at:__ @duckdb_arrow.h 41:9@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
) => BG.CompatHasField.HasField "get_next" ArrowArrayStream ty where
hasField =
\x0 ->
( \y1 ->
ArrowArrayStream { get_next = y1
, get_schema = BG.getField @"get_schema" x0
, get_last_error = BG.getField @"get_last_error" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"get_next" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
) => BG.HasField "get_next" (BG.Ptr ArrowArrayStream) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"get_next")
instance HasCField.HasCField ArrowArrayStream "get_next" where
type CFieldType ArrowArrayStream "get_next" =
BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
offset# = \_ -> \_ -> 8
{-| __C declaration:__ @get_last_error@
__defined at:__ @duckdb_arrow.h 42:17@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
) => BG.CompatHasField.HasField "get_last_error" ArrowArrayStream ty where
hasField =
\x0 ->
( \y1 ->
ArrowArrayStream { get_last_error = y1
, get_schema = BG.getField @"get_schema" x0
, get_next = BG.getField @"get_next" x0
, release = BG.getField @"release" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"get_last_error" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
) => BG.HasField "get_last_error" (BG.Ptr ArrowArrayStream) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"get_last_error")
instance HasCField.HasCField ArrowArrayStream "get_last_error" where
type CFieldType ArrowArrayStream "get_last_error" =
BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
offset# = \_ -> \_ -> 16
{-| __C declaration:__ @release@
__defined at:__ @duckdb_arrow.h 43:10@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ())
) => BG.CompatHasField.HasField "release" ArrowArrayStream ty where
hasField =
\x0 ->
( \y1 ->
ArrowArrayStream { release = y1
, get_schema = BG.getField @"get_schema" x0
, get_next = BG.getField @"get_next" x0
, get_last_error = BG.getField @"get_last_error" x0
, private_data = BG.getField @"private_data" x0
}
, BG.getField @"release" x0
)
instance ( ty ~ BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ())
) => BG.HasField "release" (BG.Ptr ArrowArrayStream) (BG.Ptr ty) where
getField = HasCField.fromPtr (BG.Proxy @"release")
instance HasCField.HasCField ArrowArrayStream "release" where
type CFieldType ArrowArrayStream "release" =
BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ())
offset# = \_ -> \_ -> 24
{-| __C declaration:__ @private_data@
__defined at:__ @duckdb_arrow.h 44:9@
__exported by:__ @duckdb_arrow.h@
-}
instance ( ty ~ BG.Ptr BG.Void
) => BG.CompatHasField.HasField "private_data" ArrowArrayStream ty where
hasField =
\x0 ->
( \y1 ->
ArrowArrayStream { private_data = y1
, get_schema = BG.getField @"get_schema" x0
, get_next = BG.getField @"get_next" x0
, get_last_error = BG.getField @"get_last_error" x0
, release = BG.getField @"release" x0
}
, BG.getField @"private_data" x0
)
instance ( ty ~ BG.Ptr BG.Void
) => BG.HasField "private_data" (BG.Ptr ArrowArrayStream) (BG.Ptr ty) where
getField =
HasCField.fromPtr (BG.Proxy @"private_data")
instance HasCField.HasCField ArrowArrayStream "private_data" where
type CFieldType ArrowArrayStream "private_data" =
BG.Ptr BG.Void
offset# = \_ -> \_ -> 32
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))@
foreign import ccall safe "wrapper" hs_bindgen_48c5f906dd22ccd7_base ::
(BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)))
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))@
hs_bindgen_48c5f906dd22ccd7 ::
(DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
-> IO (BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase)))
hs_bindgen_48c5f906dd22ccd7 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_48c5f906dd22ccd7_base (\x1 ->
fmap BG.toFFIType (fun0 (BG.fromFFIType x1))))
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))@
foreign import ccall safe "dynamic" hs_bindgen_370a996b813960f9_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))@
hs_bindgen_370a996b813960f9 ::
BG.FunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase))
-> DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase)
hs_bindgen_370a996b813960f9 =
\funPtr0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_370a996b813960f9_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase)) where
toFunPtr = hs_bindgen_48c5f906dd22ccd7
instance BG.FromFunPtr (DuckDBExtensionInfo -> IO (BG.Ptr DuckDBDatabase)) where
fromFunPtr = hs_bindgen_370a996b813960f9
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))@
foreign import ccall safe "wrapper" hs_bindgen_92ad7a7b5f490754_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)))
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))@
hs_bindgen_92ad7a7b5f490754 ::
(DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
-> IO (BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void)))
hs_bindgen_92ad7a7b5f490754 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_92ad7a7b5f490754_base (\x1 ->
\x2 ->
fmap BG.toFFIType (fun0 (BG.fromFFIType x1) (BG.fromFFIType x2))))
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))@
foreign import ccall safe "dynamic" hs_bindgen_03c1795e92dc3294_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))@
hs_bindgen_03c1795e92dc3294 ::
BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void))
-> DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void)
hs_bindgen_03c1795e92dc3294 =
\funPtr0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_03c1795e92dc3294_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void)) where
toFunPtr = hs_bindgen_92ad7a7b5f490754
instance BG.FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.Void)) where
fromFunPtr = hs_bindgen_03c1795e92dc3294
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_2aa79b5f9f4ab491_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()))
-- __unique:__ @instance ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())@
hs_bindgen_2aa79b5f9f4ab491 ::
(DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
-> IO (BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ()))
hs_bindgen_2aa79b5f9f4ab491 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_2aa79b5f9f4ab491_base (\x1 ->
\x2 ->
fun0 (BG.fromFFIType x1) (BG.fromFFIType x2)))
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_13a4c88fcbc780df_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO ()
-- __unique:__ @instance FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())@
hs_bindgen_13a4c88fcbc780df ::
BG.FunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ())
-> DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ()
hs_bindgen_13a4c88fcbc780df =
\funPtr0 ->
\x1 ->
\x2 ->
hs_bindgen_13a4c88fcbc780df_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2)
instance BG.ToFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ()) where
toFunPtr = hs_bindgen_2aa79b5f9f4ab491
instance BG.FromFunPtr (DuckDBExtensionInfo -> PtrConst.PtrConst BG.CChar -> IO ()) where
fromFunPtr = hs_bindgen_13a4c88fcbc780df
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArray -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_4d336e4487b32130_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArray -> IO ())@
hs_bindgen_4d336e4487b32130 ::
(BG.Ptr ArrowArray -> IO ())
-> IO (BG.FunPtr (BG.Ptr ArrowArray -> IO ()))
hs_bindgen_4d336e4487b32130 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_4d336e4487b32130_base (\x1 ->
fun0 (BG.fromFFIType x1)))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArray -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_0b7012dfcd502374_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArray -> IO ())@
hs_bindgen_0b7012dfcd502374 ::
BG.FunPtr (BG.Ptr ArrowArray -> IO ())
-> BG.Ptr ArrowArray -> IO ()
hs_bindgen_0b7012dfcd502374 =
\funPtr0 ->
\x1 ->
hs_bindgen_0b7012dfcd502374_base (BG.castFunPtr funPtr0) (BG.toFFIType x1)
instance BG.ToFunPtr (BG.Ptr ArrowArray -> IO ()) where
toFunPtr = hs_bindgen_4d336e4487b32130
instance BG.FromFunPtr (BG.Ptr ArrowArray -> IO ()) where
fromFunPtr = hs_bindgen_0b7012dfcd502374
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))@
foreign import ccall safe "wrapper" hs_bindgen_6b9c94c9d66ac396_base ::
(BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))@
hs_bindgen_6b9c94c9d66ac396 ::
(BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
-> IO (BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar)))
hs_bindgen_6b9c94c9d66ac396 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_6b9c94c9d66ac396_base (\x1 ->
fmap BG.toFFIType (fun0 (BG.fromFFIType x1))))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))@
foreign import ccall safe "dynamic" hs_bindgen_46babed99c1d98c8_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
-> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))@
hs_bindgen_46babed99c1d98c8 ::
BG.FunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar))
-> BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_46babed99c1d98c8 =
\funPtr0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_46babed99c1d98c8_base (BG.castFunPtr funPtr0) (BG.toFFIType x1))
instance BG.ToFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar)) where
toFunPtr = hs_bindgen_6b9c94c9d66ac396
instance BG.FromFunPtr (BG.Ptr ArrowArrayStream -> IO (PtrConst.PtrConst BG.CChar)) where
fromFunPtr = hs_bindgen_46babed99c1d98c8
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_53ecea872b08397c_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> IO ())@
hs_bindgen_53ecea872b08397c ::
(BG.Ptr ArrowArrayStream -> IO ())
-> IO (BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ()))
hs_bindgen_53ecea872b08397c =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_53ecea872b08397c_base (\x1 ->
fun0 (BG.fromFFIType x1)))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_eaa751fcbe96e4a5_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> IO ())@
hs_bindgen_eaa751fcbe96e4a5 ::
BG.FunPtr (BG.Ptr ArrowArrayStream -> IO ())
-> BG.Ptr ArrowArrayStream -> IO ()
hs_bindgen_eaa751fcbe96e4a5 =
\funPtr0 ->
\x1 ->
hs_bindgen_eaa751fcbe96e4a5_base (BG.castFunPtr funPtr0) (BG.toFFIType x1)
instance BG.ToFunPtr (BG.Ptr ArrowArrayStream -> IO ()) where
toFunPtr = hs_bindgen_53ecea872b08397c
instance BG.FromFunPtr (BG.Ptr ArrowArrayStream -> IO ()) where
fromFunPtr = hs_bindgen_eaa751fcbe96e4a5
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)@
foreign import ccall safe "wrapper" hs_bindgen_2a3259863e5e2fb9_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt)
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)@
hs_bindgen_2a3259863e5e2fb9 ::
(BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
-> IO (BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt))
hs_bindgen_2a3259863e5e2fb9 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_2a3259863e5e2fb9_base (\x1 ->
\x2 ->
fmap BG.toFFIType (fun0 (BG.fromFFIType x1) (BG.fromFFIType x2))))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)@
foreign import ccall safe "dynamic" hs_bindgen_b8c200d6c217e573_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt)
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)@
hs_bindgen_b8c200d6c217e573 ::
BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt)
-> BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt
hs_bindgen_b8c200d6c217e573 =
\funPtr0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_b8c200d6c217e573_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt) where
toFunPtr = hs_bindgen_2a3259863e5e2fb9
instance BG.FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowArray -> IO BG.CInt) where
fromFunPtr = hs_bindgen_b8c200d6c217e573
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)@
foreign import ccall safe "wrapper" hs_bindgen_1bd5acba953515a9_base ::
(BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt)
-> IO (BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)@
hs_bindgen_1bd5acba953515a9 ::
(BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
-> IO (BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt))
hs_bindgen_1bd5acba953515a9 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_1bd5acba953515a9_base (\x1 ->
\x2 ->
fmap BG.toFFIType (fun0 (BG.fromFFIType x1) (BG.fromFFIType x2))))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)@
foreign import ccall safe "dynamic" hs_bindgen_be93abfc8b9e05df_base ::
BG.FunPtr (BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt)
-> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CInt
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)@
hs_bindgen_be93abfc8b9e05df ::
BG.FunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt)
-> BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt
hs_bindgen_be93abfc8b9e05df =
\funPtr0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_be93abfc8b9e05df_base (BG.castFunPtr funPtr0) (BG.toFFIType x1) (BG.toFFIType x2))
instance BG.ToFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt) where
toFunPtr = hs_bindgen_1bd5acba953515a9
instance BG.FromFunPtr (BG.Ptr ArrowArrayStream -> BG.Ptr ArrowSchema -> IO BG.CInt) where
fromFunPtr = hs_bindgen_be93abfc8b9e05df
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowSchema -> IO ())@
foreign import ccall safe "wrapper" hs_bindgen_eb4670e8ca3edb75_base ::
(BG.Ptr BG.Void -> IO ())
-> IO (BG.FunPtr (BG.Ptr BG.Void -> IO ()))
-- __unique:__ @instance ToFunPtr (BG.Ptr ArrowSchema -> IO ())@
hs_bindgen_eb4670e8ca3edb75 ::
(BG.Ptr ArrowSchema -> IO ())
-> IO (BG.FunPtr (BG.Ptr ArrowSchema -> IO ()))
hs_bindgen_eb4670e8ca3edb75 =
\fun0 ->
fmap BG.castFunPtr (hs_bindgen_eb4670e8ca3edb75_base (\x1 ->
fun0 (BG.fromFFIType x1)))
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowSchema -> IO ())@
foreign import ccall safe "dynamic" hs_bindgen_cf541a6b0d109282_base ::
BG.FunPtr (BG.Ptr BG.Void -> IO ())
-> BG.Ptr BG.Void -> IO ()
-- __unique:__ @instance FromFunPtr (BG.Ptr ArrowSchema -> IO ())@
hs_bindgen_cf541a6b0d109282 ::
BG.FunPtr (BG.Ptr ArrowSchema -> IO ())
-> BG.Ptr ArrowSchema -> IO ()
hs_bindgen_cf541a6b0d109282 =
\funPtr0 ->
\x1 ->
hs_bindgen_cf541a6b0d109282_base (BG.castFunPtr funPtr0) (BG.toFFIType x1)
instance BG.ToFunPtr (BG.Ptr ArrowSchema -> IO ()) where
toFunPtr = hs_bindgen_eb4670e8ca3edb75
instance BG.FromFunPtr (BG.Ptr ArrowSchema -> IO ()) where
fromFunPtr = hs_bindgen_cf541a6b0d109282
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_date@
foreign import ccall safe "hs_bindgen_153d18959d6bdde2" hs_bindgen_153d18959d6bdde2_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_date@
hs_bindgen_153d18959d6bdde2 ::
BG.Ptr DuckDBDate
-> BG.Ptr DuckDBDateStruct
-> IO ()
hs_bindgen_153d18959d6bdde2 =
\x0 ->
\x1 ->
hs_bindgen_153d18959d6bdde2_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Decompose a @t'DuckDBDate'@ object into year, month and date (stored as @t'DuckDBDateStruct'@ ).
history:
* stable: v0.2.9
[__@date@__]: The date object, as obtained from a @@DUCKDB_TYPE_DATE@@ column.
__Returns:__ t'DuckDBDateStruct'
__C declaration:__ @duckdb_from_date@
__defined at:__ @duckdb.h 1604:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_from_date ::
DuckDBDate
{- ^
[__@date@__]: The date object, as obtained from a @@DUCKDB_TYPE_DATE@@ column.
__C declaration:__ @date@
-}
-> IO DuckDBDateStruct
c_duckdb_from_date =
\date0 ->
BG.with date0 (\date1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_153d18959d6bdde2 date1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_date@
foreign import ccall safe "hs_bindgen_e8e2ae846bc846bd" hs_bindgen_e8e2ae846bc846bd_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_date@
hs_bindgen_e8e2ae846bc846bd ::
BG.Ptr DuckDBDateStruct
-> BG.Ptr DuckDBDate
-> IO ()
hs_bindgen_e8e2ae846bc846bd =
\x0 ->
\x1 ->
hs_bindgen_e8e2ae846bc846bd_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Re-compose a @t'DuckDBDate'@ from year, month and date ( @t'DuckDBDateStruct'@ ).
history:
* stable: v0.2.9
[__@date@__]: The year, month and date stored in a @t'DuckDBDateStruct'@ .
__Returns:__ t'DuckDBDate'
__C declaration:__ @duckdb_to_date@
__defined at:__ @duckdb.h 1617:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_to_date ::
DuckDBDateStruct
{- ^
[__@date@__]: The year, month and date stored in a @t'DuckDBDateStruct'@ .
__C declaration:__ @date@
-}
-> IO DuckDBDate
c_duckdb_to_date =
\date0 ->
BG.with date0 (\date1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_e8e2ae846bc846bd date1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_date@
foreign import ccall safe "hs_bindgen_0502603ff03a9a85" hs_bindgen_0502603ff03a9a85_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_date@
hs_bindgen_0502603ff03a9a85 ::
BG.Ptr DuckDBDate
-> IO BG.CBool
hs_bindgen_0502603ff03a9a85 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0502603ff03a9a85_base (BG.toFFIType x0))
{-| Test a @t'DuckDBDate'@ to see if it is a finite value.
history:
* stable: v0.10.0
[__@date@__]: The date object, as obtained from a @@DUCKDB_TYPE_DATE@@ column.
__Returns:__ bool
__C declaration:__ @duckdb_is_finite_date@
__defined at:__ @duckdb.h 1630:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_finite_date ::
DuckDBDate
{- ^
[__@date@__]: The date object, as obtained from a @@DUCKDB_TYPE_DATE@@ column.
__C declaration:__ @date@
-}
-> IO BG.CBool
c_duckdb_is_finite_date =
\date0 ->
BG.with date0 (\date1 ->
hs_bindgen_0502603ff03a9a85 date1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_time@
foreign import ccall safe "hs_bindgen_6f585e0d38d45906" hs_bindgen_6f585e0d38d45906_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_time@
hs_bindgen_6f585e0d38d45906 ::
BG.Ptr DuckDBTime
-> BG.Ptr DuckDBTimeStruct
-> IO ()
hs_bindgen_6f585e0d38d45906 =
\x0 ->
\x1 ->
hs_bindgen_6f585e0d38d45906_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Decompose a @t'DuckDBTime'@ object into hour, minute, second and microsecond (stored as @t'DuckDBTimeStruct'@ ).
history:
* stable: v0.2.9
[__@time@__]: The time object, as obtained from a @@DUCKDB_TYPE_TIME@@ column.
__Returns:__ t'DuckDBTimeStruct'
__C declaration:__ @duckdb_from_time@
__defined at:__ @duckdb.h 1643:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_from_time ::
DuckDBTime
{- ^
[__@time@__]: The time object, as obtained from a @@DUCKDB_TYPE_TIME@@ column.
__C declaration:__ @time@
-}
-> IO DuckDBTimeStruct
c_duckdb_from_time =
\time0 ->
BG.with time0 (\time1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_6f585e0d38d45906 time1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_tz@
foreign import ccall safe "hs_bindgen_3895748c6e0f7040" hs_bindgen_3895748c6e0f7040_base ::
HsBindgen.Runtime.LibC.Int64
-> HsBindgen.Runtime.LibC.Int32
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_tz@
hs_bindgen_3895748c6e0f7040 ::
HsBindgen.Runtime.LibC.Int64
-> HsBindgen.Runtime.LibC.Int32
-> BG.Ptr DuckDBTimeTz
-> IO ()
hs_bindgen_3895748c6e0f7040 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_3895748c6e0f7040_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Create a @t'DuckDBTimeTz'@ object from micros and a timezone offset.
history:
* stable: v0.10.0
[__@micros@__]: The microsecond component of the time.
[__@offset@__]: The timezone offset component of the time.
__Returns:__ t'DuckDBTimeTz'
__C declaration:__ @duckdb_create_time_tz@
__defined at:__ @duckdb.h 1657:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_time_tz ::
HsBindgen.Runtime.LibC.Int64
{- ^
[__@micros@__]: The microsecond component of the time.
__C declaration:__ @micros@
-}
-> HsBindgen.Runtime.LibC.Int32
{- ^
[__@offset@__]: The timezone offset component of the time.
__C declaration:__ @offset@
-}
-> IO DuckDBTimeTz
c_duckdb_create_time_tz =
\micros0 ->
\offset1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_3895748c6e0f7040 micros0 offset1 res2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_time_tz@
foreign import ccall safe "hs_bindgen_a6d9dec3e303c7f7" hs_bindgen_a6d9dec3e303c7f7_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_time_tz@
hs_bindgen_a6d9dec3e303c7f7 ::
BG.Ptr DuckDBTimeTz
-> BG.Ptr DuckDBTimeTzStruct
-> IO ()
hs_bindgen_a6d9dec3e303c7f7 =
\x0 ->
\x1 ->
hs_bindgen_a6d9dec3e303c7f7_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Decompose a TIME_TZ objects into micros and a timezone offset.
Use @'c_duckdb_from_time'@ to further decompose the micros into hour, minute, second and microsecond.
history:
* stable: v0.10.0
[__@micros@__]: The time object, as obtained from a @@DUCKDB_TYPE_TIME_TZ@@ column.
__Returns:__ t'DuckDBTimeTzStruct'
__C declaration:__ @duckdb_from_time_tz@
__defined at:__ @duckdb.h 1672:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_from_time_tz ::
DuckDBTimeTz
{- ^
[__@micros@__]: The time object, as obtained from a @@DUCKDB_TYPE_TIME_TZ@@ column.
__C declaration:__ @micros@
-}
-> IO DuckDBTimeTzStruct
c_duckdb_from_time_tz =
\micros0 ->
BG.with micros0 (\micros1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_a6d9dec3e303c7f7 micros1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_time@
foreign import ccall safe "hs_bindgen_2bcbaabda02073ac" hs_bindgen_2bcbaabda02073ac_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_time@
hs_bindgen_2bcbaabda02073ac ::
BG.Ptr DuckDBTimeStruct
-> BG.Ptr DuckDBTime
-> IO ()
hs_bindgen_2bcbaabda02073ac =
\x0 ->
\x1 ->
hs_bindgen_2bcbaabda02073ac_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Re-compose a @t'DuckDBTime'@ from hour, minute, second and microsecond ( @t'DuckDBTimeStruct'@ ).
history:
* stable: v0.2.9
[__@time@__]: The hour, minute, second and microsecond in a @t'DuckDBTimeStruct'@ .
__Returns:__ t'DuckDBTime'
__C declaration:__ @duckdb_to_time@
__defined at:__ @duckdb.h 1685:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_to_time ::
DuckDBTimeStruct
{- ^
[__@time@__]: The hour, minute, second and microsecond in a @t'DuckDBTimeStruct'@ .
__C declaration:__ @time@
-}
-> IO DuckDBTime
c_duckdb_to_time =
\time0 ->
BG.with time0 (\time1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_2bcbaabda02073ac time1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_timestamp@
foreign import ccall safe "hs_bindgen_53776ff8b2acd73e" hs_bindgen_53776ff8b2acd73e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_from_timestamp@
hs_bindgen_53776ff8b2acd73e ::
BG.Ptr DuckDBTimestamp
-> BG.Ptr DuckDBTimestampStruct
-> IO ()
hs_bindgen_53776ff8b2acd73e =
\x0 ->
\x1 ->
hs_bindgen_53776ff8b2acd73e_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Decompose a @t'DuckDBTimestamp'@ object into a @t'DuckDBTimestampStruct'@ .
history:
* stable: v0.2.9
[__@ts@__]: The ts object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP@@ column.
__Returns:__ t'DuckDBTimestampStruct'
__C declaration:__ @duckdb_from_timestamp@
__defined at:__ @duckdb.h 1698:38@
__exported by:__ @duckdb.h@
-}
c_duckdb_from_timestamp ::
DuckDBTimestamp
{- ^
[__@ts@__]: The ts object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP@@ column.
__C declaration:__ @ts@
-}
-> IO DuckDBTimestampStruct
c_duckdb_from_timestamp =
\ts0 ->
BG.with ts0 (\ts1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_53776ff8b2acd73e ts1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_timestamp@
foreign import ccall safe "hs_bindgen_2213a6caf7cf5a2a" hs_bindgen_2213a6caf7cf5a2a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_timestamp@
hs_bindgen_2213a6caf7cf5a2a ::
BG.Ptr DuckDBTimestampStruct
-> BG.Ptr DuckDBTimestamp
-> IO ()
hs_bindgen_2213a6caf7cf5a2a =
\x0 ->
\x1 ->
hs_bindgen_2213a6caf7cf5a2a_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Re-compose a @t'DuckDBTimestamp'@ from a t'DuckDBTimestampStruct' .
history:
* stable: v0.2.9
[__@ts@__]: The de-composed elements in a @t'DuckDBTimestampStruct'@ .
__Returns:__ t'DuckDBTimestamp'
__C declaration:__ @duckdb_to_timestamp@
__defined at:__ @duckdb.h 1711:31@
__exported by:__ @duckdb.h@
-}
c_duckdb_to_timestamp ::
DuckDBTimestampStruct
{- ^
[__@ts@__]: The de-composed elements in a @t'DuckDBTimestampStruct'@ .
__C declaration:__ @ts@
-}
-> IO DuckDBTimestamp
c_duckdb_to_timestamp =
\ts0 ->
BG.with ts0 (\ts1 ->
BG.allocaAndPeek (\res2 ->
hs_bindgen_2213a6caf7cf5a2a ts1 res2))
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp@
foreign import ccall safe "hs_bindgen_6bf40d2c8f650521" hs_bindgen_6bf40d2c8f650521_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp@
hs_bindgen_6bf40d2c8f650521 ::
BG.Ptr DuckDBTimestamp
-> IO BG.CBool
hs_bindgen_6bf40d2c8f650521 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6bf40d2c8f650521_base (BG.toFFIType x0))
{-| Test a @t'DuckDBTimestamp'@ to see if it is a finite value.
history:
* stable: v0.10.0
[__@ts@__]: The t'DuckDBTimestamp' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP@@ column.
__Returns:__ bool
__C declaration:__ @duckdb_is_finite_timestamp@
__defined at:__ @duckdb.h 1724:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_finite_timestamp ::
DuckDBTimestamp
{- ^
[__@ts@__]: The t'DuckDBTimestamp' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP@@ column.
__C declaration:__ @ts@
-}
-> IO BG.CBool
c_duckdb_is_finite_timestamp =
\ts0 ->
BG.with ts0 (\ts1 -> hs_bindgen_6bf40d2c8f650521 ts1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_s@
foreign import ccall safe "hs_bindgen_3de825c497718ef8" hs_bindgen_3de825c497718ef8_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_s@
hs_bindgen_3de825c497718ef8 ::
BG.Ptr DuckDBTimestampS
-> IO BG.CBool
hs_bindgen_3de825c497718ef8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3de825c497718ef8_base (BG.toFFIType x0))
{-| Test a @t'DuckDBTimestampS'@ to see if it is a finite value.
history:
* stable: v1.2.0
[__@ts@__]: The t'DuckDBTimestampS' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_S@@ column.
__Returns:__ bool
__C declaration:__ @duckdb_is_finite_timestamp_s@
__defined at:__ @duckdb.h 1737:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_finite_timestamp_s ::
DuckDBTimestampS
{- ^
[__@ts@__]: The t'DuckDBTimestampS' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_S@@ column.
__C declaration:__ @ts@
-}
-> IO BG.CBool
c_duckdb_is_finite_timestamp_s =
\ts0 ->
BG.with ts0 (\ts1 -> hs_bindgen_3de825c497718ef8 ts1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_ms@
foreign import ccall safe "hs_bindgen_ddb9e22e35fce1f5" hs_bindgen_ddb9e22e35fce1f5_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_ms@
hs_bindgen_ddb9e22e35fce1f5 ::
BG.Ptr DuckDBTimestampMs
-> IO BG.CBool
hs_bindgen_ddb9e22e35fce1f5 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ddb9e22e35fce1f5_base (BG.toFFIType x0))
{-| Test a @t'DuckDBTimestampMs'@ to see if it is a finite value.
history:
* stable: v1.2.0
[__@ts@__]: The t'DuckDBTimestampMs' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_MS@@ column.
__Returns:__ bool
__C declaration:__ @duckdb_is_finite_timestamp_ms@
__defined at:__ @duckdb.h 1750:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_finite_timestamp_ms ::
DuckDBTimestampMs
{- ^
[__@ts@__]: The t'DuckDBTimestampMs' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_MS@@ column.
__C declaration:__ @ts@
-}
-> IO BG.CBool
c_duckdb_is_finite_timestamp_ms =
\ts0 ->
BG.with ts0 (\ts1 -> hs_bindgen_ddb9e22e35fce1f5 ts1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_ns@
foreign import ccall safe "hs_bindgen_0f484f72b5cf1c3b" hs_bindgen_0f484f72b5cf1c3b_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_finite_timestamp_ns@
hs_bindgen_0f484f72b5cf1c3b ::
BG.Ptr DuckDBTimestampNs
-> IO BG.CBool
hs_bindgen_0f484f72b5cf1c3b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0f484f72b5cf1c3b_base (BG.toFFIType x0))
{-| Test a @t'DuckDBTimestampNs'@ to see if it is a finite value.
history:
* stable: v1.2.0
[__@ts@__]: The t'DuckDBTimestampNs' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_NS@@ column.
__Returns:__ bool
__C declaration:__ @duckdb_is_finite_timestamp_ns@
__defined at:__ @duckdb.h 1763:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_finite_timestamp_ns ::
DuckDBTimestampNs
{- ^
[__@ts@__]: The t'DuckDBTimestampNs' object, as obtained from a @@DUCKDB_TYPE_TIMESTAMP_NS@@ column.
__C declaration:__ @ts@
-}
-> IO BG.CBool
c_duckdb_is_finite_timestamp_ns =
\ts0 ->
BG.with ts0 (\ts1 -> hs_bindgen_0f484f72b5cf1c3b ts1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_hugeint_to_double@
foreign import ccall safe "hs_bindgen_bbbbec73ad41a6be" hs_bindgen_bbbbec73ad41a6be_base ::
BG.Ptr BG.Void
-> IO BG.CDouble
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_hugeint_to_double@
hs_bindgen_bbbbec73ad41a6be ::
BG.Ptr DuckDBHugeInt
-> IO BG.CDouble
hs_bindgen_bbbbec73ad41a6be =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_bbbbec73ad41a6be_base (BG.toFFIType x0))
{-|
Converts a t'DuckDBHugeInt' object (as obtained from a @@DUCKDB_TYPE_HUGEINT@@ column) into a double.
history:
* stable: v0.2.9
[__@val@__]: The hugeint value.
__Returns:__ double
__C declaration:__ @duckdb_hugeint_to_double@
__defined at:__ @duckdb.h 1776:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_hugeint_to_double ::
DuckDBHugeInt
{- ^
[__@val@__]: The hugeint value.
__C declaration:__ @val@
-}
-> IO BG.CDouble
c_duckdb_hugeint_to_double =
\val0 ->
BG.with val0 (\val1 ->
hs_bindgen_bbbbec73ad41a6be val1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_hugeint@
foreign import ccall safe "hs_bindgen_09890e1c7e06ce22" hs_bindgen_09890e1c7e06ce22_base ::
BG.CDouble
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_hugeint@
hs_bindgen_09890e1c7e06ce22 ::
BG.CDouble
-> BG.Ptr DuckDBHugeInt
-> IO ()
hs_bindgen_09890e1c7e06ce22 =
\x0 ->
\x1 ->
hs_bindgen_09890e1c7e06ce22_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Converts a double value to a t'DuckDBHugeInt' object.
If the conversion fails because the double value is too big the result will be 0.
history:
* stable: v0.2.9
[__@val@__]: The double value.
__Returns:__ t'DuckDBHugeInt'
__C declaration:__ @duckdb_double_to_hugeint@
__defined at:__ @duckdb.h 1791:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_double_to_hugeint ::
BG.CDouble
{- ^
[__@val@__]: The double value.
__C declaration:__ @val@
-}
-> IO DuckDBHugeInt
c_duckdb_double_to_hugeint =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_09890e1c7e06ce22 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_uhugeint_to_double@
foreign import ccall safe "hs_bindgen_e347968d8ba72f9d" hs_bindgen_e347968d8ba72f9d_base ::
BG.Ptr BG.Void
-> IO BG.CDouble
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_uhugeint_to_double@
hs_bindgen_e347968d8ba72f9d ::
BG.Ptr DuckDBUHugeInt
-> IO BG.CDouble
hs_bindgen_e347968d8ba72f9d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_e347968d8ba72f9d_base (BG.toFFIType x0))
{-|
Converts a t'DuckDBUHugeInt' object (as obtained from a @@DUCKDB_TYPE_UHUGEINT@@ column) into a double.
history:
* stable: v0.10.0
[__@val@__]: The uhugeint value.
__Returns:__ double
__C declaration:__ @duckdb_uhugeint_to_double@
__defined at:__ @duckdb.h 1804:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_uhugeint_to_double ::
DuckDBUHugeInt
{- ^
[__@val@__]: The uhugeint value.
__C declaration:__ @val@
-}
-> IO BG.CDouble
c_duckdb_uhugeint_to_double =
\val0 ->
BG.with val0 (\val1 ->
hs_bindgen_e347968d8ba72f9d val1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_uhugeint@
foreign import ccall safe "hs_bindgen_ab63bc231e7c2083" hs_bindgen_ab63bc231e7c2083_base ::
BG.CDouble
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_uhugeint@
hs_bindgen_ab63bc231e7c2083 ::
BG.CDouble
-> BG.Ptr DuckDBUHugeInt
-> IO ()
hs_bindgen_ab63bc231e7c2083 =
\x0 ->
\x1 ->
hs_bindgen_ab63bc231e7c2083_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Converts a double value to a t'DuckDBUHugeInt' object.
If the conversion fails because the double value is too big the result will be 0.
history:
* stable: v0.10.0
[__@val@__]: The double value.
__Returns:__ t'DuckDBUHugeInt'
__C declaration:__ @duckdb_double_to_uhugeint@
__defined at:__ @duckdb.h 1819:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_double_to_uhugeint ::
BG.CDouble
{- ^
[__@val@__]: The double value.
__C declaration:__ @val@
-}
-> IO DuckDBUHugeInt
c_duckdb_double_to_uhugeint =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_ab63bc231e7c2083 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_decimal@
foreign import ccall safe "hs_bindgen_2fd9e41f82130053" hs_bindgen_2fd9e41f82130053_base ::
BG.CDouble
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_double_to_decimal@
hs_bindgen_2fd9e41f82130053 ::
BG.CDouble
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> BG.Ptr DuckDBDecimal
-> IO ()
hs_bindgen_2fd9e41f82130053 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_2fd9e41f82130053_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-|
Converts a double value to a t'DuckDBDecimal' object.
If the conversion fails because the double value is too big, or the width/scale are invalid the result will be 0.
history:
* stable: v0.6.0
[__@val@__]: The double value.
[__@width@__]:
[__@scale@__]:
__Returns:__ t'DuckDBDecimal'
__C declaration:__ @duckdb_double_to_decimal@
__defined at:__ @duckdb.h 1836:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_double_to_decimal ::
BG.CDouble
{- ^
[__@val@__]: The double value.
__C declaration:__ @val@
-}
-> HsBindgen.Runtime.LibC.Word8
{- ^
[__@width@__]:
__C declaration:__ @width@
-}
-> HsBindgen.Runtime.LibC.Word8
{- ^
[__@scale@__]:
__C declaration:__ @scale@
-}
-> IO DuckDBDecimal
c_duckdb_double_to_decimal =
\val0 ->
\width1 ->
\scale2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_2fd9e41f82130053 val0 width1 scale2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_to_double@
foreign import ccall safe "hs_bindgen_a897650e57b2e5dd" hs_bindgen_a897650e57b2e5dd_base ::
BG.Ptr BG.Void
-> IO BG.CDouble
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_to_double@
hs_bindgen_a897650e57b2e5dd ::
BG.Ptr DuckDBDecimal
-> IO BG.CDouble
hs_bindgen_a897650e57b2e5dd =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a897650e57b2e5dd_base (BG.toFFIType x0))
{-|
Converts a t'DuckDBDecimal' object (as obtained from a @@DUCKDB_TYPE_DECIMAL@@ column) into a double.
history:
* stable: v0.3.3
[__@val@__]: The decimal value.
__Returns:__ double
__C declaration:__ @duckdb_decimal_to_double@
__defined at:__ @duckdb.h 1849:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_decimal_to_double ::
DuckDBDecimal
{- ^
[__@val@__]: The decimal value.
__C declaration:__ @val@
-}
-> IO BG.CDouble
c_duckdb_decimal_to_double =
\val0 ->
BG.with val0 (\val1 ->
hs_bindgen_a897650e57b2e5dd val1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_aggregate_function@
foreign import ccall safe "hs_bindgen_a4213901f24a347c" hs_bindgen_a4213901f24a347c_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_aggregate_function@
hs_bindgen_a4213901f24a347c :: IO DuckDBAggregateFunction
hs_bindgen_a4213901f24a347c =
fmap BG.fromFFIType hs_bindgen_a4213901f24a347c_base
{-| Creates a new empty aggregate function.
The return value should be destroyed with @'c_duckdb_destroy_aggregate_function'@ .
history:
* stable: v1.1.0
__Returns:__ t'DuckDBAggregateFunction'
__C declaration:__ @duckdb_create_aggregate_function@
__defined at:__ @duckdb.h 1881:40@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_aggregate_function :: IO DuckDBAggregateFunction
c_duckdb_create_aggregate_function =
hs_bindgen_a4213901f24a347c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_aggregate_function@
foreign import ccall safe "hs_bindgen_9a7ed57b62ba2830" hs_bindgen_9a7ed57b62ba2830_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_aggregate_function@
hs_bindgen_9a7ed57b62ba2830 ::
BG.Ptr DuckDBAggregateFunction
-> IO ()
hs_bindgen_9a7ed57b62ba2830 =
\x0 ->
hs_bindgen_9a7ed57b62ba2830_base (BG.toFFIType x0)
{-| Destroys the given aggregate function object.
history:
* stable: v1.1.0
[__@aggregate_function@__]:
__Returns:__ void
__C declaration:__ @duckdb_destroy_aggregate_function@
__defined at:__ @duckdb.h 1894:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_aggregate_function ::
BG.Ptr DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]:
__C declaration:__ @aggregate_function@
-}
-> IO ()
c_duckdb_destroy_aggregate_function =
hs_bindgen_9a7ed57b62ba2830
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_name@
foreign import ccall safe "hs_bindgen_6753d462db01c5d2" hs_bindgen_6753d462db01c5d2_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_name@
hs_bindgen_6753d462db01c5d2 ::
DuckDBAggregateFunction
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_6753d462db01c5d2 =
\x0 ->
\x1 ->
hs_bindgen_6753d462db01c5d2_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the given aggregate function.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function
[__@name@__]: The name of the aggregate function
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_name@
__defined at:__ @duckdb.h 1908:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_name ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function
__C declaration:__ @aggregate_function@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the aggregate function
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_aggregate_function_set_name =
hs_bindgen_6753d462db01c5d2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_add_parameter@
foreign import ccall safe "hs_bindgen_c0953d002d635df8" hs_bindgen_c0953d002d635df8_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_add_parameter@
hs_bindgen_c0953d002d635df8 ::
DuckDBAggregateFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_c0953d002d635df8 =
\x0 ->
\x1 ->
hs_bindgen_c0953d002d635df8_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Adds a parameter to the aggregate function.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function.
[__@type@__]: The parameter type. Cannot contain INVALID.
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_add_parameter@
__defined at:__ @duckdb.h 1922:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_add_parameter ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function.
__C declaration:__ @aggregate_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The parameter type. Cannot contain INVALID.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_aggregate_function_add_parameter =
hs_bindgen_c0953d002d635df8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_return_type@
foreign import ccall safe "hs_bindgen_6058c453ace88380" hs_bindgen_6058c453ace88380_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_return_type@
hs_bindgen_6058c453ace88380 ::
DuckDBAggregateFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_6058c453ace88380 =
\x0 ->
\x1 ->
hs_bindgen_6058c453ace88380_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the return type of the aggregate function.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function.
[__@type@__]: The return type. Cannot contain INVALID or ANY.
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_return_type@
__defined at:__ @duckdb.h 1937:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_return_type ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function.
__C declaration:__ @aggregate_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The return type. Cannot contain INVALID or ANY.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_aggregate_function_set_return_type =
hs_bindgen_6058c453ace88380
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_functions@
foreign import ccall safe "hs_bindgen_f14070593356a5b8" hs_bindgen_f14070593356a5b8_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> BG.FunPtr BG.Void
-> BG.FunPtr BG.Void
-> BG.FunPtr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_functions@
hs_bindgen_f14070593356a5b8 ::
DuckDBAggregateFunction
-> DuckDBAggregateStateSizeFun
-> DuckDBAggregateInitFun
-> DuckDBAggregateUpdateFun
-> DuckDBAggregateCombineFun
-> DuckDBAggregateFinalizeFun
-> IO ()
hs_bindgen_f14070593356a5b8 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
hs_bindgen_f14070593356a5b8_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4) (BG.toFFIType x5)
{-| Sets the main functions of the aggregate function.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function
[__@state_size@__]: state size
[__@state_init@__]: state init function
[__@update@__]: update states
[__@combine@__]: combine states
[__@finalize@__]: finalize states
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_functions@
__defined at:__ @duckdb.h 1956:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_functions ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function
__C declaration:__ @aggregate_function@
-}
-> DuckDBAggregateStateSizeFun
{- ^
[__@state_size@__]: state size
__C declaration:__ @state_size@
-}
-> DuckDBAggregateInitFun
{- ^
[__@state_init@__]: state init function
__C declaration:__ @state_init@
-}
-> DuckDBAggregateUpdateFun
{- ^
[__@update@__]: update states
__C declaration:__ @update@
-}
-> DuckDBAggregateCombineFun
{- ^
[__@combine@__]: combine states
__C declaration:__ @combine@
-}
-> DuckDBAggregateFinalizeFun
{- ^
[__@finalize@__]: finalize states
__C declaration:__ @finalize@
-}
-> IO ()
c_duckdb_aggregate_function_set_functions =
hs_bindgen_f14070593356a5b8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_destructor@
foreign import ccall safe "hs_bindgen_d1d14d0757e28d95" hs_bindgen_d1d14d0757e28d95_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_destructor@
hs_bindgen_d1d14d0757e28d95 ::
DuckDBAggregateFunction
-> DuckDBAggregateDestroyFun
-> IO ()
hs_bindgen_d1d14d0757e28d95 =
\x0 ->
\x1 ->
hs_bindgen_d1d14d0757e28d95_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the state destructor callback of the aggregate function (optional)
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function
[__@destroy@__]: state destroy callback
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_destructor@
__defined at:__ @duckdb.h 1975:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_destructor ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function
__C declaration:__ @aggregate_function@
-}
-> DuckDBAggregateDestroyFun
{- ^
[__@destroy@__]: state destroy callback
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_aggregate_function_set_destructor =
hs_bindgen_d1d14d0757e28d95
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_aggregate_function@
foreign import ccall safe "hs_bindgen_73fd6a2b1ed3a19d" hs_bindgen_73fd6a2b1ed3a19d_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_aggregate_function@
hs_bindgen_73fd6a2b1ed3a19d ::
DuckDBConnection
-> DuckDBAggregateFunction
-> IO DuckDBState
hs_bindgen_73fd6a2b1ed3a19d =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_73fd6a2b1ed3a19d_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Register the aggregate function object within the given connection.
The function requires at least a name, functions and a return type.
If the function is incomplete or a function with this name already exists DuckDBError is returned.
history:
* stable: v1.1.0
[__@con@__]: The connection to register it in.
[__@aggregate_function@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_aggregate_function@
__defined at:__ @duckdb.h 1994:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_aggregate_function ::
DuckDBConnection
{- ^
[__@con@__]: The connection to register it in.
__C declaration:__ @con@
-}
-> DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]:
__C declaration:__ @aggregate_function@
-}
-> IO DuckDBState
c_duckdb_register_aggregate_function =
hs_bindgen_73fd6a2b1ed3a19d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_special_handling@
foreign import ccall safe "hs_bindgen_fb32b51eb2673dfa" hs_bindgen_fb32b51eb2673dfa_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_special_handling@
hs_bindgen_fb32b51eb2673dfa ::
DuckDBAggregateFunction
-> IO ()
hs_bindgen_fb32b51eb2673dfa =
\x0 ->
hs_bindgen_fb32b51eb2673dfa_base (BG.toFFIType x0)
{-| Sets the NULL handling of the aggregate function to SPECIAL_HANDLING.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_special_handling@
__defined at:__ @duckdb.h 2008:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_special_handling ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function
__C declaration:__ @aggregate_function@
-}
-> IO ()
c_duckdb_aggregate_function_set_special_handling =
hs_bindgen_fb32b51eb2673dfa
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_extra_info@
foreign import ccall safe "hs_bindgen_bfde5b245fa2177b" hs_bindgen_bfde5b245fa2177b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_extra_info@
hs_bindgen_bfde5b245fa2177b ::
DuckDBAggregateFunction
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_bfde5b245fa2177b =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_bfde5b245fa2177b_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Assigns extra information to the scalar function that can be fetched during binding, etc.
history:
* stable: v1.1.0
[__@aggregate_function@__]: The aggregate function
[__@extra_info@__]: The extra information
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_extra_info@
__defined at:__ @duckdb.h 2023:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_extra_info ::
DuckDBAggregateFunction
{- ^
[__@aggregate_function@__]: The aggregate function
__C declaration:__ @aggregate_function@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_info@__]: The extra information
__C declaration:__ @extra_info@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_aggregate_function_set_extra_info =
hs_bindgen_bfde5b245fa2177b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_get_extra_info@
foreign import ccall safe "hs_bindgen_4e9b0c1d3d06199e" hs_bindgen_4e9b0c1d3d06199e_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_get_extra_info@
hs_bindgen_4e9b0c1d3d06199e ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_4e9b0c1d3d06199e =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4e9b0c1d3d06199e_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_aggregate_function_set_extra_info'@ .
history:
* stable: v1.1.0
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_aggregate_function_get_extra_info@
__defined at:__ @duckdb.h 2037:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_get_extra_info ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_aggregate_function_get_extra_info =
hs_bindgen_4e9b0c1d3d06199e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_error@
foreign import ccall safe "hs_bindgen_483e87ce1132f579" hs_bindgen_483e87ce1132f579_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_aggregate_function_set_error@
hs_bindgen_483e87ce1132f579 ::
DuckDBFunctionInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_483e87ce1132f579 =
\x0 ->
\x1 ->
hs_bindgen_483e87ce1132f579_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while executing the aggregate function.
history:
* stable: v1.1.0
[__@info@__]: The info object
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_aggregate_function_set_error@
__defined at:__ @duckdb.h 2051:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_aggregate_function_set_error ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_aggregate_function_set_error =
hs_bindgen_483e87ce1132f579
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_aggregate_function_set@
foreign import ccall safe "hs_bindgen_2c49e23b08d73926" hs_bindgen_2c49e23b08d73926_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_aggregate_function_set@
hs_bindgen_2c49e23b08d73926 ::
PtrConst.PtrConst BG.CChar
-> IO DuckDBAggregateFunctionSet
hs_bindgen_2c49e23b08d73926 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2c49e23b08d73926_base (BG.toFFIType x0))
{-| Creates a new empty aggregate function set.
The return value should be destroyed with @'c_duckdb_destroy_aggregate_function_set'@ .
history:
* stable: v1.1.0
[__@name@__]:
__Returns:__ t'DuckDBAggregateFunctionSet'
__C declaration:__ @duckdb_create_aggregate_function_set@
__defined at:__ @duckdb.h 2066:44@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_aggregate_function_set ::
PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]:
__C declaration:__ @name@
-}
-> IO DuckDBAggregateFunctionSet
c_duckdb_create_aggregate_function_set =
hs_bindgen_2c49e23b08d73926
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_aggregate_function_set@
foreign import ccall safe "hs_bindgen_bf434d41b82ac906" hs_bindgen_bf434d41b82ac906_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_aggregate_function_set@
hs_bindgen_bf434d41b82ac906 ::
BG.Ptr DuckDBAggregateFunctionSet
-> IO ()
hs_bindgen_bf434d41b82ac906 =
\x0 ->
hs_bindgen_bf434d41b82ac906_base (BG.toFFIType x0)
{-| Destroys the given aggregate function set object.
history:
* stable: v1.1.0
[__@aggregate_function_set@__]:
__Returns:__ void
__C declaration:__ @duckdb_destroy_aggregate_function_set@
__defined at:__ @duckdb.h 2079:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_aggregate_function_set ::
BG.Ptr DuckDBAggregateFunctionSet
{- ^
[__@aggregate_function_set@__]:
__C declaration:__ @aggregate_function_set@
-}
-> IO ()
c_duckdb_destroy_aggregate_function_set =
hs_bindgen_bf434d41b82ac906
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_aggregate_function_to_set@
foreign import ccall safe "hs_bindgen_8ac8412347b7e08f" hs_bindgen_8ac8412347b7e08f_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_aggregate_function_to_set@
hs_bindgen_8ac8412347b7e08f ::
DuckDBAggregateFunctionSet
-> DuckDBAggregateFunction
-> IO DuckDBState
hs_bindgen_8ac8412347b7e08f =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_8ac8412347b7e08f_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Adds the aggregate function as a new overload to the aggregate function set.
Returns DuckDBError if the function could not be added, for example if the overload already exists.
history:
* stable: v1.1.0
[__@set@__]: The aggregate function set
[__@function@__]: The function to add
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_add_aggregate_function_to_set@
__defined at:__ @duckdb.h 2095:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_add_aggregate_function_to_set ::
DuckDBAggregateFunctionSet
{- ^
[__@set@__]: The aggregate function set
__C declaration:__ @set@
-}
-> DuckDBAggregateFunction
{- ^
[__@function@__]: The function to add
__C declaration:__ @function@
-}
-> IO DuckDBState
c_duckdb_add_aggregate_function_to_set =
hs_bindgen_8ac8412347b7e08f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_aggregate_function_set@
foreign import ccall safe "hs_bindgen_642bec7c514572cd" hs_bindgen_642bec7c514572cd_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_aggregate_function_set@
hs_bindgen_642bec7c514572cd ::
DuckDBConnection
-> DuckDBAggregateFunctionSet
-> IO DuckDBState
hs_bindgen_642bec7c514572cd =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_642bec7c514572cd_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Register the aggregate function set within the given connection.
The set requires at least a single valid overload.
If the set is incomplete or a function with this name already exists DuckDBError is returned.
history:
* stable: v1.1.0
[__@con@__]: The connection to register it in.
[__@set@__]: The function set to register
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_aggregate_function_set@
__defined at:__ @duckdb.h 2114:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_aggregate_function_set ::
DuckDBConnection
{- ^
[__@con@__]: The connection to register it in.
__C declaration:__ @con@
-}
-> DuckDBAggregateFunctionSet
{- ^
[__@set@__]: The function set to register
__C declaration:__ @set@
-}
-> IO DuckDBState
c_duckdb_register_aggregate_function_set =
hs_bindgen_642bec7c514572cd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create@
foreign import ccall safe "hs_bindgen_aa07fd4356c6a064" hs_bindgen_aa07fd4356c6a064_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create@
hs_bindgen_aa07fd4356c6a064 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBAppender
-> IO DuckDBState
hs_bindgen_aa07fd4356c6a064 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_aa07fd4356c6a064_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Creates an appender object.
Note that the object must be destroyed with @'c_duckdb_appender_destroy'@ .
history:
* stable: v0.2.5
[__@connection@__]: The connection context to create the appender in.
[__@schema@__]: The schema of the table to append to, or @nullptr@ for the default schema.
[__@table@__]: The table name to append to.
[__@out_appender@__]: The resulting appender object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_create@
__defined at:__ @duckdb.h 2151:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_create ::
DuckDBConnection
{- ^
[__@connection@__]: The connection context to create the appender in.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@schema@__]: The schema of the table to append to, or @nullptr@ for the default schema.
__C declaration:__ @schema@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table@__]: The table name to append to.
__C declaration:__ @table@
-}
-> BG.Ptr DuckDBAppender
{- ^
[__@out_appender@__]: The resulting appender object.
__C declaration:__ @out_appender@
-}
-> IO DuckDBState
c_duckdb_appender_create =
hs_bindgen_aa07fd4356c6a064
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create_ext@
foreign import ccall safe "hs_bindgen_63ef91b9ed96feb6" hs_bindgen_63ef91b9ed96feb6_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create_ext@
hs_bindgen_63ef91b9ed96feb6 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBAppender
-> IO DuckDBState
hs_bindgen_63ef91b9ed96feb6 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_63ef91b9ed96feb6_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| Creates an appender object.
Note that the object must be destroyed with @'c_duckdb_appender_destroy'@ .
history:
* stable: v1.2.0
[__@connection@__]: The connection context to create the appender in.
[__@catalog@__]: The catalog of the table to append to, or @nullptr@ for the default catalog.
[__@schema@__]: The schema of the table to append to, or @nullptr@ for the default schema.
[__@table@__]: The table name to append to.
[__@out_appender@__]: The resulting appender object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_create_ext@
__defined at:__ @duckdb.h 2171:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_create_ext ::
DuckDBConnection
{- ^
[__@connection@__]: The connection context to create the appender in.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@catalog@__]: The catalog of the table to append to, or @nullptr@ for the default catalog.
__C declaration:__ @catalog@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@schema@__]: The schema of the table to append to, or @nullptr@ for the default schema.
__C declaration:__ @schema@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table@__]: The table name to append to.
__C declaration:__ @table@
-}
-> BG.Ptr DuckDBAppender
{- ^
[__@out_appender@__]: The resulting appender object.
__C declaration:__ @out_appender@
-}
-> IO DuckDBState
c_duckdb_appender_create_ext =
hs_bindgen_63ef91b9ed96feb6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create_query@
foreign import ccall safe "hs_bindgen_f5f12003c5a6b74a" hs_bindgen_f5f12003c5a6b74a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_create_query@
hs_bindgen_f5f12003c5a6b74a ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> BG.Ptr DuckDBLogicalType
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> BG.Ptr DuckDBAppender
-> IO DuckDBState
hs_bindgen_f5f12003c5a6b74a =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
\x6 ->
fmap BG.fromFFIType (hs_bindgen_f5f12003c5a6b74a_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4) (BG.toFFIType x5) (BG.toFFIType x6))
{-| Creates an appender object that executes the given query with any data appended to it.
Note that the object must be destroyed with @'c_duckdb_appender_destroy'@ .
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@connection@__]: The connection context to create the appender in.
[__@query@__]: The query to execute, can be an INSERT, DELETE, UPDATE or MERGE INTO statement.
[__@column_count@__]: The number of columns to append.
[__@types@__]: The types of the columns to append.
[__@table_name@__]: (optionally) the table name used to refer to the appended data, defaults to "appended_data".
[__@column_names@__]: (optionally) the list of column names, defaults to "col1", "col2", ...
[__@out_appender@__]: The resulting appender object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_create_query@
__defined at:__ @duckdb.h 2195:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_create_query ::
DuckDBConnection
{- ^
[__@connection@__]: The connection context to create the appender in.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The query to execute, can be an INSERT, DELETE, UPDATE or MERGE INTO statement.
__C declaration:__ @query@
-}
-> DuckDBIdx
{- ^
[__@column_count@__]: The number of columns to append.
__C declaration:__ @column_count@
-}
-> BG.Ptr DuckDBLogicalType
{- ^
[__@types@__]: The types of the columns to append.
__C declaration:__ @types@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table_name@__]: (optionally) the table name used to refer to the appended data, defaults to "appended_data".
__C declaration:__ @table_name@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@column_names@__]: (optionally) the list of column names, defaults to "col1", "col2", ...
__C declaration:__ @column_names@
-}
-> BG.Ptr DuckDBAppender
{- ^
[__@out_appender@__]: The resulting appender object.
__C declaration:__ @out_appender@
-}
-> IO DuckDBState
c_duckdb_appender_create_query =
hs_bindgen_f5f12003c5a6b74a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_column_count@
foreign import ccall safe "hs_bindgen_d9adf614fa24a490" hs_bindgen_d9adf614fa24a490_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_column_count@
hs_bindgen_d9adf614fa24a490 ::
DuckDBAppender
-> IO DuckDBIdx
hs_bindgen_d9adf614fa24a490 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_d9adf614fa24a490_base (BG.toFFIType x0))
{-| Returns the number of columns that belong to the appender. If there is no active column list, then this equals the table\'s physical columns.
history:
* stable: v0.10.0
[__@appender@__]: The appender to get the column count from.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_appender_column_count@
__defined at:__ @duckdb.h 2212:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_column_count ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to get the column count from.
__C declaration:__ @appender@
-}
-> IO DuckDBIdx
c_duckdb_appender_column_count =
hs_bindgen_d9adf614fa24a490
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_column_type@
foreign import ccall safe "hs_bindgen_388a8d17efd22a63" hs_bindgen_388a8d17efd22a63_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_column_type@
hs_bindgen_388a8d17efd22a63 ::
DuckDBAppender
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_388a8d17efd22a63 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_388a8d17efd22a63_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the type of the column at the specified index. This is either a type in the active column list, or the same type as a column in the receiving table.
Note: The resulting type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.10.0
[__@appender@__]: The appender to get the column type from.
[__@col_idx@__]: The index of the column to get the type of.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_appender_column_type@
__defined at:__ @duckdb.h 2229:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_column_type ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to get the column type from.
__C declaration:__ @appender@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The index of the column to get the type of.
__C declaration:__ @col_idx@
-}
-> IO DuckDBLogicalType
c_duckdb_appender_column_type =
hs_bindgen_388a8d17efd22a63
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_error_data@
foreign import ccall safe "hs_bindgen_0c7ec7ae5f924855" hs_bindgen_0c7ec7ae5f924855_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_error_data@
hs_bindgen_0c7ec7ae5f924855 ::
DuckDBAppender
-> IO DuckDBErrorData
hs_bindgen_0c7ec7ae5f924855 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0c7ec7ae5f924855_base (BG.toFFIType x0))
{-| Returns the error data associated with the appender. Must be destroyed with duckdb_destroy_error_data.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@appender@__]: The appender to get the error data from.
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_appender_error_data@
__defined at:__ @duckdb.h 2243:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_error_data ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to get the error data from.
__C declaration:__ @appender@
-}
-> IO DuckDBErrorData
c_duckdb_appender_error_data =
hs_bindgen_0c7ec7ae5f924855
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_flush@
foreign import ccall safe "hs_bindgen_440cae7db099b464" hs_bindgen_440cae7db099b464_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_flush@
hs_bindgen_440cae7db099b464 ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_440cae7db099b464 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_440cae7db099b464_base (BG.toFFIType x0))
{-| Flush the appender to the table, forcing the cache of the appender to be cleared. Requires a connection with no open result. If flushing the data triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError. It is not possible to append more values. Call duckdb_appender_error_data to obtain the error data followed by duckdb_appender_destroy to destroy the invalidated appender.
history:
* stable: v0.2.5
[__@appender@__]: The appender to flush.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_flush@
__defined at:__ @duckdb.h 2259:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_flush ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to flush.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_flush = hs_bindgen_440cae7db099b464
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_clear@
foreign import ccall safe "hs_bindgen_e89bd80516e6940c" hs_bindgen_e89bd80516e6940c_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_clear@
hs_bindgen_e89bd80516e6940c ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_e89bd80516e6940c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_e89bd80516e6940c_base (BG.toFFIType x0))
{-| Clears all buffered data from the appender without flushing it to the table. This discards any data that has been appended but not yet written. The appender can continue to be used after clearing.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@appender@__]: The appender to clear.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_clear@
__defined at:__ @duckdb.h 2274:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_clear ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to clear.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_clear = hs_bindgen_e89bd80516e6940c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_close@
foreign import ccall safe "hs_bindgen_b6168be67cbde80f" hs_bindgen_b6168be67cbde80f_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_close@
hs_bindgen_b6168be67cbde80f ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_b6168be67cbde80f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b6168be67cbde80f_base (BG.toFFIType x0))
{-| Closes the appender by flushing all intermediate states and closing it for further appends. If flushing the data triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError. Call duckdb_appender_error_data to obtain the error data followed by duckdb_appender_destroy to destroy the invalidated appender.
history:
* stable: v0.2.5
[__@appender@__]: The appender to flush and close.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_close@
__defined at:__ @duckdb.h 2290:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_close ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to flush and close.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_close = hs_bindgen_b6168be67cbde80f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_destroy@
foreign import ccall safe "hs_bindgen_bedb9203156b99bc" hs_bindgen_bedb9203156b99bc_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_destroy@
hs_bindgen_bedb9203156b99bc ::
BG.Ptr DuckDBAppender
-> IO DuckDBState
hs_bindgen_bedb9203156b99bc =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_bedb9203156b99bc_base (BG.toFFIType x0))
{-| Closes the appender by flushing all intermediate states to the table and destroying it. By destroying it, this function de-allocates all memory associated with the appender. If flushing the data triggers a constraint violation, then all data is invalidated, and this function returns DuckDBError. Due to the destruction of the appender, it is no longer possible to obtain the specific error message with duckdb_appender_error. Therefore, call duckdb_appender_close before destroying the appender, if you need insights into the specific error.
history:
* stable: v0.2.5
[__@appender@__]: The appender to flush, close and destroy.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_destroy@
__defined at:__ @duckdb.h 2307:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_destroy ::
BG.Ptr DuckDBAppender
{- ^
[__@appender@__]: The appender to flush, close and destroy.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_destroy =
hs_bindgen_bedb9203156b99bc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_add_column@
foreign import ccall safe "hs_bindgen_fe61378b4ecf148e" hs_bindgen_fe61378b4ecf148e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_add_column@
hs_bindgen_fe61378b4ecf148e ::
DuckDBAppender
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBState
hs_bindgen_fe61378b4ecf148e =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_fe61378b4ecf148e_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Appends a column to the active column list of the appender. Immediately flushes all previous data.
The active column list specifies all columns that are expected when flushing the data. Any non-active columns are filled with their default values, or NULL.
history:
* stable: v1.2.0
[__@appender@__]: The appender to add the column to.
[__@name@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_add_column@
__defined at:__ @duckdb.h 2324:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_add_column ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to add the column to.
__C declaration:__ @appender@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]:
__C declaration:__ @name@
-}
-> IO DuckDBState
c_duckdb_appender_add_column =
hs_bindgen_fe61378b4ecf148e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_clear_columns@
foreign import ccall safe "hs_bindgen_0ceb19489a5e573e" hs_bindgen_0ceb19489a5e573e_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_clear_columns@
hs_bindgen_0ceb19489a5e573e ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_0ceb19489a5e573e =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0ceb19489a5e573e_base (BG.toFFIType x0))
{-| Removes all columns from the active column list of the appender, resetting the appender to treat all columns as active. Immediately flushes all previous data.
history:
* stable: v1.2.0
[__@appender@__]: The appender to clear the columns from.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_clear_columns@
__defined at:__ @duckdb.h 2338:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_clear_columns ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to clear the columns from.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_clear_columns =
hs_bindgen_0ceb19489a5e573e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_begin_row@
foreign import ccall safe "hs_bindgen_a6075e071c58b503" hs_bindgen_a6075e071c58b503_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_begin_row@
hs_bindgen_a6075e071c58b503 ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_a6075e071c58b503 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a6075e071c58b503_base (BG.toFFIType x0))
{-| A nop function, provided for backwards compatibility reasons. Does nothing. Only @'c_duckdb_appender_end_row'@ is required.
history:
* stable: v0.2.5
[__@appender@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_begin_row@
__defined at:__ @duckdb.h 2352:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_begin_row ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_begin_row =
hs_bindgen_a6075e071c58b503
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_end_row@
foreign import ccall safe "hs_bindgen_3a0d96e4d1abcd7f" hs_bindgen_3a0d96e4d1abcd7f_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_end_row@
hs_bindgen_3a0d96e4d1abcd7f ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_3a0d96e4d1abcd7f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3a0d96e4d1abcd7f_base (BG.toFFIType x0))
{-| Finish the current row of appends. After end_row is called, the next row can be appended.
history:
* stable: v0.2.5
[__@appender@__]: The appender.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_appender_end_row@
__defined at:__ @duckdb.h 2365:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_end_row ::
DuckDBAppender
{- ^
[__@appender@__]: The appender.
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_appender_end_row =
hs_bindgen_3a0d96e4d1abcd7f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_default@
foreign import ccall safe "hs_bindgen_d604ee9d99caa6cb" hs_bindgen_d604ee9d99caa6cb_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_default@
hs_bindgen_d604ee9d99caa6cb ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_d604ee9d99caa6cb =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_d604ee9d99caa6cb_base (BG.toFFIType x0))
{-| Append a DEFAULT value (NULL if DEFAULT not available for column) to the appender.
history:
* stable: v1.1.0
[__@appender@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_default@
__defined at:__ @duckdb.h 2378:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_default ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_append_default = hs_bindgen_d604ee9d99caa6cb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_default_to_chunk@
foreign import ccall safe "hs_bindgen_67cbddd0427ae7f8" hs_bindgen_67cbddd0427ae7f8_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_default_to_chunk@
hs_bindgen_67cbddd0427ae7f8 ::
DuckDBAppender
-> DuckDBDataChunk
-> DuckDBIdx
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_67cbddd0427ae7f8 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_67cbddd0427ae7f8_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Append a DEFAULT value, at the specified row and column, (NULL if DEFAULT not available for column) to the chunk created from the specified appender. The default value of the column must be a constant value. Non-deterministic expressions like nextval(\'seq\') or random() are not supported.
history:
* unstable: v1.2.0
* stable: v1.5.6
[__@appender@__]: The appender to get the default value from.
[__@chunk@__]: The data chunk to append the default value to.
[__@col@__]: The chunk column index to append the default value to.
[__@row@__]: The chunk row index to append the default value to.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_default_to_chunk@
__defined at:__ @duckdb.h 2397:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_default_to_chunk ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to get the default value from.
__C declaration:__ @appender@
-}
-> DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to append the default value to.
__C declaration:__ @chunk@
-}
-> DuckDBIdx
{- ^
[__@col@__]: The chunk column index to append the default value to.
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The chunk row index to append the default value to.
__C declaration:__ @row@
-}
-> IO DuckDBState
c_duckdb_append_default_to_chunk =
hs_bindgen_67cbddd0427ae7f8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_bool@
foreign import ccall safe "hs_bindgen_d0d8ffd6be52ff07" hs_bindgen_d0d8ffd6be52ff07_base ::
BG.Ptr BG.Void
-> BG.CBool
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_bool@
hs_bindgen_d0d8ffd6be52ff07 ::
DuckDBAppender
-> BG.CBool
-> IO DuckDBState
hs_bindgen_d0d8ffd6be52ff07 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_d0d8ffd6be52ff07_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a bool value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_bool@
__defined at:__ @duckdb.h 2412:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_bool ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> BG.CBool
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_bool = hs_bindgen_d0d8ffd6be52ff07
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int8@
foreign import ccall safe "hs_bindgen_c51b55c873ce1e28" hs_bindgen_c51b55c873ce1e28_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int8
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int8@
hs_bindgen_c51b55c873ce1e28 ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Int8
-> IO DuckDBState
hs_bindgen_c51b55c873ce1e28 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_c51b55c873ce1e28_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append an int8_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_int8@
__defined at:__ @duckdb.h 2426:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_int8 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Int8
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_int8 = hs_bindgen_c51b55c873ce1e28
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int16@
foreign import ccall safe "hs_bindgen_0ddaa75df3b9f58e" hs_bindgen_0ddaa75df3b9f58e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int16
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int16@
hs_bindgen_0ddaa75df3b9f58e ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Int16
-> IO DuckDBState
hs_bindgen_0ddaa75df3b9f58e =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_0ddaa75df3b9f58e_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append an int16_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_int16@
__defined at:__ @duckdb.h 2440:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_int16 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Int16
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_int16 = hs_bindgen_0ddaa75df3b9f58e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int32@
foreign import ccall safe "hs_bindgen_6b7cb661bd8ea7df" hs_bindgen_6b7cb661bd8ea7df_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int32@
hs_bindgen_6b7cb661bd8ea7df ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Int32
-> IO DuckDBState
hs_bindgen_6b7cb661bd8ea7df =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6b7cb661bd8ea7df_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append an int32_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_int32@
__defined at:__ @duckdb.h 2454:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_int32 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Int32
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_int32 = hs_bindgen_6b7cb661bd8ea7df
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int64@
foreign import ccall safe "hs_bindgen_6cff86036743c55e" hs_bindgen_6cff86036743c55e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_int64@
hs_bindgen_6cff86036743c55e ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Int64
-> IO DuckDBState
hs_bindgen_6cff86036743c55e =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6cff86036743c55e_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append an int64_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_int64@
__defined at:__ @duckdb.h 2468:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_int64 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_int64 = hs_bindgen_6cff86036743c55e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_hugeint@
foreign import ccall safe "hs_bindgen_765a56fbbd07717a" hs_bindgen_765a56fbbd07717a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_hugeint@
hs_bindgen_765a56fbbd07717a ::
DuckDBAppender
-> BG.Ptr DuckDBHugeInt
-> IO DuckDBState
hs_bindgen_765a56fbbd07717a =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_765a56fbbd07717a_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBHugeInt' value to the appender.
history:
* stable: v0.2.9
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_hugeint@
__defined at:__ @duckdb.h 2482:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_hugeint ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBHugeInt
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_hugeint =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_765a56fbbd07717a appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint8@
foreign import ccall safe "hs_bindgen_b214b9f8045936c1" hs_bindgen_b214b9f8045936c1_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word8
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint8@
hs_bindgen_b214b9f8045936c1 ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Word8
-> IO DuckDBState
hs_bindgen_b214b9f8045936c1 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_b214b9f8045936c1_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a uint8_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_uint8@
__defined at:__ @duckdb.h 2496:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_uint8 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Word8
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_uint8 = hs_bindgen_b214b9f8045936c1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint16@
foreign import ccall safe "hs_bindgen_e07db5d03eb1dd02" hs_bindgen_e07db5d03eb1dd02_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word16
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint16@
hs_bindgen_e07db5d03eb1dd02 ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Word16
-> IO DuckDBState
hs_bindgen_e07db5d03eb1dd02 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_e07db5d03eb1dd02_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a uint16_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_uint16@
__defined at:__ @duckdb.h 2510:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_uint16 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Word16
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_uint16 = hs_bindgen_e07db5d03eb1dd02
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint32@
foreign import ccall safe "hs_bindgen_4b46ba5a5f4f7522" hs_bindgen_4b46ba5a5f4f7522_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint32@
hs_bindgen_4b46ba5a5f4f7522 ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Word32
-> IO DuckDBState
hs_bindgen_4b46ba5a5f4f7522 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_4b46ba5a5f4f7522_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a uint32_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_uint32@
__defined at:__ @duckdb.h 2524:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_uint32 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Word32
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_uint32 = hs_bindgen_4b46ba5a5f4f7522
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint64@
foreign import ccall safe "hs_bindgen_25fbe913db29848b" hs_bindgen_25fbe913db29848b_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uint64@
hs_bindgen_25fbe913db29848b ::
DuckDBAppender
-> HsBindgen.Runtime.LibC.Word64
-> IO DuckDBState
hs_bindgen_25fbe913db29848b =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_25fbe913db29848b_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a uint64_t value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_uint64@
__defined at:__ @duckdb.h 2538:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_uint64 ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> HsBindgen.Runtime.LibC.Word64
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_uint64 = hs_bindgen_25fbe913db29848b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uhugeint@
foreign import ccall safe "hs_bindgen_62de5fc4f18c28c0" hs_bindgen_62de5fc4f18c28c0_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_uhugeint@
hs_bindgen_62de5fc4f18c28c0 ::
DuckDBAppender
-> BG.Ptr DuckDBUHugeInt
-> IO DuckDBState
hs_bindgen_62de5fc4f18c28c0 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_62de5fc4f18c28c0_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBUHugeInt' value to the appender.
history:
* stable: v0.10.0
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_uhugeint@
__defined at:__ @duckdb.h 2552:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_uhugeint ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBUHugeInt
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_uhugeint =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_62de5fc4f18c28c0 appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_float@
foreign import ccall safe "hs_bindgen_96447ede7e23ec34" hs_bindgen_96447ede7e23ec34_base ::
BG.Ptr BG.Void
-> BG.CFloat
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_float@
hs_bindgen_96447ede7e23ec34 ::
DuckDBAppender
-> BG.CFloat
-> IO DuckDBState
hs_bindgen_96447ede7e23ec34 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_96447ede7e23ec34_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a float value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_float@
__defined at:__ @duckdb.h 2566:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_float ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> BG.CFloat
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_float = hs_bindgen_96447ede7e23ec34
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_double@
foreign import ccall safe "hs_bindgen_7c28467da6574418" hs_bindgen_7c28467da6574418_base ::
BG.Ptr BG.Void
-> BG.CDouble
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_double@
hs_bindgen_7c28467da6574418 ::
DuckDBAppender
-> BG.CDouble
-> IO DuckDBState
hs_bindgen_7c28467da6574418 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_7c28467da6574418_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a double value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_double@
__defined at:__ @duckdb.h 2580:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_double ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> BG.CDouble
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_double = hs_bindgen_7c28467da6574418
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_date@
foreign import ccall safe "hs_bindgen_9d8dbbd78f188e17" hs_bindgen_9d8dbbd78f188e17_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_date@
hs_bindgen_9d8dbbd78f188e17 ::
DuckDBAppender
-> BG.Ptr DuckDBDate
-> IO DuckDBState
hs_bindgen_9d8dbbd78f188e17 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_9d8dbbd78f188e17_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBDate' value to the appender.
history:
* stable: v0.2.9
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_date@
__defined at:__ @duckdb.h 2594:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_date ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBDate
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_date =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_9d8dbbd78f188e17 appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_time@
foreign import ccall safe "hs_bindgen_2ce7a0f0da7fd624" hs_bindgen_2ce7a0f0da7fd624_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_time@
hs_bindgen_2ce7a0f0da7fd624 ::
DuckDBAppender
-> BG.Ptr DuckDBTime
-> IO DuckDBState
hs_bindgen_2ce7a0f0da7fd624 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_2ce7a0f0da7fd624_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBTime' value to the appender.
history:
* stable: v0.2.9
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_time@
__defined at:__ @duckdb.h 2608:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_time ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBTime
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_time =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_2ce7a0f0da7fd624 appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_timestamp@
foreign import ccall safe "hs_bindgen_7a4497e32900cf81" hs_bindgen_7a4497e32900cf81_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_timestamp@
hs_bindgen_7a4497e32900cf81 ::
DuckDBAppender
-> BG.Ptr DuckDBTimestamp
-> IO DuckDBState
hs_bindgen_7a4497e32900cf81 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_7a4497e32900cf81_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBTimestamp' value to the appender.
history:
* stable: v0.2.9
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_timestamp@
__defined at:__ @duckdb.h 2622:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_timestamp ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBTimestamp
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_timestamp =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_7a4497e32900cf81 appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_interval@
foreign import ccall safe "hs_bindgen_6c1faa62ed1e4792" hs_bindgen_6c1faa62ed1e4792_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_interval@
hs_bindgen_6c1faa62ed1e4792 ::
DuckDBAppender
-> BG.Ptr DuckDBInterval
-> IO DuckDBState
hs_bindgen_6c1faa62ed1e4792 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6c1faa62ed1e4792_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBInterval' value to the appender.
history:
* stable: v0.2.9
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_interval@
__defined at:__ @duckdb.h 2636:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_interval ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBInterval
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_interval =
\appender0 ->
\value1 ->
BG.with value1 (\value2 ->
hs_bindgen_6c1faa62ed1e4792 appender0 value2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_varchar@
foreign import ccall safe "hs_bindgen_e5225654463f5192" hs_bindgen_e5225654463f5192_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_varchar@
hs_bindgen_e5225654463f5192 ::
DuckDBAppender
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBState
hs_bindgen_e5225654463f5192 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_e5225654463f5192_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Append a varchar value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_varchar@
__defined at:__ @duckdb.h 2650:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_varchar ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_append_varchar = hs_bindgen_e5225654463f5192
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_varchar_length@
foreign import ccall safe "hs_bindgen_a8ac491a9e08a58f" hs_bindgen_a8ac491a9e08a58f_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_varchar_length@
hs_bindgen_a8ac491a9e08a58f ::
DuckDBAppender
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_a8ac491a9e08a58f =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_a8ac491a9e08a58f_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Append a varchar value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@val@__]:
[__@length@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_varchar_length@
__defined at:__ @duckdb.h 2665:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_varchar_length ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> DuckDBIdx
{- ^
[__@length@__]:
__C declaration:__ @length@
-}
-> IO DuckDBState
c_duckdb_append_varchar_length =
hs_bindgen_a8ac491a9e08a58f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_blob@
foreign import ccall safe "hs_bindgen_5fdc599752499241" hs_bindgen_5fdc599752499241_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_blob@
hs_bindgen_5fdc599752499241 ::
DuckDBAppender
-> PtrConst.PtrConst BG.Void
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_5fdc599752499241 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_5fdc599752499241_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Append a blob value to the appender.
history:
* stable: v0.2.5
[__@appender@__]:
[__@data@__]:
[__@length@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_blob@
__defined at:__ @duckdb.h 2680:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_blob ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> PtrConst.PtrConst BG.Void
{- ^
[__@data@__]:
__C declaration:__ @data@
-}
-> DuckDBIdx
{- ^
[__@length@__]:
__C declaration:__ @length@
-}
-> IO DuckDBState
c_duckdb_append_blob = hs_bindgen_5fdc599752499241
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_null@
foreign import ccall safe "hs_bindgen_51084ea4cd371420" hs_bindgen_51084ea4cd371420_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_null@
hs_bindgen_51084ea4cd371420 ::
DuckDBAppender
-> IO DuckDBState
hs_bindgen_51084ea4cd371420 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_51084ea4cd371420_base (BG.toFFIType x0))
{-| Append a NULL value to the appender (of any type).
history:
* stable: v0.2.5
[__@appender@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_null@
__defined at:__ @duckdb.h 2693:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_null ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> IO DuckDBState
c_duckdb_append_null = hs_bindgen_51084ea4cd371420
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_value@
foreign import ccall safe "hs_bindgen_25c7249abd4ef222" hs_bindgen_25c7249abd4ef222_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_value@
hs_bindgen_25c7249abd4ef222 ::
DuckDBAppender
-> DuckDBValue
-> IO DuckDBState
hs_bindgen_25c7249abd4ef222 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_25c7249abd4ef222_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Append a t'DuckDBValue' to the appender.
history:
* stable: v1.2.0
[__@appender@__]:
[__@value@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_value@
__defined at:__ @duckdb.h 2707:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_value ::
DuckDBAppender
{- ^
[__@appender@__]:
__C declaration:__ @appender@
-}
-> DuckDBValue
{- ^
[__@value@__]:
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_append_value = hs_bindgen_25c7249abd4ef222
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_data_chunk@
foreign import ccall safe "hs_bindgen_7e1746e78ac83f6e" hs_bindgen_7e1746e78ac83f6e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_append_data_chunk@
hs_bindgen_7e1746e78ac83f6e ::
DuckDBAppender
-> DuckDBDataChunk
-> IO DuckDBState
hs_bindgen_7e1746e78ac83f6e =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_7e1746e78ac83f6e_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Appends a pre-filled data chunk to the specified appender. Attempts casting, if the data chunk types do not match the active appender types.
history:
* stable: v0.3.3
[__@appender@__]: The appender to append to.
[__@chunk@__]: The data chunk to append.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_append_data_chunk@
__defined at:__ @duckdb.h 2722:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_append_data_chunk ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to append to.
__C declaration:__ @appender@
-}
-> DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to append.
__C declaration:__ @chunk@
-}
-> IO DuckDBState
c_duckdb_append_data_chunk =
hs_bindgen_7e1746e78ac83f6e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_error@
foreign import ccall safe "hs_bindgen_96a3877ac37f908a" hs_bindgen_96a3877ac37f908a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_appender_error@
hs_bindgen_96a3877ac37f908a ::
DuckDBAppender
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_96a3877ac37f908a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_96a3877ac37f908a_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release. Use duckdb_appender_error_data instead.
Returns the error message associated with the appender. If the appender has no error message, this returns @nullptr@ instead.
The error message should not be freed. It will be de-allocated when @'c_duckdb_appender_destroy'@ is called.
history:
* stable: v0.2.9
* deprecated: v1.4.0
[__@appender@__]: The appender to get the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_appender_error@
__defined at:__ @duckdb.h 2742:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_appender_error ::
DuckDBAppender
{- ^
[__@appender@__]: The appender to get the error from.
__C declaration:__ @appender@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_appender_error = hs_bindgen_96a3877ac37f908a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_arrow_schema@
foreign import ccall safe "hs_bindgen_749f8639f0f92967" hs_bindgen_749f8639f0f92967_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_to_arrow_schema@
hs_bindgen_749f8639f0f92967 ::
DuckDBArrowOptions
-> BG.Ptr DuckDBLogicalType
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> DuckDBIdx
-> BG.Ptr ArrowSchema
-> IO DuckDBErrorData
hs_bindgen_749f8639f0f92967 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_749f8639f0f92967_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| Transforms a DuckDB Schema into an Arrow Schema
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@arrow_options@__]: The Arrow settings used to produce arrow.
[__@types@__]: The DuckDB logical types for each column in the schema.
[__@names@__]: The names for each column in the schema.
[__@column_count@__]: The number of columns that exist in the schema.
[__@out_schema@__]: The resulting arrow schema. Must be destroyed with @out_schema->release(out_schema)@ .
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_to_arrow_schema@
__defined at:__ @duckdb.h 2778:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_to_arrow_schema ::
DuckDBArrowOptions
{- ^
[__@arrow_options@__]: The Arrow settings used to produce arrow.
__C declaration:__ @arrow_options@
-}
-> BG.Ptr DuckDBLogicalType
{- ^
[__@types@__]: The DuckDB logical types for each column in the schema.
__C declaration:__ @types@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@names@__]: The names for each column in the schema.
__C declaration:__ @names@
-}
-> DuckDBIdx
{- ^
[__@column_count@__]: The number of columns that exist in the schema.
__C declaration:__ @column_count@
-}
-> BG.Ptr ArrowSchema
{- ^
[__@out_schema@__]: The resulting arrow schema. Must be destroyed with @out_schema->release(out_schema)@ .
__C declaration:__ @out_schema@
-}
-> IO DuckDBErrorData
c_duckdb_to_arrow_schema =
hs_bindgen_749f8639f0f92967
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_to_arrow@
foreign import ccall safe "hs_bindgen_3c0a13f88804c747" hs_bindgen_3c0a13f88804c747_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_to_arrow@
hs_bindgen_3c0a13f88804c747 ::
DuckDBArrowOptions
-> DuckDBDataChunk
-> BG.Ptr ArrowArray
-> IO DuckDBErrorData
hs_bindgen_3c0a13f88804c747 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_3c0a13f88804c747_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Transforms a DuckDB data chunk into an Arrow array.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@arrow_options@__]: The Arrow settings used to produce arrow.
[__@chunk@__]: The DuckDB data chunk to convert.
[__@out_arrow_array@__]: The output Arrow structure that will hold the converted data. Must be released with @out_arrow_array->release(out_arrow_array)@
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_data_chunk_to_arrow@
__defined at:__ @duckdb.h 2797:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_to_arrow ::
DuckDBArrowOptions
{- ^
[__@arrow_options@__]: The Arrow settings used to produce arrow.
__C declaration:__ @arrow_options@
-}
-> DuckDBDataChunk
{- ^
[__@chunk@__]: The DuckDB data chunk to convert.
__C declaration:__ @chunk@
-}
-> BG.Ptr ArrowArray
{- ^
[__@out_arrow_array@__]: The output Arrow structure that will hold the converted data. Must be released with @out_arrow_array->release(out_arrow_array)@
__C declaration:__ @out_arrow_array@
-}
-> IO DuckDBErrorData
c_duckdb_data_chunk_to_arrow =
hs_bindgen_3c0a13f88804c747
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_schema_from_arrow@
foreign import ccall safe "hs_bindgen_57a0f20883adc249" hs_bindgen_57a0f20883adc249_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_schema_from_arrow@
hs_bindgen_57a0f20883adc249 ::
DuckDBConnection
-> BG.Ptr ArrowSchema
-> BG.Ptr DuckDBArrowConvertedSchema
-> IO DuckDBErrorData
hs_bindgen_57a0f20883adc249 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_57a0f20883adc249_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Transforms an Arrow Schema into a DuckDB Schema.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@connection@__]: The connection to get the transformation settings from.
[__@schema@__]: The input Arrow schema. Must be released with @schema->release(schema)@ .
[__@out_types@__]: The Arrow converted schema with extra information about the arrow types. Must be destroyed with @'c_duckdb_destroy_arrow_converted_schema'@ .
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_schema_from_arrow@
__defined at:__ @duckdb.h 2815:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_schema_from_arrow ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to get the transformation settings from.
__C declaration:__ @connection@
-}
-> BG.Ptr ArrowSchema
{- ^
[__@schema@__]: The input Arrow schema. Must be released with @schema->release(schema)@ .
__C declaration:__ @schema@
-}
-> BG.Ptr DuckDBArrowConvertedSchema
{- ^
[__@out_types@__]: The Arrow converted schema with extra information about the arrow types. Must be destroyed with @'c_duckdb_destroy_arrow_converted_schema'@ .
__C declaration:__ @out_types@
-}
-> IO DuckDBErrorData
c_duckdb_schema_from_arrow =
hs_bindgen_57a0f20883adc249
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_from_arrow@
foreign import ccall safe "hs_bindgen_74a4bd664af946a0" hs_bindgen_74a4bd664af946a0_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_from_arrow@
hs_bindgen_74a4bd664af946a0 ::
DuckDBConnection
-> BG.Ptr ArrowArray
-> DuckDBArrowConvertedSchema
-> BG.Ptr DuckDBDataChunk
-> IO DuckDBErrorData
hs_bindgen_74a4bd664af946a0 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_74a4bd664af946a0_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Transforms an Arrow array into a DuckDB data chunk. The data chunk will retain ownership of the underlying Arrow data.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@connection@__]: The connection to get the transformation settings from.
[__@arrow_array@__]: The input Arrow array. Data ownership is passed on to DuckDB\'s DataChunk, the underlying object does not need to be released and won\'t have ownership of the data.
[__@converted_schema@__]: The Arrow converted schema with extra information about the arrow types.
[__@out_chunk@__]: The resulting DuckDB data chunk. Must be destroyed by duckdb_destroy_data_chunk.
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_data_chunk_from_arrow@
__defined at:__ @duckdb.h 2835:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_from_arrow ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to get the transformation settings from.
__C declaration:__ @connection@
-}
-> BG.Ptr ArrowArray
{- ^
[__@arrow_array@__]: The input Arrow array. Data ownership is passed on to DuckDB\'s DataChunk, the underlying object does not need to be released and won\'t have ownership of the data.
__C declaration:__ @arrow_array@
-}
-> DuckDBArrowConvertedSchema
{- ^
[__@converted_schema@__]: The Arrow converted schema with extra information about the arrow types.
__C declaration:__ @converted_schema@
-}
-> BG.Ptr DuckDBDataChunk
{- ^
[__@out_chunk@__]: The resulting DuckDB data chunk. Must be destroyed by duckdb_destroy_data_chunk.
__C declaration:__ @out_chunk@
-}
-> IO DuckDBErrorData
c_duckdb_data_chunk_from_arrow =
hs_bindgen_74a4bd664af946a0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_converted_schema@
foreign import ccall safe "hs_bindgen_d8f15a49df8ec50d" hs_bindgen_d8f15a49df8ec50d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_converted_schema@
hs_bindgen_d8f15a49df8ec50d ::
BG.Ptr DuckDBArrowConvertedSchema
-> IO ()
hs_bindgen_d8f15a49df8ec50d =
\x0 ->
hs_bindgen_d8f15a49df8ec50d_base (BG.toFFIType x0)
{-| Destroys the arrow converted schema and de-allocates all memory allocated for that arrow converted schema.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@arrow_converted_schema@__]: The arrow converted schema to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_arrow_converted_schema@
__defined at:__ @duckdb.h 2852:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_arrow_converted_schema ::
BG.Ptr DuckDBArrowConvertedSchema
{- ^
[__@arrow_converted_schema@__]: The arrow converted schema to destroy.
__C declaration:__ @arrow_converted_schema@
-}
-> IO ()
c_duckdb_destroy_arrow_converted_schema =
hs_bindgen_d8f15a49df8ec50d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow@
foreign import ccall safe "hs_bindgen_f542464e35ec578c" hs_bindgen_f542464e35ec578c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow@
hs_bindgen_f542464e35ec578c ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBArrow
-> IO DuckDBState
hs_bindgen_f542464e35ec578c =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_f542464e35ec578c_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Executes a SQL query within a connection and stores the full (materialized) result in an arrow structure. If the query fails to execute, DuckDBError is returned and the error message can be retrieved by calling @'c_duckdb_query_arrow_error'@ .
Note that after running @'c_duckdb_query_arrow'@ , @'c_duckdb_destroy_arrow'@ must be called on the result object even if the query fails, otherwise the error stored within the result will not be freed correctly.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@connection@__]: The connection to perform the query in.
[__@query@__]: The SQL query to run.
[__@out_result@__]: The query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_query_arrow@
__defined at:__ @duckdb.h 2875:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_query_arrow ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to perform the query in.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The SQL query to run.
__C declaration:__ @query@
-}
-> BG.Ptr DuckDBArrow
{- ^
[__@out_result@__]: The query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_query_arrow = hs_bindgen_f542464e35ec578c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_schema@
foreign import ccall safe "hs_bindgen_c159419cb8a6a381" hs_bindgen_c159419cb8a6a381_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_schema@
hs_bindgen_c159419cb8a6a381 ::
DuckDBArrow
-> BG.Ptr DuckDBArrowSchema
-> IO DuckDBState
hs_bindgen_c159419cb8a6a381 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_c159419cb8a6a381_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Fetch the internal arrow schema from the arrow result. Remember to call release on the respective t'ArrowSchema' object.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result to fetch the schema from.
[__@out_schema@__]: The output schema.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_query_arrow_schema@
__defined at:__ @duckdb.h 2892:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_query_arrow_schema ::
DuckDBArrow
{- ^
[__@result@__]: The result to fetch the schema from.
__C declaration:__ @result@
-}
-> BG.Ptr DuckDBArrowSchema
{- ^
[__@out_schema@__]: The output schema.
__C declaration:__ @out_schema@
-}
-> IO DuckDBState
c_duckdb_query_arrow_schema =
hs_bindgen_c159419cb8a6a381
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_arrow_schema@
foreign import ccall safe "hs_bindgen_ae5a517fcc0088ea" hs_bindgen_ae5a517fcc0088ea_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_arrow_schema@
hs_bindgen_ae5a517fcc0088ea ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBArrowSchema
-> IO DuckDBState
hs_bindgen_ae5a517fcc0088ea =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ae5a517fcc0088ea_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Fetch the internal arrow schema from the prepared statement. Remember to call release on the respective t'ArrowSchema' object.
history:
* stable: v0.9.0
* deprecated: v1.0.0
[__@prepared@__]: The prepared statement to fetch the schema from.
[__@out_schema@__]: The output schema.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_prepared_arrow_schema@
__defined at:__ @duckdb.h 2910:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_arrow_schema ::
DuckDBPreparedStatement
{- ^
[__@prepared@__]: The prepared statement to fetch the schema from.
__C declaration:__ @prepared@
-}
-> BG.Ptr DuckDBArrowSchema
{- ^
[__@out_schema@__]: The output schema.
__C declaration:__ @out_schema@
-}
-> IO DuckDBState
c_duckdb_prepared_arrow_schema =
hs_bindgen_ae5a517fcc0088ea
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_arrow_array@
foreign import ccall safe "hs_bindgen_697c128584b3a452" hs_bindgen_697c128584b3a452_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_arrow_array@
hs_bindgen_697c128584b3a452 ::
BG.Ptr DuckDBResult
-> DuckDBDataChunk
-> BG.Ptr DuckDBArrowArray
-> IO ()
hs_bindgen_697c128584b3a452 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_697c128584b3a452_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Convert a data chunk into an arrow struct array. Remember to call release on the respective t'ArrowArray' object.
history:
* stable: v0.10.0
* deprecated: v1.0.0
[__@result@__]: The result object the data chunk have been fetched from.
[__@chunk@__]: The data chunk to convert.
[__@out_array@__]: The output array.
__Returns:__ void
__C declaration:__ @duckdb_result_arrow_array@
__defined at:__ @duckdb.h 2929:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_arrow_array ::
DuckDBResult
{- ^
[__@result@__]: The result object the data chunk have been fetched from.
__C declaration:__ @result@
-}
-> DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to convert.
__C declaration:__ @chunk@
-}
-> BG.Ptr DuckDBArrowArray
{- ^
[__@out_array@__]: The output array.
__C declaration:__ @out_array@
-}
-> IO ()
c_duckdb_result_arrow_array =
\result0 ->
\chunk1 ->
\out_array2 ->
BG.with result0 (\result3 ->
hs_bindgen_697c128584b3a452 result3 chunk1 out_array2)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_array@
foreign import ccall safe "hs_bindgen_33505698f1fd3536" hs_bindgen_33505698f1fd3536_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_array@
hs_bindgen_33505698f1fd3536 ::
DuckDBArrow
-> BG.Ptr DuckDBArrowArray
-> IO DuckDBState
hs_bindgen_33505698f1fd3536 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_33505698f1fd3536_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Fetch an internal arrow struct array from the arrow result. Remember to call release on the respective t'ArrowArray' object.
This function can be called multiple time to get next chunks, which will free the previous out_array. So consume the out_array before calling this function again.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result to fetch the array from.
[__@out_array@__]: The output array.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_query_arrow_array@
__defined at:__ @duckdb.h 2951:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_query_arrow_array ::
DuckDBArrow
{- ^
[__@result@__]: The result to fetch the array from.
__C declaration:__ @result@
-}
-> BG.Ptr DuckDBArrowArray
{- ^
[__@out_array@__]: The output array.
__C declaration:__ @out_array@
-}
-> IO DuckDBState
c_duckdb_query_arrow_array =
hs_bindgen_33505698f1fd3536
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_column_count@
foreign import ccall safe "hs_bindgen_35ad4e7c492cdfa8" hs_bindgen_35ad4e7c492cdfa8_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_column_count@
hs_bindgen_35ad4e7c492cdfa8 ::
DuckDBArrow
-> IO DuckDBIdx
hs_bindgen_35ad4e7c492cdfa8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_35ad4e7c492cdfa8_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the number of columns present in the arrow result object.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_arrow_column_count@
__defined at:__ @duckdb.h 2967:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_arrow_column_count ::
DuckDBArrow
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_arrow_column_count =
hs_bindgen_35ad4e7c492cdfa8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_row_count@
foreign import ccall safe "hs_bindgen_563d608c32762302" hs_bindgen_563d608c32762302_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_row_count@
hs_bindgen_563d608c32762302 ::
DuckDBArrow
-> IO DuckDBIdx
hs_bindgen_563d608c32762302 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_563d608c32762302_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the number of rows present in the arrow result object.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_arrow_row_count@
__defined at:__ @duckdb.h 2983:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_arrow_row_count ::
DuckDBArrow
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_arrow_row_count =
hs_bindgen_563d608c32762302
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_rows_changed@
foreign import ccall safe "hs_bindgen_6eb2e5dcab2741c1" hs_bindgen_6eb2e5dcab2741c1_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_rows_changed@
hs_bindgen_6eb2e5dcab2741c1 ::
DuckDBArrow
-> IO DuckDBIdx
hs_bindgen_6eb2e5dcab2741c1 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6eb2e5dcab2741c1_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the number of rows changed by the query stored in the arrow result. This is relevant only for INSERT/UPDATE/DELETE queries. For other queries the rows_changed will be 0.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_arrow_rows_changed@
__defined at:__ @duckdb.h 3000:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_arrow_rows_changed ::
DuckDBArrow
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_arrow_rows_changed =
hs_bindgen_6eb2e5dcab2741c1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_error@
foreign import ccall safe "hs_bindgen_ab8fa55204e6c826" hs_bindgen_ab8fa55204e6c826_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_arrow_error@
hs_bindgen_ab8fa55204e6c826 ::
DuckDBArrow
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_ab8fa55204e6c826 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ab8fa55204e6c826_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the error message contained within the result. The error is only set if @'c_duckdb_query_arrow'@ returns @@DuckDBError@@ .
The error message should not be freed. It will be de-allocated when @'c_duckdb_destroy_arrow'@ is called.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result object to fetch the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_query_arrow_error@
__defined at:__ @duckdb.h 3019:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_query_arrow_error ::
DuckDBArrow
{- ^
[__@result@__]: The result object to fetch the error from.
__C declaration:__ @result@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_query_arrow_error =
hs_bindgen_ab8fa55204e6c826
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow@
foreign import ccall safe "hs_bindgen_d2c9f57314f0dc2e" hs_bindgen_d2c9f57314f0dc2e_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow@
hs_bindgen_d2c9f57314f0dc2e ::
BG.Ptr DuckDBArrow
-> IO ()
hs_bindgen_d2c9f57314f0dc2e =
\x0 ->
hs_bindgen_d2c9f57314f0dc2e_base (BG.toFFIType x0)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Closes the result and de-allocates all memory allocated for the arrow result.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@result@__]: The result to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_arrow@
__defined at:__ @duckdb.h 3035:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_arrow ::
BG.Ptr DuckDBArrow
{- ^
[__@result@__]: The result to destroy.
__C declaration:__ @result@
-}
-> IO ()
c_duckdb_destroy_arrow = hs_bindgen_d2c9f57314f0dc2e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_stream@
foreign import ccall safe "hs_bindgen_ac7e0c2d2bccc4ca" hs_bindgen_ac7e0c2d2bccc4ca_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_stream@
hs_bindgen_ac7e0c2d2bccc4ca ::
BG.Ptr DuckDBArrowStream
-> IO ()
hs_bindgen_ac7e0c2d2bccc4ca =
\x0 ->
hs_bindgen_ac7e0c2d2bccc4ca_base (BG.toFFIType x0)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Releases the arrow array stream and de-allocates its memory.
history:
* stable: v0.10.0
* deprecated: v1.0.0
[__@stream_p@__]: The arrow array stream to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_arrow_stream@
__defined at:__ @duckdb.h 3051:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_arrow_stream ::
BG.Ptr DuckDBArrowStream
{- ^
[__@stream_p@__]: The arrow array stream to destroy.
__C declaration:__ @stream_p@
-}
-> IO ()
c_duckdb_destroy_arrow_stream =
hs_bindgen_ac7e0c2d2bccc4ca
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared_arrow@
foreign import ccall safe "hs_bindgen_6a9394320a0add34" hs_bindgen_6a9394320a0add34_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared_arrow@
hs_bindgen_6a9394320a0add34 ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBArrow
-> IO DuckDBState
hs_bindgen_6a9394320a0add34 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6a9394320a0add34_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Executes the prepared statement with the given bound parameters, and returns an arrow query result. Note that after running @'c_duckdb_execute_prepared_arrow'@ , @'c_duckdb_destroy_arrow'@ must be called on the result object.
history:
* stable: v0.2.8
* deprecated: v1.0.0
[__@prepared_statement@__]: The prepared statement to execute.
[__@out_result@__]: The query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_execute_prepared_arrow@
__defined at:__ @duckdb.h 3069:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_prepared_arrow ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to execute.
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBArrow
{- ^
[__@out_result@__]: The query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_execute_prepared_arrow =
hs_bindgen_6a9394320a0add34
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_scan@
foreign import ccall safe "hs_bindgen_23edfe0e6fb8b8cd" hs_bindgen_23edfe0e6fb8b8cd_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_scan@
hs_bindgen_23edfe0e6fb8b8cd ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> DuckDBArrowStream
-> IO DuckDBState
hs_bindgen_23edfe0e6fb8b8cd =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_23edfe0e6fb8b8cd_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Scans the Arrow stream and creates a view with the given name.
history:
* stable: v0.9.0
* deprecated: v1.0.0
[__@connection@__]: The connection on which to execute the scan.
[__@table_name@__]: Name of the temporary view to create.
[__@arrow@__]: Arrow stream wrapper.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_arrow_scan@
__defined at:__ @duckdb.h 3088:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_arrow_scan ::
DuckDBConnection
{- ^
[__@connection@__]: The connection on which to execute the scan.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table_name@__]: Name of the temporary view to create.
__C declaration:__ @table_name@
-}
-> DuckDBArrowStream
{- ^
[__@arrow@__]: Arrow stream wrapper.
__C declaration:__ @arrow@
-}
-> IO DuckDBState
c_duckdb_arrow_scan = hs_bindgen_23edfe0e6fb8b8cd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_array_scan@
foreign import ccall safe "hs_bindgen_595da99ffd284fe9" hs_bindgen_595da99ffd284fe9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_arrow_array_scan@
hs_bindgen_595da99ffd284fe9 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> DuckDBArrowSchema
-> DuckDBArrowArray
-> BG.Ptr DuckDBArrowStream
-> IO DuckDBState
hs_bindgen_595da99ffd284fe9 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_595da99ffd284fe9_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Scans the Arrow array and creates a view with the given name. Note that after running @'c_duckdb_arrow_array_scan'@ , @'c_duckdb_destroy_arrow_stream'@ must be called on the out stream.
history:
* stable: v0.9.0
* deprecated: v1.0.0
[__@connection@__]: The connection on which to execute the scan.
[__@table_name@__]: Name of the temporary view to create.
[__@arrow_schema@__]: Arrow schema wrapper.
[__@arrow_array@__]: Arrow array wrapper.
[__@out_stream@__]: Output array stream that wraps around the passed schema, for releasing/deleting once done.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_arrow_array_scan@
__defined at:__ @duckdb.h 3110:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_arrow_array_scan ::
DuckDBConnection
{- ^
[__@connection@__]: The connection on which to execute the scan.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table_name@__]: Name of the temporary view to create.
__C declaration:__ @table_name@
-}
-> DuckDBArrowSchema
{- ^
[__@arrow_schema@__]: Arrow schema wrapper.
__C declaration:__ @arrow_schema@
-}
-> DuckDBArrowArray
{- ^
[__@arrow_array@__]: Arrow array wrapper.
__C declaration:__ @arrow_array@
-}
-> BG.Ptr DuckDBArrowStream
{- ^
[__@out_stream@__]: Output array stream that wraps around the passed schema, for releasing/deleting once done.
__C declaration:__ @out_stream@
-}
-> IO DuckDBState
c_duckdb_arrow_array_scan =
hs_bindgen_595da99ffd284fe9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_cast_function@
foreign import ccall safe "hs_bindgen_530842d8bb740323" hs_bindgen_530842d8bb740323_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_cast_function@
hs_bindgen_530842d8bb740323 :: IO DuckDBCastFunction
hs_bindgen_530842d8bb740323 =
fmap BG.fromFFIType hs_bindgen_530842d8bb740323_base
{-| Creates a new cast function object.
history:
* stable: v1.1.0
__Returns:__ t'DuckDBCastFunction'
__C declaration:__ @duckdb_create_cast_function@
__defined at:__ @duckdb.h 3142:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_cast_function :: IO DuckDBCastFunction
c_duckdb_create_cast_function =
hs_bindgen_530842d8bb740323
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_source_type@
foreign import ccall safe "hs_bindgen_79a5b6e406da35c7" hs_bindgen_79a5b6e406da35c7_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_source_type@
hs_bindgen_79a5b6e406da35c7 ::
DuckDBCastFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_79a5b6e406da35c7 =
\x0 ->
\x1 ->
hs_bindgen_79a5b6e406da35c7_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the source type of the cast function.
history:
* stable: v1.1.0
[__@cast_function@__]: The cast function object.
[__@source_type@__]: The source type to set.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_source_type@
__defined at:__ @duckdb.h 3156:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_source_type ::
DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function object.
__C declaration:__ @cast_function@
-}
-> DuckDBLogicalType
{- ^
[__@source_type@__]: The source type to set.
__C declaration:__ @source_type@
-}
-> IO ()
c_duckdb_cast_function_set_source_type =
hs_bindgen_79a5b6e406da35c7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_target_type@
foreign import ccall safe "hs_bindgen_e10f2f2c59c28010" hs_bindgen_e10f2f2c59c28010_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_target_type@
hs_bindgen_e10f2f2c59c28010 ::
DuckDBCastFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_e10f2f2c59c28010 =
\x0 ->
\x1 ->
hs_bindgen_e10f2f2c59c28010_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the target type of the cast function.
history:
* stable: v1.1.0
[__@cast_function@__]: The cast function object.
[__@target_type@__]: The target type to set.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_target_type@
__defined at:__ @duckdb.h 3171:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_target_type ::
DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function object.
__C declaration:__ @cast_function@
-}
-> DuckDBLogicalType
{- ^
[__@target_type@__]: The target type to set.
__C declaration:__ @target_type@
-}
-> IO ()
c_duckdb_cast_function_set_target_type =
hs_bindgen_e10f2f2c59c28010
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_implicit_cast_cost@
foreign import ccall safe "hs_bindgen_b91f08fa8ca3a98a" hs_bindgen_b91f08fa8ca3a98a_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_implicit_cast_cost@
hs_bindgen_b91f08fa8ca3a98a ::
DuckDBCastFunction
-> HsBindgen.Runtime.LibC.Int64
-> IO ()
hs_bindgen_b91f08fa8ca3a98a =
\x0 ->
\x1 ->
hs_bindgen_b91f08fa8ca3a98a_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the "cost" of implicitly casting the source type to the target type using this function.
history:
* stable: v1.1.0
[__@cast_function@__]: The cast function object.
[__@cost@__]: The cost to set.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_implicit_cast_cost@
__defined at:__ @duckdb.h 3186:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_implicit_cast_cost ::
DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function object.
__C declaration:__ @cast_function@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@cost@__]: The cost to set.
__C declaration:__ @cost@
-}
-> IO ()
c_duckdb_cast_function_set_implicit_cast_cost =
hs_bindgen_b91f08fa8ca3a98a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_function@
foreign import ccall safe "hs_bindgen_b04584eb2fd6c16e" hs_bindgen_b04584eb2fd6c16e_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_function@
hs_bindgen_b04584eb2fd6c16e ::
DuckDBCastFunction
-> DuckDBCastFunctionFun
-> IO ()
hs_bindgen_b04584eb2fd6c16e =
\x0 ->
\x1 ->
hs_bindgen_b04584eb2fd6c16e_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the actual cast function to use.
history:
* stable: v1.1.0
[__@cast_function@__]: The cast function object.
[__@function@__]: The function to set.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_function@
__defined at:__ @duckdb.h 3200:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_function ::
DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function object.
__C declaration:__ @cast_function@
-}
-> DuckDBCastFunctionFun
{- ^
[__@function@__]: The function to set.
__C declaration:__ @function@
-}
-> IO ()
c_duckdb_cast_function_set_function =
hs_bindgen_b04584eb2fd6c16e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_extra_info@
foreign import ccall safe "hs_bindgen_aa3d7539369988e9" hs_bindgen_aa3d7539369988e9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_extra_info@
hs_bindgen_aa3d7539369988e9 ::
DuckDBCastFunction
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_aa3d7539369988e9 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_aa3d7539369988e9_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Assigns extra information to the cast function that can be fetched during execution, etc.
history:
* stable: v1.1.0
[__@cast_function@__]:
[__@extra_info@__]: The extra information
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_extra_info@
__defined at:__ @duckdb.h 3216:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_extra_info ::
DuckDBCastFunction
{- ^
[__@cast_function@__]:
__C declaration:__ @cast_function@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_info@__]: The extra information
__C declaration:__ @extra_info@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_cast_function_set_extra_info =
hs_bindgen_aa3d7539369988e9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_get_extra_info@
foreign import ccall safe "hs_bindgen_8d27e93926d18d88" hs_bindgen_8d27e93926d18d88_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_get_extra_info@
hs_bindgen_8d27e93926d18d88 ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_8d27e93926d18d88 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8d27e93926d18d88_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_cast_function_set_extra_info'@ .
history:
* stable: v1.1.0
[__@info@__]: The info object.
__Returns:__ void*
__C declaration:__ @duckdb_cast_function_get_extra_info@
__defined at:__ @duckdb.h 3230:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_get_extra_info ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_cast_function_get_extra_info =
hs_bindgen_8d27e93926d18d88
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_get_cast_mode@
foreign import ccall safe "hs_bindgen_007c30c55010fd1b" hs_bindgen_007c30c55010fd1b_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_get_cast_mode@
hs_bindgen_007c30c55010fd1b ::
DuckDBFunctionInfo
-> IO DuckDBCastMode
hs_bindgen_007c30c55010fd1b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_007c30c55010fd1b_base (BG.toFFIType x0))
{-| Get the cast execution mode from the given function info.
history:
* stable: v1.1.0
[__@info@__]: The info object.
__Returns:__ t'DuckDBCastMode'
__C declaration:__ @duckdb_cast_function_get_cast_mode@
__defined at:__ @duckdb.h 3243:31@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_get_cast_mode ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> IO DuckDBCastMode
c_duckdb_cast_function_get_cast_mode =
hs_bindgen_007c30c55010fd1b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_error@
foreign import ccall safe "hs_bindgen_224a31360352029c" hs_bindgen_224a31360352029c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_error@
hs_bindgen_224a31360352029c ::
DuckDBFunctionInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_224a31360352029c =
\x0 ->
\x1 ->
hs_bindgen_224a31360352029c_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while executing the cast function.
history:
* stable: v1.1.0
[__@info@__]: The info object.
[__@error@__]: The error message.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_error@
__defined at:__ @duckdb.h 3257:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_error ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message.
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_cast_function_set_error =
hs_bindgen_224a31360352029c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_row_error@
foreign import ccall safe "hs_bindgen_797b13ae1942639e" hs_bindgen_797b13ae1942639e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_cast_function_set_row_error@
hs_bindgen_797b13ae1942639e ::
DuckDBFunctionInfo
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> DuckDBVector
-> IO ()
hs_bindgen_797b13ae1942639e =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_797b13ae1942639e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| Report that an error has occurred while executing the cast function, setting the corresponding output row to NULL.
history:
* stable: v1.1.0
[__@info@__]: The info object.
[__@error@__]: The error message.
[__@row@__]: The index of the row within the output vector to set to NULL.
[__@output@__]: The output vector.
__Returns:__ void
__C declaration:__ @duckdb_cast_function_set_row_error@
__defined at:__ @duckdb.h 3273:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_cast_function_set_row_error ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message.
__C declaration:__ @error@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The index of the row within the output vector to set to NULL.
__C declaration:__ @row@
-}
-> DuckDBVector
{- ^
[__@output@__]: The output vector.
__C declaration:__ @output@
-}
-> IO ()
c_duckdb_cast_function_set_row_error =
hs_bindgen_797b13ae1942639e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_cast_function@
foreign import ccall safe "hs_bindgen_0afe718cbb1361cb" hs_bindgen_0afe718cbb1361cb_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_cast_function@
hs_bindgen_0afe718cbb1361cb ::
DuckDBConnection
-> DuckDBCastFunction
-> IO DuckDBState
hs_bindgen_0afe718cbb1361cb =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_0afe718cbb1361cb_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Registers a cast function within the given connection.
history:
* stable: v1.1.0
[__@con@__]: The connection to use.
[__@cast_function@__]: The cast function to register.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_cast_function@
__defined at:__ @duckdb.h 3288:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_cast_function ::
DuckDBConnection
{- ^
[__@con@__]: The connection to use.
__C declaration:__ @con@
-}
-> DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function to register.
__C declaration:__ @cast_function@
-}
-> IO DuckDBState
c_duckdb_register_cast_function =
hs_bindgen_0afe718cbb1361cb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_cast_function@
foreign import ccall safe "hs_bindgen_7586ad32fb8d02b1" hs_bindgen_7586ad32fb8d02b1_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_cast_function@
hs_bindgen_7586ad32fb8d02b1 ::
BG.Ptr DuckDBCastFunction
-> IO ()
hs_bindgen_7586ad32fb8d02b1 =
\x0 ->
hs_bindgen_7586ad32fb8d02b1_base (BG.toFFIType x0)
{-| Destroys the cast function object.
history:
* stable: v1.1.0
[__@cast_function@__]: The cast function object.
__Returns:__ void
__C declaration:__ @duckdb_destroy_cast_function@
__defined at:__ @duckdb.h 3301:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_cast_function ::
BG.Ptr DuckDBCastFunction
{- ^
[__@cast_function@__]: The cast function object.
__C declaration:__ @cast_function@
-}
-> IO ()
c_duckdb_destroy_cast_function =
hs_bindgen_7586ad32fb8d02b1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_catalog@
foreign import ccall safe "hs_bindgen_325fa3e1c034e2a4" hs_bindgen_325fa3e1c034e2a4_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_catalog@
hs_bindgen_325fa3e1c034e2a4 ::
DuckDBClientContext
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBCatalog
hs_bindgen_325fa3e1c034e2a4 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_325fa3e1c034e2a4_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieve a database catalog instance by name. This function can only be called from within the context of an active transaction, e.g. during execution of a registered function callback. Otherwise returns @nullptr@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@context@__]: The client context.
[__@catalog_name@__]: The name of the catalog.
__Returns:__ t'DuckDBCatalog'
__C declaration:__ @duckdb_client_context_get_catalog@
__defined at:__ @duckdb.h 3335:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_client_context_get_catalog ::
DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@catalog_name@__]: The name of the catalog.
__C declaration:__ @catalog_name@
-}
-> IO DuckDBCatalog
c_duckdb_client_context_get_catalog =
hs_bindgen_325fa3e1c034e2a4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_get_type_name@
foreign import ccall safe "hs_bindgen_dc671e8d1eacfa00" hs_bindgen_dc671e8d1eacfa00_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_get_type_name@
hs_bindgen_dc671e8d1eacfa00 ::
DuckDBCatalog
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_dc671e8d1eacfa00 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_dc671e8d1eacfa00_base (BG.toFFIType x0))
{-| Retrieve the "type name" of the given catalog. E.g. for a DuckDB database, this returns \'duckdb\'. The returned string is owned by the catalog and remains valid until the catalog is destroyed.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@catalog@__]: The catalog.
__Returns:__ const char*
__C declaration:__ @duckdb_catalog_get_type_name@
__defined at:__ @duckdb.h 3350:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_catalog_get_type_name ::
DuckDBCatalog
{- ^
[__@catalog@__]: The catalog.
__C declaration:__ @catalog@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_catalog_get_type_name =
hs_bindgen_dc671e8d1eacfa00
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_get_entry@
foreign import ccall safe "hs_bindgen_aba4dfe53d092aa4" hs_bindgen_aba4dfe53d092aa4_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CUInt
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_get_entry@
hs_bindgen_aba4dfe53d092aa4 ::
DuckDBCatalog
-> DuckDBClientContext
-> DuckDBCatalogEntryType
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBCatalogEntry
hs_bindgen_aba4dfe53d092aa4 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_aba4dfe53d092aa4_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| Retrieve a catalog entry from the given catalog by type, schema name and entry name. The returned catalog entry remains valid for the duration of the current transaction.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@catalog@__]: The catalog.
[__@context@__]: The client context.
[__@entry_type@__]: The type of the catalog entry to retrieve.
[__@schema_name@__]: The schema name of the catalog entry.
[__@entry_name@__]: The name of the catalog entry.
__Returns:__ t'DuckDBCatalogEntry'
__C declaration:__ @duckdb_catalog_get_entry@
__defined at:__ @duckdb.h 3369:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_catalog_get_entry ::
DuckDBCatalog
{- ^
[__@catalog@__]: The catalog.
__C declaration:__ @catalog@
-}
-> DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> DuckDBCatalogEntryType
{- ^
[__@entry_type@__]: The type of the catalog entry to retrieve.
__C declaration:__ @entry_type@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@schema_name@__]: The schema name of the catalog entry.
__C declaration:__ @schema_name@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@entry_name@__]: The name of the catalog entry.
__C declaration:__ @entry_name@
-}
-> IO DuckDBCatalogEntry
c_duckdb_catalog_get_entry =
hs_bindgen_aba4dfe53d092aa4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_catalog@
foreign import ccall safe "hs_bindgen_e9ab59cc27549451" hs_bindgen_e9ab59cc27549451_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_catalog@
hs_bindgen_e9ab59cc27549451 ::
BG.Ptr DuckDBCatalog
-> IO ()
hs_bindgen_e9ab59cc27549451 =
\x0 ->
hs_bindgen_e9ab59cc27549451_base (BG.toFFIType x0)
{-| Destroys the given catalog instance.
Note that this does not actually "drop" the contents of the catalog; it merely frees the C API handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@catalog@__]: The catalog instance to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_catalog@
__defined at:__ @duckdb.h 3387:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_catalog ::
BG.Ptr DuckDBCatalog
{- ^
[__@catalog@__]: The catalog instance to destroy.
__C declaration:__ @catalog@
-}
-> IO ()
c_duckdb_destroy_catalog =
hs_bindgen_e9ab59cc27549451
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_entry_get_type@
foreign import ccall safe "hs_bindgen_f9e87e4a2ae0ba89" hs_bindgen_f9e87e4a2ae0ba89_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_entry_get_type@
hs_bindgen_f9e87e4a2ae0ba89 ::
DuckDBCatalogEntry
-> IO DuckDBCatalogEntryType
hs_bindgen_f9e87e4a2ae0ba89 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f9e87e4a2ae0ba89_base (BG.toFFIType x0))
{-| Get the type of the given catalog entry.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@entry@__]: The catalog entry.
__Returns:__ t'DuckDBCatalogEntryType'
__C declaration:__ @duckdb_catalog_entry_get_type@
__defined at:__ @duckdb.h 3401:40@
__exported by:__ @duckdb.h@
-}
c_duckdb_catalog_entry_get_type ::
DuckDBCatalogEntry
{- ^
[__@entry@__]: The catalog entry.
__C declaration:__ @entry@
-}
-> IO DuckDBCatalogEntryType
c_duckdb_catalog_entry_get_type =
hs_bindgen_f9e87e4a2ae0ba89
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_entry_get_name@
foreign import ccall safe "hs_bindgen_430e74b8dedd2055" hs_bindgen_430e74b8dedd2055_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_catalog_entry_get_name@
hs_bindgen_430e74b8dedd2055 ::
DuckDBCatalogEntry
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_430e74b8dedd2055 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_430e74b8dedd2055_base (BG.toFFIType x0))
{-| Get the name of the given catalog entry.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@entry@__]: The catalog entry.
__Returns:__ const char*
__C declaration:__ @duckdb_catalog_entry_get_name@
__defined at:__ @duckdb.h 3415:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_catalog_entry_get_name ::
DuckDBCatalogEntry
{- ^
[__@entry@__]: The catalog entry.
__C declaration:__ @entry@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_catalog_entry_get_name =
hs_bindgen_430e74b8dedd2055
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_catalog_entry@
foreign import ccall safe "hs_bindgen_6189577693659118" hs_bindgen_6189577693659118_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_catalog_entry@
hs_bindgen_6189577693659118 ::
BG.Ptr DuckDBCatalogEntry
-> IO ()
hs_bindgen_6189577693659118 =
\x0 ->
hs_bindgen_6189577693659118_base (BG.toFFIType x0)
{-| Destroys the given catalog entry instance.
Note that this does not actually "drop" the catalog entry from the database catalog; it merely frees the C API handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@entry@__]: The catalog entry instance to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_catalog_entry@
__defined at:__ @duckdb.h 3432:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_catalog_entry ::
BG.Ptr DuckDBCatalogEntry
{- ^
[__@entry@__]: The catalog entry instance to destroy.
__C declaration:__ @entry@
-}
-> IO ()
c_duckdb_destroy_catalog_entry =
hs_bindgen_6189577693659118
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_config_option@
foreign import ccall safe "hs_bindgen_2904c2eb7d815ddd" hs_bindgen_2904c2eb7d815ddd_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_config_option@
hs_bindgen_2904c2eb7d815ddd :: IO DuckDBConfigOption
hs_bindgen_2904c2eb7d815ddd =
fmap BG.fromFFIType hs_bindgen_2904c2eb7d815ddd_base
{-| Creates a configuration option instance.
history:
* unstable: v1.5.0
* stable: v1.5.6
__Returns:__ t'DuckDBConfigOption'
__C declaration:__ @duckdb_create_config_option@
__defined at:__ @duckdb.h 3463:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_config_option :: IO DuckDBConfigOption
c_duckdb_create_config_option =
hs_bindgen_2904c2eb7d815ddd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_config_option@
foreign import ccall safe "hs_bindgen_cce3c5835cb3d7fb" hs_bindgen_cce3c5835cb3d7fb_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_config_option@
hs_bindgen_cce3c5835cb3d7fb ::
BG.Ptr DuckDBConfigOption
-> IO ()
hs_bindgen_cce3c5835cb3d7fb =
\x0 ->
hs_bindgen_cce3c5835cb3d7fb_base (BG.toFFIType x0)
{-| Destroys the given configuration option instance.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_config_option@
__defined at:__ @duckdb.h 3477:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_config_option ::
BG.Ptr DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance to destroy.
__C declaration:__ @option@
-}
-> IO ()
c_duckdb_destroy_config_option =
hs_bindgen_cce3c5835cb3d7fb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_name@
foreign import ccall safe "hs_bindgen_4a7b0eacb915b49c" hs_bindgen_4a7b0eacb915b49c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_name@
hs_bindgen_4a7b0eacb915b49c ::
DuckDBConfigOption
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_4a7b0eacb915b49c =
\x0 ->
\x1 ->
hs_bindgen_4a7b0eacb915b49c_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the configuration option.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance.
[__@name@__]: The name to set.
__Returns:__ void
__C declaration:__ @duckdb_config_option_set_name@
__defined at:__ @duckdb.h 3492:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_option_set_name ::
DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance.
__C declaration:__ @option@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name to set.
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_config_option_set_name =
hs_bindgen_4a7b0eacb915b49c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_type@
foreign import ccall safe "hs_bindgen_55c7fda9341606d9" hs_bindgen_55c7fda9341606d9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_type@
hs_bindgen_55c7fda9341606d9 ::
DuckDBConfigOption
-> DuckDBLogicalType
-> IO ()
hs_bindgen_55c7fda9341606d9 =
\x0 ->
\x1 ->
hs_bindgen_55c7fda9341606d9_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the type of the configuration option.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance.
[__@type@__]: The type to set.
__Returns:__ void
__C declaration:__ @duckdb_config_option_set_type@
__defined at:__ @duckdb.h 3507:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_option_set_type ::
DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance.
__C declaration:__ @option@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The type to set.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_config_option_set_type =
hs_bindgen_55c7fda9341606d9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_default_value@
foreign import ccall safe "hs_bindgen_5d743cd261c382bc" hs_bindgen_5d743cd261c382bc_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_default_value@
hs_bindgen_5d743cd261c382bc ::
DuckDBConfigOption
-> DuckDBValue
-> IO ()
hs_bindgen_5d743cd261c382bc =
\x0 ->
\x1 ->
hs_bindgen_5d743cd261c382bc_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the default value of the configuration option. If the type of this option has already been set with @'c_duckdb_config_option_set_type'@ , the value is cast to the type. Otherwise, the type is inferred from the value.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance.
[__@default_value@__]: The default value to set.
__Returns:__ void
__C declaration:__ @duckdb_config_option_set_default_value@
__defined at:__ @duckdb.h 3523:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_option_set_default_value ::
DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance.
__C declaration:__ @option@
-}
-> DuckDBValue
{- ^
[__@default_value@__]: The default value to set.
__C declaration:__ @default_value@
-}
-> IO ()
c_duckdb_config_option_set_default_value =
hs_bindgen_5d743cd261c382bc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_default_scope@
foreign import ccall safe "hs_bindgen_669d84ce2f314ace" hs_bindgen_669d84ce2f314ace_base ::
BG.Ptr BG.Void
-> BG.CUInt
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_default_scope@
hs_bindgen_669d84ce2f314ace ::
DuckDBConfigOption
-> DuckDBConfigOptionScope
-> IO ()
hs_bindgen_669d84ce2f314ace =
\x0 ->
\x1 ->
hs_bindgen_669d84ce2f314ace_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the default scope of the configuration option. If not set, this defaults to @@DUCKDB_CONFIG_OPTION_SCOPE_SESSION@@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance.
[__@default_scope@__]: The default scope to set.
__Returns:__ void
__C declaration:__ @duckdb_config_option_set_default_scope@
__defined at:__ @duckdb.h 3539:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_option_set_default_scope ::
DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance.
__C declaration:__ @option@
-}
-> DuckDBConfigOptionScope
{- ^
[__@default_scope@__]: The default scope to set.
__C declaration:__ @default_scope@
-}
-> IO ()
c_duckdb_config_option_set_default_scope =
hs_bindgen_669d84ce2f314ace
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_description@
foreign import ccall safe "hs_bindgen_434294888a548fc7" hs_bindgen_434294888a548fc7_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_option_set_description@
hs_bindgen_434294888a548fc7 ::
DuckDBConfigOption
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_434294888a548fc7 =
\x0 ->
\x1 ->
hs_bindgen_434294888a548fc7_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the description of the configuration option.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@option@__]: The configuration option instance.
[__@description@__]: The description to set.
__Returns:__ void
__C declaration:__ @duckdb_config_option_set_description@
__defined at:__ @duckdb.h 3555:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_option_set_description ::
DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance.
__C declaration:__ @option@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@description@__]: The description to set.
__C declaration:__ @description@
-}
-> IO ()
c_duckdb_config_option_set_description =
hs_bindgen_434294888a548fc7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_config_option@
foreign import ccall safe "hs_bindgen_b14dc22384baf221" hs_bindgen_b14dc22384baf221_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_config_option@
hs_bindgen_b14dc22384baf221 ::
DuckDBConnection
-> DuckDBConfigOption
-> IO DuckDBState
hs_bindgen_b14dc22384baf221 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_b14dc22384baf221_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Registers the given configuration option on the specified connection.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@connection@__]: The connection to register the option on.
[__@option@__]: The configuration option instance to register.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_config_option@
__defined at:__ @duckdb.h 3570:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_config_option ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to register the option on.
__C declaration:__ @connection@
-}
-> DuckDBConfigOption
{- ^
[__@option@__]: The configuration option instance to register.
__C declaration:__ @option@
-}
-> IO DuckDBState
c_duckdb_register_config_option =
hs_bindgen_b14dc22384baf221
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_config_option@
foreign import ccall safe "hs_bindgen_6627c6206b1f1351" hs_bindgen_6627c6206b1f1351_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_config_option@
hs_bindgen_6627c6206b1f1351 ::
DuckDBClientContext
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBConfigOptionScope
-> IO DuckDBValue
hs_bindgen_6627c6206b1f1351 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_6627c6206b1f1351_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Retrieves the value of a configuration option by name from the given client context.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@context@__]: The client context.
[__@name@__]: The name of the configuration option to retrieve.
[__@out_scope@__]: Output parameter to optionally store the scope that the configuration option was retrieved from. If this is @nullptr@ , the scope is not returned. If the requested option does not exist the scope is set to @@DUCKDB_CONFIG_OPTION_SCOPE_INVALID@@ .
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_client_context_get_config_option@
__defined at:__ @duckdb.h 3588:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_client_context_get_config_option ::
DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the configuration option to retrieve.
__C declaration:__ @name@
-}
-> BG.Ptr DuckDBConfigOptionScope
{- ^
[__@out_scope@__]: Output parameter to optionally store the scope that the configuration option was retrieved from. If this is @nullptr@ , the scope is not returned. If the requested option does not exist the scope is set to @@DUCKDB_CONFIG_OPTION_SCOPE_INVALID@@ .
__C declaration:__ @out_scope@
-}
-> IO DuckDBValue
c_duckdb_client_context_get_config_option =
hs_bindgen_6627c6206b1f1351
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_profiling_info@
foreign import ccall safe "hs_bindgen_6cc9ce7e3e2cc49d" hs_bindgen_6cc9ce7e3e2cc49d_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_profiling_info@
hs_bindgen_6cc9ce7e3e2cc49d ::
DuckDBConnection
-> IO DuckDBProfilingInfo
hs_bindgen_6cc9ce7e3e2cc49d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6cc9ce7e3e2cc49d_base (BG.toFFIType x0))
{-| Returns the root node of the profiling information. Returns nullptr, if profiling is not enabled.
history:
* stable: v1.1.0
[__@connection@__]: A connection object.
__Returns:__ t'DuckDBProfilingInfo'
__C declaration:__ @duckdb_get_profiling_info@
__defined at:__ @duckdb.h 3602:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_profiling_info ::
DuckDBConnection
{- ^
[__@connection@__]: A connection object.
__C declaration:__ @connection@
-}
-> IO DuckDBProfilingInfo
c_duckdb_get_profiling_info =
hs_bindgen_6cc9ce7e3e2cc49d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_value@
foreign import ccall safe "hs_bindgen_ef170ac4012ec7c1" hs_bindgen_ef170ac4012ec7c1_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_value@
hs_bindgen_ef170ac4012ec7c1 ::
DuckDBProfilingInfo
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBValue
hs_bindgen_ef170ac4012ec7c1 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ef170ac4012ec7c1_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Returns the value of the metric of the current profiling info node. Returns nullptr, if the metric does not exist or is not enabled. Currently, the value holds a string, and you can retrieve the string by calling the corresponding function: char *duckdb_get_varchar( t'DuckDBValue' value).
history:
* stable: v1.1.0
[__@info@__]: A profiling information object.
[__@key@__]: The name of the requested metric.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_profiling_info_get_value@
__defined at:__ @duckdb.h 3618:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_profiling_info_get_value ::
DuckDBProfilingInfo
{- ^
[__@info@__]: A profiling information object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@key@__]: The name of the requested metric.
__C declaration:__ @key@
-}
-> IO DuckDBValue
c_duckdb_profiling_info_get_value =
hs_bindgen_ef170ac4012ec7c1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_metrics@
foreign import ccall safe "hs_bindgen_28bc0ccb66ee250b" hs_bindgen_28bc0ccb66ee250b_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_metrics@
hs_bindgen_28bc0ccb66ee250b ::
DuckDBProfilingInfo
-> IO DuckDBValue
hs_bindgen_28bc0ccb66ee250b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_28bc0ccb66ee250b_base (BG.toFFIType x0))
{-|
Returns the key-value metric map of this profiling node as a MAP t'DuckDBValue' . The individual elements are accessible via the t'DuckDBValue' MAP functions.
history:
* stable: v1.1.0
[__@info@__]: A profiling information object.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_profiling_info_get_metrics@
__defined at:__ @duckdb.h 3632:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_profiling_info_get_metrics ::
DuckDBProfilingInfo
{- ^
[__@info@__]: A profiling information object.
__C declaration:__ @info@
-}
-> IO DuckDBValue
c_duckdb_profiling_info_get_metrics =
hs_bindgen_28bc0ccb66ee250b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_child_count@
foreign import ccall safe "hs_bindgen_2535bc9e5898c5a1" hs_bindgen_2535bc9e5898c5a1_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_child_count@
hs_bindgen_2535bc9e5898c5a1 ::
DuckDBProfilingInfo
-> IO DuckDBIdx
hs_bindgen_2535bc9e5898c5a1 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2535bc9e5898c5a1_base (BG.toFFIType x0))
{-| Returns the number of children in the current profiling info node.
history:
* stable: v1.1.0
[__@info@__]: A profiling information object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_profiling_info_get_child_count@
__defined at:__ @duckdb.h 3645:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_profiling_info_get_child_count ::
DuckDBProfilingInfo
{- ^
[__@info@__]: A profiling information object.
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_profiling_info_get_child_count =
hs_bindgen_2535bc9e5898c5a1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_child@
foreign import ccall safe "hs_bindgen_9eb0d1042926715f" hs_bindgen_9eb0d1042926715f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_profiling_info_get_child@
hs_bindgen_9eb0d1042926715f ::
DuckDBProfilingInfo
-> DuckDBIdx
-> IO DuckDBProfilingInfo
hs_bindgen_9eb0d1042926715f =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_9eb0d1042926715f_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the child node at the specified index.
history:
* stable: v1.1.0
[__@info@__]: A profiling information object.
[__@index@__]: The index of the child node.
__Returns:__ t'DuckDBProfilingInfo'
__C declaration:__ @duckdb_profiling_info_get_child@
__defined at:__ @duckdb.h 3659:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_profiling_info_get_child ::
DuckDBProfilingInfo
{- ^
[__@info@__]: A profiling information object.
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the child node.
__C declaration:__ @index@
-}
-> IO DuckDBProfilingInfo
c_duckdb_profiling_info_get_child =
hs_bindgen_9eb0d1042926715f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connect@
foreign import ccall safe "hs_bindgen_79d64eb1438eabb3" hs_bindgen_79d64eb1438eabb3_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connect@
hs_bindgen_79d64eb1438eabb3 ::
DuckDBDatabase
-> BG.Ptr DuckDBConnection
-> IO DuckDBState
hs_bindgen_79d64eb1438eabb3 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_79d64eb1438eabb3_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Opens a connection to a database. Connections are required to query the database, and store transactional state associated with the connection. The instantiated connection should be closed using \'duckdb_disconnect\'.
history:
* stable: v0.1.0
[__@database@__]: The database file to connect to.
[__@out_connection@__]: The result connection object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_connect@
__defined at:__ @duckdb.h 3691:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_connect ::
DuckDBDatabase
{- ^
[__@database@__]: The database file to connect to.
__C declaration:__ @database@
-}
-> BG.Ptr DuckDBConnection
{- ^
[__@out_connection@__]: The result connection object.
__C declaration:__ @out_connection@
-}
-> IO DuckDBState
c_duckdb_connect = hs_bindgen_79d64eb1438eabb3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_interrupt@
foreign import ccall safe "hs_bindgen_2a298bcc8a8bf16d" hs_bindgen_2a298bcc8a8bf16d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_interrupt@
hs_bindgen_2a298bcc8a8bf16d ::
DuckDBConnection
-> IO ()
hs_bindgen_2a298bcc8a8bf16d =
\x0 ->
hs_bindgen_2a298bcc8a8bf16d_base (BG.toFFIType x0)
{-| Interrupt running query
history:
* stable: v0.9.0
[__@connection@__]: The connection to interrupt
__Returns:__ void
__C declaration:__ @duckdb_interrupt@
__defined at:__ @duckdb.h 3703:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_interrupt ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to interrupt
__C declaration:__ @connection@
-}
-> IO ()
c_duckdb_interrupt = hs_bindgen_2a298bcc8a8bf16d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_progress@
foreign import ccall safe "hs_bindgen_e9eec4b7b5ba0a85" hs_bindgen_e9eec4b7b5ba0a85_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query_progress@
hs_bindgen_e9eec4b7b5ba0a85 ::
DuckDBConnection
-> BG.Ptr DuckDBQueryProgress
-> IO ()
hs_bindgen_e9eec4b7b5ba0a85 =
\x0 ->
\x1 ->
hs_bindgen_e9eec4b7b5ba0a85_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Get the progress of the running query.
history:
* stable: v0.10.0
[__@connection@__]: The connection running the query.
__Returns:__ t'DuckDBQueryProgress'
__C declaration:__ @duckdb_query_progress@
__defined at:__ @duckdb.h 3716:41@
__exported by:__ @duckdb.h@
-}
c_duckdb_query_progress ::
DuckDBConnection
{- ^
[__@connection@__]: The connection running the query.
__C declaration:__ @connection@
-}
-> IO DuckDBQueryProgress
c_duckdb_query_progress =
\connection0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_e9eec4b7b5ba0a85 connection0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_disconnect@
foreign import ccall safe "hs_bindgen_cb610ade84b3a9cb" hs_bindgen_cb610ade84b3a9cb_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_disconnect@
hs_bindgen_cb610ade84b3a9cb ::
BG.Ptr DuckDBConnection
-> IO ()
hs_bindgen_cb610ade84b3a9cb =
\x0 ->
hs_bindgen_cb610ade84b3a9cb_base (BG.toFFIType x0)
{-| Closes the specified connection and de-allocates all memory allocated for that connection.
history:
* stable: v0.1.0
[__@connection@__]: The connection to close.
__Returns:__ void
__C declaration:__ @duckdb_disconnect@
__defined at:__ @duckdb.h 3728:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_disconnect ::
BG.Ptr DuckDBConnection
{- ^
[__@connection@__]: The connection to close.
__C declaration:__ @connection@
-}
-> IO ()
c_duckdb_disconnect = hs_bindgen_cb610ade84b3a9cb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connection_get_client_context@
foreign import ccall safe "hs_bindgen_8544c93f321dd6fd" hs_bindgen_8544c93f321dd6fd_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connection_get_client_context@
hs_bindgen_8544c93f321dd6fd ::
DuckDBConnection
-> BG.Ptr DuckDBClientContext
-> IO ()
hs_bindgen_8544c93f321dd6fd =
\x0 ->
\x1 ->
hs_bindgen_8544c93f321dd6fd_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Retrieves the client context of the connection.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@connection@__]: The connection.
[__@out_context@__]: The client context of the connection. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__Returns:__ void
__C declaration:__ @duckdb_connection_get_client_context@
__defined at:__ @duckdb.h 3742:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_connection_get_client_context ::
DuckDBConnection
{- ^
[__@connection@__]: The connection.
__C declaration:__ @connection@
-}
-> BG.Ptr DuckDBClientContext
{- ^
[__@out_context@__]: The client context of the connection. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__C declaration:__ @out_context@
-}
-> IO ()
c_duckdb_connection_get_client_context =
hs_bindgen_8544c93f321dd6fd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connection_get_arrow_options@
foreign import ccall safe "hs_bindgen_90f6280aebaf736e" hs_bindgen_90f6280aebaf736e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_connection_get_arrow_options@
hs_bindgen_90f6280aebaf736e ::
DuckDBConnection
-> BG.Ptr DuckDBArrowOptions
-> IO ()
hs_bindgen_90f6280aebaf736e =
\x0 ->
\x1 ->
hs_bindgen_90f6280aebaf736e_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Retrieves the arrow options of the connection.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@connection@__]: The connection.
[__@out_arrow_options@__]:
__Returns:__ void
__C declaration:__ @duckdb_connection_get_arrow_options@
__defined at:__ @duckdb.h 3758:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_connection_get_arrow_options ::
DuckDBConnection
{- ^
[__@connection@__]: The connection.
__C declaration:__ @connection@
-}
-> BG.Ptr DuckDBArrowOptions
{- ^
[__@out_arrow_options@__]:
__C declaration:__ @out_arrow_options@
-}
-> IO ()
c_duckdb_connection_get_arrow_options =
hs_bindgen_90f6280aebaf736e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_connection_id@
foreign import ccall safe "hs_bindgen_4dce4d0b3eb0c45a" hs_bindgen_4dce4d0b3eb0c45a_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_connection_id@
hs_bindgen_4dce4d0b3eb0c45a ::
DuckDBClientContext
-> IO DuckDBIdx
hs_bindgen_4dce4d0b3eb0c45a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4dce4d0b3eb0c45a_base (BG.toFFIType x0))
{-| Returns the connection id of the client context.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@context@__]: The client context.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_client_context_get_connection_id@
__defined at:__ @duckdb.h 3773:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_client_context_get_connection_id ::
DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> IO DuckDBIdx
c_duckdb_client_context_get_connection_id =
hs_bindgen_4dce4d0b3eb0c45a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_client_context@
foreign import ccall safe "hs_bindgen_e1dcc582c6d3773d" hs_bindgen_e1dcc582c6d3773d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_client_context@
hs_bindgen_e1dcc582c6d3773d ::
BG.Ptr DuckDBClientContext
-> IO ()
hs_bindgen_e1dcc582c6d3773d =
\x0 ->
hs_bindgen_e1dcc582c6d3773d_base (BG.toFFIType x0)
{-| Destroys the client context and deallocates its memory.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@context@__]: The client context to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_client_context@
__defined at:__ @duckdb.h 3787:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_client_context ::
BG.Ptr DuckDBClientContext
{- ^
[__@context@__]: The client context to destroy.
__C declaration:__ @context@
-}
-> IO ()
c_duckdb_destroy_client_context =
hs_bindgen_e1dcc582c6d3773d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_options@
foreign import ccall safe "hs_bindgen_aa5e5b8ee750a275" hs_bindgen_aa5e5b8ee750a275_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_arrow_options@
hs_bindgen_aa5e5b8ee750a275 ::
BG.Ptr DuckDBArrowOptions
-> IO ()
hs_bindgen_aa5e5b8ee750a275 =
\x0 ->
hs_bindgen_aa5e5b8ee750a275_base (BG.toFFIType x0)
{-| Destroys the arrow options and deallocates its memory.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@arrow_options@__]: The arrow options to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_arrow_options@
__defined at:__ @duckdb.h 3801:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_arrow_options ::
BG.Ptr DuckDBArrowOptions
{- ^
[__@arrow_options@__]: The arrow options to destroy.
__C declaration:__ @arrow_options@
-}
-> IO ()
c_duckdb_destroy_arrow_options =
hs_bindgen_aa5e5b8ee750a275
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_table_names@
foreign import ccall safe "hs_bindgen_f77ead42500007ef" hs_bindgen_f77ead42500007ef_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CBool
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_table_names@
hs_bindgen_f77ead42500007ef ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> BG.CBool
-> IO DuckDBValue
hs_bindgen_f77ead42500007ef =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_f77ead42500007ef_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Get the list of (fully qualified) table names of the query.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@connection@__]: The connection for which to get the table names.
[__@query@__]: The query for which to get the table names.
[__@qualified@__]: Returns fully qualified table names (catalog.schema.table), if set to true, else only the (not escaped) table names.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_get_table_names@
__defined at:__ @duckdb.h 3818:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_table_names ::
DuckDBConnection
{- ^
[__@connection@__]: The connection for which to get the table names.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The query for which to get the table names.
__C declaration:__ @query@
-}
-> BG.CBool
{- ^
[__@qualified@__]: Returns fully qualified table names (catalog.schema.table), if set to true, else only the (not escaped) table names.
__C declaration:__ @qualified@
-}
-> IO DuckDBValue
c_duckdb_get_table_names =
hs_bindgen_f77ead42500007ef
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_copy_function@
foreign import ccall safe "hs_bindgen_9082e3375dc02c6b" hs_bindgen_9082e3375dc02c6b_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_copy_function@
hs_bindgen_9082e3375dc02c6b :: IO DuckDBCopyFunction
hs_bindgen_9082e3375dc02c6b =
fmap BG.fromFFIType hs_bindgen_9082e3375dc02c6b_base
{-| Creates a new empty copy function.
The return value must be destroyed with @'c_duckdb_destroy_copy_function'@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
__Returns:__ t'DuckDBCopyFunction'
__C declaration:__ @duckdb_create_copy_function@
__defined at:__ @duckdb.h 3851:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_copy_function :: IO DuckDBCopyFunction
c_duckdb_create_copy_function =
hs_bindgen_9082e3375dc02c6b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_name@
foreign import ccall safe "hs_bindgen_5dcabbbd6ea15759" hs_bindgen_5dcabbbd6ea15759_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_name@
hs_bindgen_5dcabbbd6ea15759 ::
DuckDBCopyFunction
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_5dcabbbd6ea15759 =
\x0 ->
\x1 ->
hs_bindgen_5dcabbbd6ea15759_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]: The copy function
[__@name@__]: The name to set
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_name@
__defined at:__ @duckdb.h 3866:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_name ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]: The copy function
__C declaration:__ @copy_function@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name to set
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_copy_function_set_name =
hs_bindgen_5dcabbbd6ea15759
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_extra_info@
foreign import ccall safe "hs_bindgen_f11df37a3a7c9589" hs_bindgen_f11df37a3a7c9589_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_extra_info@
hs_bindgen_f11df37a3a7c9589 ::
DuckDBCopyFunction
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_f11df37a3a7c9589 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_f11df37a3a7c9589_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the extra info pointer of the copy function, which can be used to store arbitrary data.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]: The copy function
[__@extra_info@__]: The extra info pointer
[__@destructor@__]: A destructor function to call to destroy the extra info
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_extra_info@
__defined at:__ @duckdb.h 3882:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_extra_info ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]: The copy function
__C declaration:__ @copy_function@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_info@__]: The extra info pointer
__C declaration:__ @extra_info@
-}
-> DuckDBDeleteCallback
{- ^
[__@destructor@__]: A destructor function to call to destroy the extra info
__C declaration:__ @destructor@
-}
-> IO ()
c_duckdb_copy_function_set_extra_info =
hs_bindgen_f11df37a3a7c9589
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_copy_function@
foreign import ccall safe "hs_bindgen_ef2952af4d35b915" hs_bindgen_ef2952af4d35b915_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_copy_function@
hs_bindgen_ef2952af4d35b915 ::
DuckDBConnection
-> DuckDBCopyFunction
-> IO DuckDBState
hs_bindgen_ef2952af4d35b915 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ef2952af4d35b915_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Registers the given copy function on the database connection under the specified name.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@connection@__]: The database connection
[__@copy_function@__]: The copy function to register
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_copy_function@
__defined at:__ @duckdb.h 3898:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_copy_function ::
DuckDBConnection
{- ^
[__@connection@__]: The database connection
__C declaration:__ @connection@
-}
-> DuckDBCopyFunction
{- ^
[__@copy_function@__]: The copy function to register
__C declaration:__ @copy_function@
-}
-> IO DuckDBState
c_duckdb_register_copy_function =
hs_bindgen_ef2952af4d35b915
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_copy_function@
foreign import ccall safe "hs_bindgen_a8e7668d29c4444d" hs_bindgen_a8e7668d29c4444d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_copy_function@
hs_bindgen_a8e7668d29c4444d ::
BG.Ptr DuckDBCopyFunction
-> IO ()
hs_bindgen_a8e7668d29c4444d =
\x0 ->
hs_bindgen_a8e7668d29c4444d_base (BG.toFFIType x0)
{-| Destroys the given copy function object.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]: The copy function to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_copy_function@
__defined at:__ @duckdb.h 3913:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_copy_function ::
BG.Ptr DuckDBCopyFunction
{- ^
[__@copy_function@__]: The copy function to destroy.
__C declaration:__ @copy_function@
-}
-> IO ()
c_duckdb_destroy_copy_function =
hs_bindgen_a8e7668d29c4444d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_bind@
foreign import ccall safe "hs_bindgen_87cf3467d4ff600f" hs_bindgen_87cf3467d4ff600f_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_bind@
hs_bindgen_87cf3467d4ff600f ::
DuckDBCopyFunction
-> DuckDBCopyFunctionBindFun
-> IO ()
hs_bindgen_87cf3467d4ff600f =
\x0 ->
\x1 ->
hs_bindgen_87cf3467d4ff600f_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the bind function of the copy function, to use when binding @COPY ... TO@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]:
[__@bind@__]: The bind function
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_bind@
__defined at:__ @duckdb.h 3928:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_bind ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]:
__C declaration:__ @copy_function@
-}
-> DuckDBCopyFunctionBindFun
{- ^
[__@bind@__]: The bind function
__C declaration:__ @bind@
-}
-> IO ()
c_duckdb_copy_function_set_bind =
hs_bindgen_87cf3467d4ff600f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_set_error@
foreign import ccall safe "hs_bindgen_524c0439f2a4c426" hs_bindgen_524c0439f2a4c426_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_set_error@
hs_bindgen_524c0439f2a4c426 ::
DuckDBCopyFunctionBindInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_524c0439f2a4c426 =
\x0 ->
\x1 ->
hs_bindgen_524c0439f2a4c426_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error occurred during the binding-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_copy_function_bind_set_error@
__defined at:__ @duckdb.h 3943:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_set_error ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_copy_function_bind_set_error =
hs_bindgen_524c0439f2a4c426
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_extra_info@
foreign import ccall safe "hs_bindgen_700aaa096e86aaf2" hs_bindgen_700aaa096e86aaf2_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_extra_info@
hs_bindgen_700aaa096e86aaf2 ::
DuckDBCopyFunctionBindInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_700aaa096e86aaf2 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_700aaa096e86aaf2_base (BG.toFFIType x0))
{-| Retrieves the extra info pointer of the copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_bind_get_extra_info@
__defined at:__ @duckdb.h 3957:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_get_extra_info ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_bind_get_extra_info =
hs_bindgen_700aaa096e86aaf2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_client_context@
foreign import ccall safe "hs_bindgen_43ecba8b372ade77" hs_bindgen_43ecba8b372ade77_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_client_context@
hs_bindgen_43ecba8b372ade77 ::
DuckDBCopyFunctionBindInfo
-> IO DuckDBClientContext
hs_bindgen_43ecba8b372ade77 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_43ecba8b372ade77_base (BG.toFFIType x0))
{-| Retrieves the client context of the current connection binding the @COPY ... TO@ function.
Must be destroyed with @'c_duckdb_destroy_client_context'@
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
__Returns:__ t'DuckDBClientContext'
__C declaration:__ @duckdb_copy_function_bind_get_client_context@
__defined at:__ @duckdb.h 3973:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_get_client_context ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> IO DuckDBClientContext
c_duckdb_copy_function_bind_get_client_context =
hs_bindgen_43ecba8b372ade77
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_column_count@
foreign import ccall safe "hs_bindgen_fded725200a8255d" hs_bindgen_fded725200a8255d_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_column_count@
hs_bindgen_fded725200a8255d ::
DuckDBCopyFunctionBindInfo
-> IO DuckDBIdx
hs_bindgen_fded725200a8255d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_fded725200a8255d_base (BG.toFFIType x0))
{-| Retrieves the number of columns that will be provided to the @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_copy_function_bind_get_column_count@
__defined at:__ @duckdb.h 3987:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_get_column_count ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_copy_function_bind_get_column_count =
hs_bindgen_fded725200a8255d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_column_type@
foreign import ccall safe "hs_bindgen_66ea23271c8a6bd0" hs_bindgen_66ea23271c8a6bd0_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_column_type@
hs_bindgen_66ea23271c8a6bd0 ::
DuckDBCopyFunctionBindInfo
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_66ea23271c8a6bd0 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_66ea23271c8a6bd0_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the type of a column that will be provided to the @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
[__@col_idx@__]: The index of the column to retrieve the type for
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_copy_function_bind_get_column_type@
__defined at:__ @duckdb.h 4002:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_get_column_type ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The index of the column to retrieve the type for
__C declaration:__ @col_idx@
-}
-> IO DuckDBLogicalType
c_duckdb_copy_function_bind_get_column_type =
hs_bindgen_66ea23271c8a6bd0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_options@
foreign import ccall safe "hs_bindgen_7b77d6cb5cf0d60a" hs_bindgen_7b77d6cb5cf0d60a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_get_options@
hs_bindgen_7b77d6cb5cf0d60a ::
DuckDBCopyFunctionBindInfo
-> IO DuckDBValue
hs_bindgen_7b77d6cb5cf0d60a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7b77d6cb5cf0d60a_base (BG.toFFIType x0))
{-| Retrieves all values for the given options provided to the @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_copy_function_bind_get_options@
__defined at:__ @duckdb.h 4017:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_get_options ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> IO DuckDBValue
c_duckdb_copy_function_bind_get_options =
hs_bindgen_7b77d6cb5cf0d60a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_set_bind_data@
foreign import ccall safe "hs_bindgen_fe305bbf1974a262" hs_bindgen_fe305bbf1974a262_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_bind_set_bind_data@
hs_bindgen_fe305bbf1974a262 ::
DuckDBCopyFunctionBindInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_fe305bbf1974a262 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_fe305bbf1974a262_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the bind data of the copy function, to be provided to the init, sink and finalize functions.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
[__@bind_data@__]: The bind data pointer
[__@destructor@__]: A destructor function to call to destroy the bind data
__Returns:__ void
__C declaration:__ @duckdb_copy_function_bind_set_bind_data@
__defined at:__ @duckdb.h 4033:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_bind_set_bind_data ::
DuckDBCopyFunctionBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@bind_data@__]: The bind data pointer
__C declaration:__ @bind_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@destructor@__]: A destructor function to call to destroy the bind data
__C declaration:__ @destructor@
-}
-> IO ()
c_duckdb_copy_function_bind_set_bind_data =
hs_bindgen_fe305bbf1974a262
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_global_init@
foreign import ccall safe "hs_bindgen_bdf653203b811426" hs_bindgen_bdf653203b811426_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_global_init@
hs_bindgen_bdf653203b811426 ::
DuckDBCopyFunction
-> DuckDBCopyFunctionGlobalInitFun
-> IO ()
hs_bindgen_bdf653203b811426 =
\x0 ->
\x1 ->
hs_bindgen_bdf653203b811426_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the initialization function of the copy function, called right before executing @COPY ... TO@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]:
[__@init@__]: The init function
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_global_init@
__defined at:__ @duckdb.h 4049:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_global_init ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]:
__C declaration:__ @copy_function@
-}
-> DuckDBCopyFunctionGlobalInitFun
{- ^
[__@init@__]: The init function
__C declaration:__ @init@
-}
-> IO ()
c_duckdb_copy_function_set_global_init =
hs_bindgen_bdf653203b811426
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_set_error@
foreign import ccall safe "hs_bindgen_279e87fe6d40d247" hs_bindgen_279e87fe6d40d247_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_set_error@
hs_bindgen_279e87fe6d40d247 ::
DuckDBCopyFunctionGlobalInitInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_279e87fe6d40d247 =
\x0 ->
\x1 ->
hs_bindgen_279e87fe6d40d247_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error occurred during the initialization-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_copy_function_global_init_set_error@
__defined at:__ @duckdb.h 4065:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_set_error ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_copy_function_global_init_set_error =
hs_bindgen_279e87fe6d40d247
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_extra_info@
foreign import ccall safe "hs_bindgen_7609546a5c22ffe0" hs_bindgen_7609546a5c22ffe0_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_extra_info@
hs_bindgen_7609546a5c22ffe0 ::
DuckDBCopyFunctionGlobalInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_7609546a5c22ffe0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7609546a5c22ffe0_base (BG.toFFIType x0))
{-| Retrieves the extra info pointer of the copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_global_init_get_extra_info@
__defined at:__ @duckdb.h 4080:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_get_extra_info ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_global_init_get_extra_info =
hs_bindgen_7609546a5c22ffe0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_client_context@
foreign import ccall safe "hs_bindgen_43808cb7db79e801" hs_bindgen_43808cb7db79e801_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_client_context@
hs_bindgen_43808cb7db79e801 ::
DuckDBCopyFunctionGlobalInitInfo
-> IO DuckDBClientContext
hs_bindgen_43808cb7db79e801 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_43808cb7db79e801_base (BG.toFFIType x0))
{-| Retrieves the client context of the current connection initializing the @COPY ... TO@ function.
Must be destroyed with @'c_duckdb_destroy_client_context'@
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
__Returns:__ t'DuckDBClientContext'
__C declaration:__ @duckdb_copy_function_global_init_get_client_context@
__defined at:__ @duckdb.h 4097:1@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_get_client_context ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> IO DuckDBClientContext
c_duckdb_copy_function_global_init_get_client_context =
hs_bindgen_43808cb7db79e801
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_bind_data@
foreign import ccall safe "hs_bindgen_687b5ba8e888e959" hs_bindgen_687b5ba8e888e959_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_bind_data@
hs_bindgen_687b5ba8e888e959 ::
DuckDBCopyFunctionGlobalInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_687b5ba8e888e959 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_687b5ba8e888e959_base (BG.toFFIType x0))
{-| Retrieves the bind data provided during the binding-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_global_init_get_bind_data@
__defined at:__ @duckdb.h 4111:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_get_bind_data ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_global_init_get_bind_data =
hs_bindgen_687b5ba8e888e959
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_file_path@
foreign import ccall safe "hs_bindgen_2114989eb445f973" hs_bindgen_2114989eb445f973_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_get_file_path@
hs_bindgen_2114989eb445f973 ::
DuckDBCopyFunctionGlobalInitInfo
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_2114989eb445f973 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2114989eb445f973_base (BG.toFFIType x0))
{-| Retrieves the file path provided to the @COPY ... TO@ function.
Lives for the duration of the initialization callback, must not be destroyed.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
__Returns:__ const char*
__C declaration:__ @duckdb_copy_function_global_init_get_file_path@
__defined at:__ @duckdb.h 4127:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_get_file_path ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_copy_function_global_init_get_file_path =
hs_bindgen_2114989eb445f973
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_set_global_state@
foreign import ccall safe "hs_bindgen_ff12ab62e7e2b86d" hs_bindgen_ff12ab62e7e2b86d_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_global_init_set_global_state@
hs_bindgen_ff12ab62e7e2b86d ::
DuckDBCopyFunctionGlobalInitInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_ff12ab62e7e2b86d =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_ff12ab62e7e2b86d_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the global state of the copy function, to be provided to all subsequent local init, sink and finalize functions.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info provided to the init function
[__@global_state@__]: The global state pointer
[__@destructor@__]: A destructor function to call to destroy the global state
__Returns:__ void
__C declaration:__ @duckdb_copy_function_global_init_set_global_state@
__defined at:__ @duckdb.h 4143:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_global_init_set_global_state ::
DuckDBCopyFunctionGlobalInitInfo
{- ^
[__@info@__]: The init info provided to the init function
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@global_state@__]: The global state pointer
__C declaration:__ @global_state@
-}
-> DuckDBDeleteCallback
{- ^
[__@destructor@__]: A destructor function to call to destroy the global state
__C declaration:__ @destructor@
-}
-> IO ()
c_duckdb_copy_function_global_init_set_global_state =
hs_bindgen_ff12ab62e7e2b86d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_sink@
foreign import ccall safe "hs_bindgen_5ba7790b6977f6f9" hs_bindgen_5ba7790b6977f6f9_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_sink@
hs_bindgen_5ba7790b6977f6f9 ::
DuckDBCopyFunction
-> DuckDBCopyFunctionSinkFun
-> IO ()
hs_bindgen_5ba7790b6977f6f9 =
\x0 ->
\x1 ->
hs_bindgen_5ba7790b6977f6f9_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the sink function of the copy function, called during @COPY ... TO@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]:
[__@function@__]: The sink function
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_sink@
__defined at:__ @duckdb.h 4160:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_sink ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]:
__C declaration:__ @copy_function@
-}
-> DuckDBCopyFunctionSinkFun
{- ^
[__@function@__]: The sink function
__C declaration:__ @function@
-}
-> IO ()
c_duckdb_copy_function_set_sink =
hs_bindgen_5ba7790b6977f6f9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_set_error@
foreign import ccall safe "hs_bindgen_6dcea9bdb2c64239" hs_bindgen_6dcea9bdb2c64239_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_set_error@
hs_bindgen_6dcea9bdb2c64239 ::
DuckDBCopyFunctionSinkInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_6dcea9bdb2c64239 =
\x0 ->
\x1 ->
hs_bindgen_6dcea9bdb2c64239_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error occurred during the sink-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The sink info provided to the sink function
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_copy_function_sink_set_error@
__defined at:__ @duckdb.h 4176:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_sink_set_error ::
DuckDBCopyFunctionSinkInfo
{- ^
[__@info@__]: The sink info provided to the sink function
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_copy_function_sink_set_error =
hs_bindgen_6dcea9bdb2c64239
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_extra_info@
foreign import ccall safe "hs_bindgen_05b0c7709595cb8c" hs_bindgen_05b0c7709595cb8c_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_extra_info@
hs_bindgen_05b0c7709595cb8c ::
DuckDBCopyFunctionSinkInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_05b0c7709595cb8c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_05b0c7709595cb8c_base (BG.toFFIType x0))
{-| Retrieves the extra info pointer of the copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The sink info provided to the sink function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_sink_get_extra_info@
__defined at:__ @duckdb.h 4190:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_sink_get_extra_info ::
DuckDBCopyFunctionSinkInfo
{- ^
[__@info@__]: The sink info provided to the sink function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_sink_get_extra_info =
hs_bindgen_05b0c7709595cb8c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_client_context@
foreign import ccall safe "hs_bindgen_c8d3a89903c0ed25" hs_bindgen_c8d3a89903c0ed25_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_client_context@
hs_bindgen_c8d3a89903c0ed25 ::
DuckDBCopyFunctionSinkInfo
-> IO DuckDBClientContext
hs_bindgen_c8d3a89903c0ed25 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c8d3a89903c0ed25_base (BG.toFFIType x0))
{-| Retrieves the client context of the current connection during the sink-phase of the @COPY ... TO@ function.
Must be destroyed with @'c_duckdb_destroy_client_context'@
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The sink info provided to the sink function
__Returns:__ t'DuckDBClientContext'
__C declaration:__ @duckdb_copy_function_sink_get_client_context@
__defined at:__ @duckdb.h 4206:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_sink_get_client_context ::
DuckDBCopyFunctionSinkInfo
{- ^
[__@info@__]: The sink info provided to the sink function
__C declaration:__ @info@
-}
-> IO DuckDBClientContext
c_duckdb_copy_function_sink_get_client_context =
hs_bindgen_c8d3a89903c0ed25
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_bind_data@
foreign import ccall safe "hs_bindgen_0625cce1f60f4400" hs_bindgen_0625cce1f60f4400_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_bind_data@
hs_bindgen_0625cce1f60f4400 ::
DuckDBCopyFunctionSinkInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_0625cce1f60f4400 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0625cce1f60f4400_base (BG.toFFIType x0))
{-| Retrieves the bind data provided during the binding-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The sink info provided to the sink function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_sink_get_bind_data@
__defined at:__ @duckdb.h 4220:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_sink_get_bind_data ::
DuckDBCopyFunctionSinkInfo
{- ^
[__@info@__]: The sink info provided to the sink function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_sink_get_bind_data =
hs_bindgen_0625cce1f60f4400
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_global_state@
foreign import ccall safe "hs_bindgen_32ac91dc1a40c2e1" hs_bindgen_32ac91dc1a40c2e1_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_sink_get_global_state@
hs_bindgen_32ac91dc1a40c2e1 ::
DuckDBCopyFunctionSinkInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_32ac91dc1a40c2e1 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_32ac91dc1a40c2e1_base (BG.toFFIType x0))
{-| Retrieves the global state provided during the init-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The sink info provided to the sink function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_sink_get_global_state@
__defined at:__ @duckdb.h 4234:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_sink_get_global_state ::
DuckDBCopyFunctionSinkInfo
{- ^
[__@info@__]: The sink info provided to the sink function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_sink_get_global_state =
hs_bindgen_32ac91dc1a40c2e1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_finalize@
foreign import ccall safe "hs_bindgen_1aeb2ff33a42eb52" hs_bindgen_1aeb2ff33a42eb52_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_finalize@
hs_bindgen_1aeb2ff33a42eb52 ::
DuckDBCopyFunction
-> DuckDBCopyFunctionFinalizeFun
-> IO ()
hs_bindgen_1aeb2ff33a42eb52 =
\x0 ->
\x1 ->
hs_bindgen_1aeb2ff33a42eb52_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the finalize function of the copy function, called at the end of @COPY ... TO@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]:
[__@finalize@__]: The finalize function
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_finalize@
__defined at:__ @duckdb.h 4249:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_finalize ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]:
__C declaration:__ @copy_function@
-}
-> DuckDBCopyFunctionFinalizeFun
{- ^
[__@finalize@__]: The finalize function
__C declaration:__ @finalize@
-}
-> IO ()
c_duckdb_copy_function_set_finalize =
hs_bindgen_1aeb2ff33a42eb52
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_set_error@
foreign import ccall safe "hs_bindgen_1aff575b0b5aa442" hs_bindgen_1aff575b0b5aa442_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_set_error@
hs_bindgen_1aff575b0b5aa442 ::
DuckDBCopyFunctionFinalizeInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_1aff575b0b5aa442 =
\x0 ->
\x1 ->
hs_bindgen_1aff575b0b5aa442_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error occurred during the finalize-phase of a @COPY ... TO@ function
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The finalize info provided to the finalize function
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_copy_function_finalize_set_error@
__defined at:__ @duckdb.h 4265:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_finalize_set_error ::
DuckDBCopyFunctionFinalizeInfo
{- ^
[__@info@__]: The finalize info provided to the finalize function
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_copy_function_finalize_set_error =
hs_bindgen_1aff575b0b5aa442
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_extra_info@
foreign import ccall safe "hs_bindgen_eac875bdda3d01f5" hs_bindgen_eac875bdda3d01f5_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_extra_info@
hs_bindgen_eac875bdda3d01f5 ::
DuckDBCopyFunctionFinalizeInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_eac875bdda3d01f5 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_eac875bdda3d01f5_base (BG.toFFIType x0))
{-| Retrieves the extra info pointer of the copy function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The finalize info provided to the finalize function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_finalize_get_extra_info@
__defined at:__ @duckdb.h 4279:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_finalize_get_extra_info ::
DuckDBCopyFunctionFinalizeInfo
{- ^
[__@info@__]: The finalize info provided to the finalize function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_finalize_get_extra_info =
hs_bindgen_eac875bdda3d01f5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_client_context@
foreign import ccall safe "hs_bindgen_624069d2f8a39d84" hs_bindgen_624069d2f8a39d84_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_client_context@
hs_bindgen_624069d2f8a39d84 ::
DuckDBCopyFunctionFinalizeInfo
-> IO DuckDBClientContext
hs_bindgen_624069d2f8a39d84 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_624069d2f8a39d84_base (BG.toFFIType x0))
{-| Retrieves the client context of the current connection during the finalize-phase of the @COPY ... TO@ function.
Must be destroyed with @'c_duckdb_destroy_client_context'@
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The finalize info provided to the finalize function
__Returns:__ t'DuckDBClientContext'
__C declaration:__ @duckdb_copy_function_finalize_get_client_context@
__defined at:__ @duckdb.h 4296:1@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_finalize_get_client_context ::
DuckDBCopyFunctionFinalizeInfo
{- ^
[__@info@__]: The finalize info provided to the finalize function
__C declaration:__ @info@
-}
-> IO DuckDBClientContext
c_duckdb_copy_function_finalize_get_client_context =
hs_bindgen_624069d2f8a39d84
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_bind_data@
foreign import ccall safe "hs_bindgen_3557b4da41c1a1b9" hs_bindgen_3557b4da41c1a1b9_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_bind_data@
hs_bindgen_3557b4da41c1a1b9 ::
DuckDBCopyFunctionFinalizeInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_3557b4da41c1a1b9 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3557b4da41c1a1b9_base (BG.toFFIType x0))
{-| Retrieves the bind data provided during the binding-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The finalize info provided to the finalize function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_finalize_get_bind_data@
__defined at:__ @duckdb.h 4310:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_finalize_get_bind_data ::
DuckDBCopyFunctionFinalizeInfo
{- ^
[__@info@__]: The finalize info provided to the finalize function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_finalize_get_bind_data =
hs_bindgen_3557b4da41c1a1b9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_global_state@
foreign import ccall safe "hs_bindgen_33a78a386647fcda" hs_bindgen_33a78a386647fcda_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_finalize_get_global_state@
hs_bindgen_33a78a386647fcda ::
DuckDBCopyFunctionFinalizeInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_33a78a386647fcda =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_33a78a386647fcda_base (BG.toFFIType x0))
{-| Retrieves the global state provided during the init-phase of a @COPY ... TO@ function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The finalize info provided to the finalize function
__Returns:__ void*
__C declaration:__ @duckdb_copy_function_finalize_get_global_state@
__defined at:__ @duckdb.h 4324:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_finalize_get_global_state ::
DuckDBCopyFunctionFinalizeInfo
{- ^
[__@info@__]: The finalize info provided to the finalize function
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_copy_function_finalize_get_global_state =
hs_bindgen_33a78a386647fcda
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_copy_from_function@
foreign import ccall safe "hs_bindgen_168dd94dc4472ecc" hs_bindgen_168dd94dc4472ecc_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_copy_function_set_copy_from_function@
hs_bindgen_168dd94dc4472ecc ::
DuckDBCopyFunction
-> DuckDBTableFunction
-> IO ()
hs_bindgen_168dd94dc4472ecc =
\x0 ->
\x1 ->
hs_bindgen_168dd94dc4472ecc_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the table function to use when executing a @COPY ... FROM (...)@ statement with this copy function.
The table function must have a @t'DuckDBTableFunctionBindFun'@ , @t'DuckDBTableFunctionInitFun'@ and @t'DuckDBTableFunctionFun'@ set.
The table function must take a single VARCHAR parameter (the file path).
Options passed to the @COPY ... FROM (...)@ statement are forwarded as named parameters to the table function.
Since @COPY ... FROM@ copies into an already existing table, the table function should not define its own result columns using @'c_duckdb_bind_add_result_column'@ when binding . Instead use @'c_duckdb_table_function_bind_get_result_column_count'@ and related functions in the bind callback of the table function to retrieve the schema of the target table of the @COPY ... FROM@ statement.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@copy_function@__]: The copy function
[__@table_function@__]: The table function to use for @COPY ... FROM@
__Returns:__ void
__C declaration:__ @duckdb_copy_function_set_copy_from_function@
__defined at:__ @duckdb.h 4351:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_copy_function_set_copy_from_function ::
DuckDBCopyFunction
{- ^
[__@copy_function@__]: The copy function
__C declaration:__ @copy_function@
-}
-> DuckDBTableFunction
{- ^
[__@table_function@__]: The table function to use for @COPY ... FROM@
__C declaration:__ @table_function@
-}
-> IO ()
c_duckdb_copy_function_set_copy_from_function =
hs_bindgen_168dd94dc4472ecc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_data_chunk@
foreign import ccall safe "hs_bindgen_efb394485fc6a2bf" hs_bindgen_efb394485fc6a2bf_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_data_chunk@
hs_bindgen_efb394485fc6a2bf ::
BG.Ptr DuckDBLogicalType
-> DuckDBIdx
-> IO DuckDBDataChunk
hs_bindgen_efb394485fc6a2bf =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_efb394485fc6a2bf_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates an empty data chunk with the specified column types. The result must be destroyed with @'c_duckdb_destroy_data_chunk'@ .
history:
* stable: v0.3.3
[__@types@__]: An array of column types. Column types can not contain ANY and INVALID types.
[__@column_count@__]: The number of columns.
__Returns:__ t'DuckDBDataChunk'
__C declaration:__ @duckdb_create_data_chunk@
__defined at:__ @duckdb.h 4385:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_data_chunk ::
BG.Ptr DuckDBLogicalType
{- ^
[__@types@__]: An array of column types. Column types can not contain ANY and INVALID types.
__C declaration:__ @types@
-}
-> DuckDBIdx
{- ^
[__@column_count@__]: The number of columns.
__C declaration:__ @column_count@
-}
-> IO DuckDBDataChunk
c_duckdb_create_data_chunk =
hs_bindgen_efb394485fc6a2bf
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_data_chunk@
foreign import ccall safe "hs_bindgen_008e9a01c51088d0" hs_bindgen_008e9a01c51088d0_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_data_chunk@
hs_bindgen_008e9a01c51088d0 ::
BG.Ptr DuckDBDataChunk
-> IO ()
hs_bindgen_008e9a01c51088d0 =
\x0 ->
hs_bindgen_008e9a01c51088d0_base (BG.toFFIType x0)
{-| Destroys the data chunk and de-allocates all memory allocated for that chunk.
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_data_chunk@
__defined at:__ @duckdb.h 4398:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_data_chunk ::
BG.Ptr DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to destroy.
__C declaration:__ @chunk@
-}
-> IO ()
c_duckdb_destroy_data_chunk =
hs_bindgen_008e9a01c51088d0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_reset@
foreign import ccall safe "hs_bindgen_f0ed12c45e7de137" hs_bindgen_f0ed12c45e7de137_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_reset@
hs_bindgen_f0ed12c45e7de137 ::
DuckDBDataChunk
-> IO ()
hs_bindgen_f0ed12c45e7de137 =
\x0 ->
hs_bindgen_f0ed12c45e7de137_base (BG.toFFIType x0)
{-| Resets a data chunk, clearing the validity masks and setting the cardinality of the data chunk to 0. After calling this method, you must call @'c_duckdb_vector_get_validity'@ and @'c_duckdb_vector_get_data'@ to obtain current data and validity pointers
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to reset.
__Returns:__ void
__C declaration:__ @duckdb_data_chunk_reset@
__defined at:__ @duckdb.h 4413:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_reset ::
DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to reset.
__C declaration:__ @chunk@
-}
-> IO ()
c_duckdb_data_chunk_reset =
hs_bindgen_f0ed12c45e7de137
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_column_count@
foreign import ccall safe "hs_bindgen_46e003c5051990e9" hs_bindgen_46e003c5051990e9_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_column_count@
hs_bindgen_46e003c5051990e9 ::
DuckDBDataChunk
-> IO DuckDBIdx
hs_bindgen_46e003c5051990e9 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_46e003c5051990e9_base (BG.toFFIType x0))
{-| Retrieves the number of columns in a data chunk.
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to get the data from
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_data_chunk_get_column_count@
__defined at:__ @duckdb.h 4426:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_get_column_count ::
DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to get the data from
__C declaration:__ @chunk@
-}
-> IO DuckDBIdx
c_duckdb_data_chunk_get_column_count =
hs_bindgen_46e003c5051990e9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_vector@
foreign import ccall safe "hs_bindgen_e612eec3607eea8a" hs_bindgen_e612eec3607eea8a_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_vector@
hs_bindgen_e612eec3607eea8a ::
DuckDBDataChunk
-> DuckDBIdx
-> IO DuckDBVector
hs_bindgen_e612eec3607eea8a =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_e612eec3607eea8a_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the vector at the specified column index in the data chunk.
The pointer to the vector is valid for as long as the chunk is alive. It does NOT need to be destroyed.
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to get the data from
[__@col_idx@__]:
__Returns:__ t'DuckDBVector'
__C declaration:__ @duckdb_data_chunk_get_vector@
__defined at:__ @duckdb.h 4442:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_get_vector ::
DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to get the data from
__C declaration:__ @chunk@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]:
__C declaration:__ @col_idx@
-}
-> IO DuckDBVector
c_duckdb_data_chunk_get_vector =
hs_bindgen_e612eec3607eea8a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_size@
foreign import ccall safe "hs_bindgen_ff8f64d484345bc6" hs_bindgen_ff8f64d484345bc6_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_get_size@
hs_bindgen_ff8f64d484345bc6 ::
DuckDBDataChunk
-> IO DuckDBIdx
hs_bindgen_ff8f64d484345bc6 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ff8f64d484345bc6_base (BG.toFFIType x0))
{-| Retrieves the current number of tuples in a data chunk.
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to get the data from
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_data_chunk_get_size@
__defined at:__ @duckdb.h 4455:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_get_size ::
DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to get the data from
__C declaration:__ @chunk@
-}
-> IO DuckDBIdx
c_duckdb_data_chunk_get_size =
hs_bindgen_ff8f64d484345bc6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_set_size@
foreign import ccall safe "hs_bindgen_2dd65b55bf219b31" hs_bindgen_2dd65b55bf219b31_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_data_chunk_set_size@
hs_bindgen_2dd65b55bf219b31 ::
DuckDBDataChunk
-> DuckDBIdx
-> IO ()
hs_bindgen_2dd65b55bf219b31 =
\x0 ->
\x1 ->
hs_bindgen_2dd65b55bf219b31_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the current number of tuples in a data chunk.
history:
* stable: v0.3.3
[__@chunk@__]: The data chunk to set the size in
[__@size@__]: The number of tuples in the data chunk
__Returns:__ void
__C declaration:__ @duckdb_data_chunk_set_size@
__defined at:__ @duckdb.h 4469:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_data_chunk_set_size ::
DuckDBDataChunk
{- ^
[__@chunk@__]: The data chunk to set the size in
__C declaration:__ @chunk@
-}
-> DuckDBIdx
{- ^
[__@size@__]: The number of tuples in the data chunk
__C declaration:__ @size@
-}
-> IO ()
c_duckdb_data_chunk_set_size =
hs_bindgen_2dd65b55bf219b31
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_instance_cache@
foreign import ccall safe "hs_bindgen_af9dc862cc92484d" hs_bindgen_af9dc862cc92484d_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_instance_cache@
hs_bindgen_af9dc862cc92484d :: IO DuckDBInstanceCache
hs_bindgen_af9dc862cc92484d =
fmap BG.fromFFIType hs_bindgen_af9dc862cc92484d_base
{-| Creates a new database instance cache. The instance cache is necessary if a client/program (re)opens multiple databases to the same file within the same process. Must be destroyed with \'duckdb_destroy_instance_cache\'.
history:
* unstable: v1.2.0
* stable: v1.5.6
__Returns:__ t'DuckDBInstanceCache'
__C declaration:__ @duckdb_create_instance_cache@
__defined at:__ @duckdb.h 4501:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_instance_cache :: IO DuckDBInstanceCache
c_duckdb_create_instance_cache =
hs_bindgen_af9dc862cc92484d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_or_create_from_cache@
foreign import ccall safe "hs_bindgen_498dcd484fdb2257" hs_bindgen_498dcd484fdb2257_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_or_create_from_cache@
hs_bindgen_498dcd484fdb2257 ::
DuckDBInstanceCache
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBDatabase
-> DuckDBConfig
-> BG.Ptr (BG.Ptr BG.CChar)
-> IO DuckDBState
hs_bindgen_498dcd484fdb2257 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_498dcd484fdb2257_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| Creates a new database instance in the instance cache, or retrieves an existing database instance. Must be closed with \'duckdb_close\'.
history:
* unstable: v1.2.0
* stable: v1.5.6
[__@instance_cache@__]: The instance cache in which to create the database, or from which to take the database.
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open or retrieve an in-memory database.
[__@out_database@__]: The resulting cached database.
[__@config@__]: (Optional) configuration used to create the database.
[__@out_error@__]: If set and the function returns @@DuckDBError@@ , this contains the error message. Note that the error message must be freed using @'c_duckdb_free'@ .
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_get_or_create_from_cache@
__defined at:__ @duckdb.h 4521:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_or_create_from_cache ::
DuckDBInstanceCache
{- ^
[__@instance_cache@__]: The instance cache in which to create the database, or from which to take the database.
__C declaration:__ @instance_cache@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open or retrieve an in-memory database.
__C declaration:__ @path@
-}
-> BG.Ptr DuckDBDatabase
{- ^
[__@out_database@__]: The resulting cached database.
__C declaration:__ @out_database@
-}
-> DuckDBConfig
{- ^
[__@config@__]: (Optional) configuration used to create the database.
__C declaration:__ @config@
-}
-> BG.Ptr (BG.Ptr BG.CChar)
{- ^
[__@out_error@__]: If set and the function returns @@DuckDBError@@ , this contains the error message. Note that the error message must be freed using @'c_duckdb_free'@ .
__C declaration:__ @out_error@
-}
-> IO DuckDBState
c_duckdb_get_or_create_from_cache =
hs_bindgen_498dcd484fdb2257
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_instance_cache@
foreign import ccall safe "hs_bindgen_4880238d117a9624" hs_bindgen_4880238d117a9624_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_instance_cache@
hs_bindgen_4880238d117a9624 ::
BG.Ptr DuckDBInstanceCache
-> IO ()
hs_bindgen_4880238d117a9624 =
\x0 ->
hs_bindgen_4880238d117a9624_base (BG.toFFIType x0)
{-| Destroys an existing database instance cache and de-allocates its memory.
history:
* unstable: v1.2.0
* stable: v1.5.6
[__@instance_cache@__]: The instance cache to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_instance_cache@
__defined at:__ @duckdb.h 4537:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_instance_cache ::
BG.Ptr DuckDBInstanceCache
{- ^
[__@instance_cache@__]: The instance cache to destroy.
__C declaration:__ @instance_cache@
-}
-> IO ()
c_duckdb_destroy_instance_cache =
hs_bindgen_4880238d117a9624
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_open@
foreign import ccall safe "hs_bindgen_20ccd2dffd9e2deb" hs_bindgen_20ccd2dffd9e2deb_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_open@
hs_bindgen_20ccd2dffd9e2deb ::
PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBDatabase
-> IO DuckDBState
hs_bindgen_20ccd2dffd9e2deb =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_20ccd2dffd9e2deb_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a new database or opens an existing database file stored at the given path. If no path is given a new in-memory database is created instead. The database must be closed with \'duckdb_close\'.
history:
* stable: v0.1.0
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open an in-memory database.
[__@out_database@__]: The result database object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_open@
__defined at:__ @duckdb.h 4551:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_open ::
PtrConst.PtrConst BG.CChar
{- ^
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open an in-memory database.
__C declaration:__ @path@
-}
-> BG.Ptr DuckDBDatabase
{- ^
[__@out_database@__]: The result database object.
__C declaration:__ @out_database@
-}
-> IO DuckDBState
c_duckdb_open = hs_bindgen_20ccd2dffd9e2deb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_open_ext@
foreign import ccall safe "hs_bindgen_29742fa56b59b577" hs_bindgen_29742fa56b59b577_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_open_ext@
hs_bindgen_29742fa56b59b577 ::
PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBDatabase
-> DuckDBConfig
-> BG.Ptr (BG.Ptr BG.CChar)
-> IO DuckDBState
hs_bindgen_29742fa56b59b577 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_29742fa56b59b577_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path. The database must be closed with \'duckdb_close\'.
history:
* stable: v0.2.8
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open an in-memory database.
[__@out_database@__]: The result database object.
[__@config@__]: (Optional) configuration used to start up the database.
[__@out_error@__]: If set and the function returns @@DuckDBError@@ , this contains the error message. Note that the error message must be freed using @'c_duckdb_free'@ .
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_open_ext@
__defined at:__ @duckdb.h 4568:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_open_ext ::
PtrConst.PtrConst BG.CChar
{- ^
[__@path@__]: Path to the database file on disk. Both @nullptr@ and @:memory:@ open an in-memory database.
__C declaration:__ @path@
-}
-> BG.Ptr DuckDBDatabase
{- ^
[__@out_database@__]: The result database object.
__C declaration:__ @out_database@
-}
-> DuckDBConfig
{- ^
[__@config@__]: (Optional) configuration used to start up the database.
__C declaration:__ @config@
-}
-> BG.Ptr (BG.Ptr BG.CChar)
{- ^
[__@out_error@__]: If set and the function returns @@DuckDBError@@ , this contains the error message. Note that the error message must be freed using @'c_duckdb_free'@ .
__C declaration:__ @out_error@
-}
-> IO DuckDBState
c_duckdb_open_ext = hs_bindgen_29742fa56b59b577
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_close@
foreign import ccall safe "hs_bindgen_9612218d8dfe8da0" hs_bindgen_9612218d8dfe8da0_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_close@
hs_bindgen_9612218d8dfe8da0 ::
BG.Ptr DuckDBDatabase
-> IO ()
hs_bindgen_9612218d8dfe8da0 =
\x0 ->
hs_bindgen_9612218d8dfe8da0_base (BG.toFFIType x0)
{-| Closes the specified database and de-allocates all memory allocated for that database. This should be called after you are done with any database allocated through @'c_duckdb_open'@ or @'c_duckdb_open_ext'@ . Note that failing to call @'c_duckdb_close'@ (in case of e.g. a program crash) will not cause data corruption. Still, it is recommended to always correctly close a database object after you are done with it.
history:
* stable: v0.1.0
[__@database@__]: The database object to shut down.
__Returns:__ void
__C declaration:__ @duckdb_close@
__defined at:__ @duckdb.h 4584:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_close ::
BG.Ptr DuckDBDatabase
{- ^
[__@database@__]: The database object to shut down.
__C declaration:__ @database@
-}
-> IO ()
c_duckdb_close = hs_bindgen_9612218d8dfe8da0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_library_version@
foreign import ccall safe "hs_bindgen_6054bd05f5439f26" hs_bindgen_6054bd05f5439f26_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_library_version@
hs_bindgen_6054bd05f5439f26 :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_6054bd05f5439f26 =
fmap BG.fromFFIType hs_bindgen_6054bd05f5439f26_base
{-| Returns the version of the linked DuckDB, with a version postfix for dev versions
Usually used for developing C extensions that must return this for a compatibility check.
history:
* stable: v0.6.0
__Returns:__ const char*
__C declaration:__ @duckdb_library_version@
__defined at:__ @duckdb.h 4597:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_library_version :: IO (PtrConst.PtrConst BG.CChar)
c_duckdb_library_version =
hs_bindgen_6054bd05f5439f26
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_config@
foreign import ccall safe "hs_bindgen_9952cdd696ea9b64" hs_bindgen_9952cdd696ea9b64_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_config@
hs_bindgen_9952cdd696ea9b64 ::
BG.Ptr DuckDBConfig
-> IO DuckDBState
hs_bindgen_9952cdd696ea9b64 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_9952cdd696ea9b64_base (BG.toFFIType x0))
{-|
Initializes an empty configuration object that can be used to provide start-up options for the DuckDB instance through @'c_duckdb_open_ext'@ . The t'DuckDBConfig' must be destroyed using \'duckdb_destroy_config\'
This will always succeed unless there is a malloc failure.
Note that @'c_duckdb_destroy_config'@ should always be called on the resulting config, even if the function returns @@DuckDBError@@ .
history:
* stable: v0.2.8
[__@out_config@__]: The result configuration object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_create_config@
__defined at:__ @duckdb.h 4616:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_config ::
BG.Ptr DuckDBConfig
{- ^
[__@out_config@__]: The result configuration object.
__C declaration:__ @out_config@
-}
-> IO DuckDBState
c_duckdb_create_config = hs_bindgen_9952cdd696ea9b64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_count@
foreign import ccall safe "hs_bindgen_716854cee27243ac" hs_bindgen_716854cee27243ac_base ::
IO HsBindgen.Runtime.LibC.CSize
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_config_count@
hs_bindgen_716854cee27243ac :: IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_716854cee27243ac =
fmap BG.fromFFIType hs_bindgen_716854cee27243ac_base
{-| This returns the total amount of configuration options available for usage with @'c_duckdb_get_config_flag'@ .
This should not be called in a loop as it internally loops over all the options.
history:
* stable: v0.2.8
__Returns:__ size_t
__C declaration:__ @duckdb_config_count@
__defined at:__ @duckdb.h 4630:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_config_count :: IO HsBindgen.Runtime.LibC.CSize
c_duckdb_config_count = hs_bindgen_716854cee27243ac
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_config_flag@
foreign import ccall safe "hs_bindgen_9c4946fb7bbd79d4" hs_bindgen_9c4946fb7bbd79d4_base ::
HsBindgen.Runtime.LibC.CSize
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_config_flag@
hs_bindgen_9c4946fb7bbd79d4 ::
HsBindgen.Runtime.LibC.CSize
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> IO DuckDBState
hs_bindgen_9c4946fb7bbd79d4 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_9c4946fb7bbd79d4_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Obtains a human-readable name and description of a specific configuration option. This can be used to e.g. display configuration options. This will succeed unless @index@ is out of range (i.e. @>= 'c_duckdb_config_count'@ ).
The result name or description MUST NOT be freed.
history:
* stable: v0.2.8
[__@index@__]: The index of the configuration option (between 0 and @'c_duckdb_config_count'@ )
[__@out_name@__]: A name of the configuration flag.
[__@out_description@__]: A description of the configuration flag.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_get_config_flag@
__defined at:__ @duckdb.h 4648:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_config_flag ::
HsBindgen.Runtime.LibC.CSize
{- ^
[__@index@__]: The index of the configuration option (between 0 and @'c_duckdb_config_count'@ )
__C declaration:__ @index@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@out_name@__]: A name of the configuration flag.
__C declaration:__ @out_name@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@out_description@__]: A description of the configuration flag.
__C declaration:__ @out_description@
-}
-> IO DuckDBState
c_duckdb_get_config_flag =
hs_bindgen_9c4946fb7bbd79d4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_set_config@
foreign import ccall safe "hs_bindgen_1d6e19093e0033ae" hs_bindgen_1d6e19093e0033ae_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_set_config@
hs_bindgen_1d6e19093e0033ae ::
DuckDBConfig
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBState
hs_bindgen_1d6e19093e0033ae =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_1d6e19093e0033ae_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Sets the specified option for the specified configuration. The configuration option is indicated by name. To obtain a list of config options, see @'c_duckdb_get_config_flag'@ .
In the source code, configuration options are defined in @config.cpp@ .
This can fail if either the name is invalid, or if the value provided for the option is invalid.
history:
* stable: v0.2.8
[__@config@__]: The configuration object to set the option on.
[__@name@__]: The name of the configuration flag to set.
[__@option@__]: The value to set the configuration flag to.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_set_config@
__defined at:__ @duckdb.h 4668:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_set_config ::
DuckDBConfig
{- ^
[__@config@__]: The configuration object to set the option on.
__C declaration:__ @config@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the configuration flag to set.
__C declaration:__ @name@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@option@__]: The value to set the configuration flag to.
__C declaration:__ @option@
-}
-> IO DuckDBState
c_duckdb_set_config = hs_bindgen_1d6e19093e0033ae
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_config@
foreign import ccall safe "hs_bindgen_2de3b7a816583458" hs_bindgen_2de3b7a816583458_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_config@
hs_bindgen_2de3b7a816583458 ::
BG.Ptr DuckDBConfig
-> IO ()
hs_bindgen_2de3b7a816583458 =
\x0 ->
hs_bindgen_2de3b7a816583458_base (BG.toFFIType x0)
{-| Destroys the specified configuration object and de-allocates all memory allocated for the object.
history:
* stable: v0.2.8
[__@config@__]: The configuration object to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_config@
__defined at:__ @duckdb.h 4681:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_config ::
BG.Ptr DuckDBConfig
{- ^
[__@config@__]: The configuration object to destroy.
__C declaration:__ @config@
-}
-> IO ()
c_duckdb_destroy_config = hs_bindgen_2de3b7a816583458
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_expression@
foreign import ccall safe "hs_bindgen_b2793b95993b27a0" hs_bindgen_b2793b95993b27a0_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_expression@
hs_bindgen_b2793b95993b27a0 ::
BG.Ptr DuckDBExpression
-> IO ()
hs_bindgen_b2793b95993b27a0 =
\x0 ->
hs_bindgen_b2793b95993b27a0_base (BG.toFFIType x0)
{-| Destroys the expression and de-allocates its memory.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@expr@__]: A pointer to the expression.
__Returns:__ void
__C declaration:__ @duckdb_destroy_expression@
__defined at:__ @duckdb.h 4713:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_expression ::
BG.Ptr DuckDBExpression
{- ^
[__@expr@__]: A pointer to the expression.
__C declaration:__ @expr@
-}
-> IO ()
c_duckdb_destroy_expression =
hs_bindgen_b2793b95993b27a0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_return_type@
foreign import ccall safe "hs_bindgen_cdabf4b2938479e7" hs_bindgen_cdabf4b2938479e7_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_return_type@
hs_bindgen_cdabf4b2938479e7 ::
DuckDBExpression
-> IO DuckDBLogicalType
hs_bindgen_cdabf4b2938479e7 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_cdabf4b2938479e7_base (BG.toFFIType x0))
{-| Returns the return type of an expression.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@expr@__]: The expression.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_expression_return_type@
__defined at:__ @duckdb.h 4727:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_expression_return_type ::
DuckDBExpression
{- ^
[__@expr@__]: The expression.
__C declaration:__ @expr@
-}
-> IO DuckDBLogicalType
c_duckdb_expression_return_type =
hs_bindgen_cdabf4b2938479e7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_is_foldable@
foreign import ccall safe "hs_bindgen_5206a378aa1aed90" hs_bindgen_5206a378aa1aed90_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_is_foldable@
hs_bindgen_5206a378aa1aed90 ::
DuckDBExpression
-> IO BG.CBool
hs_bindgen_5206a378aa1aed90 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5206a378aa1aed90_base (BG.toFFIType x0))
{-| Returns whether the expression is foldable into a value or not.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@expr@__]: The expression.
__Returns:__ bool
__C declaration:__ @duckdb_expression_is_foldable@
__defined at:__ @duckdb.h 4741:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_expression_is_foldable ::
DuckDBExpression
{- ^
[__@expr@__]: The expression.
__C declaration:__ @expr@
-}
-> IO BG.CBool
c_duckdb_expression_is_foldable =
hs_bindgen_5206a378aa1aed90
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_fold@
foreign import ccall safe "hs_bindgen_218c780f483b4c25" hs_bindgen_218c780f483b4c25_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_expression_fold@
hs_bindgen_218c780f483b4c25 ::
DuckDBClientContext
-> DuckDBExpression
-> BG.Ptr DuckDBValue
-> IO DuckDBErrorData
hs_bindgen_218c780f483b4c25 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_218c780f483b4c25_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Folds an expression creating a folded value.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@context@__]: The client context.
[__@expr@__]: The expression. Must be foldable.
[__@out_value@__]: The folded value, if folding was successful. Must be destroyed with @'c_duckdb_destroy_value'@ .
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_expression_fold@
__defined at:__ @duckdb.h 4757:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_expression_fold ::
DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> DuckDBExpression
{- ^
[__@expr@__]: The expression. Must be foldable.
__C declaration:__ @expr@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@out_value@__]: The folded value, if folding was successful. Must be destroyed with @'c_duckdb_destroy_value'@ .
__C declaration:__ @out_value@
-}
-> IO DuckDBErrorData
c_duckdb_expression_fold =
hs_bindgen_218c780f483b4c25
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_file_system@
foreign import ccall safe "hs_bindgen_86de50508a218279" hs_bindgen_86de50508a218279_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_client_context_get_file_system@
hs_bindgen_86de50508a218279 ::
DuckDBClientContext
-> IO DuckDBFileSystem
hs_bindgen_86de50508a218279 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_86de50508a218279_base (BG.toFFIType x0))
{-| Get a file system instance associated with the given client context.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@context@__]: The client context.
__Returns:__ t'DuckDBFileSystem'
__C declaration:__ @duckdb_client_context_get_file_system@
__defined at:__ @duckdb.h 4790:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_client_context_get_file_system ::
DuckDBClientContext
{- ^
[__@context@__]: The client context.
__C declaration:__ @context@
-}
-> IO DuckDBFileSystem
c_duckdb_client_context_get_file_system =
hs_bindgen_86de50508a218279
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_system@
foreign import ccall safe "hs_bindgen_15fa74b0654878cf" hs_bindgen_15fa74b0654878cf_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_system@
hs_bindgen_15fa74b0654878cf ::
BG.Ptr DuckDBFileSystem
-> IO ()
hs_bindgen_15fa74b0654878cf =
\x0 ->
hs_bindgen_15fa74b0654878cf_base (BG.toFFIType x0)
{-| Destroys the given file system instance.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_system@__]: The file system instance to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_file_system@
__defined at:__ @duckdb.h 4804:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_file_system ::
BG.Ptr DuckDBFileSystem
{- ^
[__@file_system@__]: The file system instance to destroy.
__C declaration:__ @file_system@
-}
-> IO ()
c_duckdb_destroy_file_system =
hs_bindgen_15fa74b0654878cf
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_system_error_data@
foreign import ccall safe "hs_bindgen_69adcdaa1e007d5a" hs_bindgen_69adcdaa1e007d5a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_system_error_data@
hs_bindgen_69adcdaa1e007d5a ::
DuckDBFileSystem
-> IO DuckDBErrorData
hs_bindgen_69adcdaa1e007d5a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_69adcdaa1e007d5a_base (BG.toFFIType x0))
{-| Retrieves the last error that occurred on the given file system instance.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_system@__]: The file system instance.
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_file_system_error_data@
__defined at:__ @duckdb.h 4818:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_system_error_data ::
DuckDBFileSystem
{- ^
[__@file_system@__]: The file system instance.
__C declaration:__ @file_system@
-}
-> IO DuckDBErrorData
c_duckdb_file_system_error_data =
hs_bindgen_69adcdaa1e007d5a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_system_open@
foreign import ccall safe "hs_bindgen_5751f4feb4d71533" hs_bindgen_5751f4feb4d71533_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_system_open@
hs_bindgen_5751f4feb4d71533 ::
DuckDBFileSystem
-> PtrConst.PtrConst BG.CChar
-> DuckDBFileOpenOptions
-> BG.Ptr DuckDBFileHandle
-> IO DuckDBState
hs_bindgen_5751f4feb4d71533 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_5751f4feb4d71533_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Opens a file at the given path with the specified options.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_system@__]: The file system instance.
[__@path@__]: The path to the file.
[__@options@__]: The file open options specifying how to open the file.
[__@out_file@__]: The resulting file handle instance, or @nullptr@ if the open failed. Must be destroyed with @'c_duckdb_destroy_file_handle'@ .
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_file_system_open@
__defined at:__ @duckdb.h 4836:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_system_open ::
DuckDBFileSystem
{- ^
[__@file_system@__]: The file system instance.
__C declaration:__ @file_system@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@path@__]: The path to the file.
__C declaration:__ @path@
-}
-> DuckDBFileOpenOptions
{- ^
[__@options@__]: The file open options specifying how to open the file.
__C declaration:__ @options@
-}
-> BG.Ptr DuckDBFileHandle
{- ^
[__@out_file@__]: The resulting file handle instance, or @nullptr@ if the open failed. Must be destroyed with @'c_duckdb_destroy_file_handle'@ .
__C declaration:__ @out_file@
-}
-> IO DuckDBState
c_duckdb_file_system_open =
hs_bindgen_5751f4feb4d71533
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_file_open_options@
foreign import ccall safe "hs_bindgen_539de38e0bab26c5" hs_bindgen_539de38e0bab26c5_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_file_open_options@
hs_bindgen_539de38e0bab26c5 :: IO DuckDBFileOpenOptions
hs_bindgen_539de38e0bab26c5 =
fmap BG.fromFFIType hs_bindgen_539de38e0bab26c5_base
{-| Creates a new file open options instance with blank settings.
history:
* unstable: v1.5.0
* stable: v1.5.6
__Returns:__ t'DuckDBFileOpenOptions'
__C declaration:__ @duckdb_create_file_open_options@
__defined at:__ @duckdb.h 4850:39@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_file_open_options :: IO DuckDBFileOpenOptions
c_duckdb_create_file_open_options =
hs_bindgen_539de38e0bab26c5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_open_options_set_flag@
foreign import ccall safe "hs_bindgen_ffd94c80e2976995" hs_bindgen_ffd94c80e2976995_base ::
BG.Ptr BG.Void
-> BG.CUInt
-> BG.CBool
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_open_options_set_flag@
hs_bindgen_ffd94c80e2976995 ::
DuckDBFileOpenOptions
-> DuckDBFileFlag
-> BG.CBool
-> IO DuckDBState
hs_bindgen_ffd94c80e2976995 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_ffd94c80e2976995_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Sets a specific flag in the file open options.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@options@__]: The file open options instance.
[__@flag@__]: The flag to set (e.g., read, write).
[__@value@__]: If the flag is enabled or disabled.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_file_open_options_set_flag@
__defined at:__ @duckdb.h 4866:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_open_options_set_flag ::
DuckDBFileOpenOptions
{- ^
[__@options@__]: The file open options instance.
__C declaration:__ @options@
-}
-> DuckDBFileFlag
{- ^
[__@flag@__]: The flag to set (e.g., read, write).
__C declaration:__ @flag@
-}
-> BG.CBool
{- ^
[__@value@__]: If the flag is enabled or disabled.
__C declaration:__ @value@
-}
-> IO DuckDBState
c_duckdb_file_open_options_set_flag =
hs_bindgen_ffd94c80e2976995
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_open_options@
foreign import ccall safe "hs_bindgen_cf37e39c2d419a08" hs_bindgen_cf37e39c2d419a08_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_open_options@
hs_bindgen_cf37e39c2d419a08 ::
BG.Ptr DuckDBFileOpenOptions
-> IO ()
hs_bindgen_cf37e39c2d419a08 =
\x0 ->
hs_bindgen_cf37e39c2d419a08_base (BG.toFFIType x0)
{-| Destroys the given file open options instance.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@options@__]: The file open options instance to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_file_open_options@
__defined at:__ @duckdb.h 4881:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_file_open_options ::
BG.Ptr DuckDBFileOpenOptions
{- ^
[__@options@__]: The file open options instance to destroy.
__C declaration:__ @options@
-}
-> IO ()
c_duckdb_destroy_file_open_options =
hs_bindgen_cf37e39c2d419a08
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_handle@
foreign import ccall safe "hs_bindgen_aad6fac9a0994e02" hs_bindgen_aad6fac9a0994e02_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_file_handle@
hs_bindgen_aad6fac9a0994e02 ::
BG.Ptr DuckDBFileHandle
-> IO ()
hs_bindgen_aad6fac9a0994e02 =
\x0 ->
hs_bindgen_aad6fac9a0994e02_base (BG.toFFIType x0)
{-| Destroys the given file handle and deallocates all associated resources. This will also close the file if it is still open.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_file_handle@
__defined at:__ @duckdb.h 4896:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_file_handle ::
BG.Ptr DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to destroy.
__C declaration:__ @file_handle@
-}
-> IO ()
c_duckdb_destroy_file_handle =
hs_bindgen_aad6fac9a0994e02
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_error_data@
foreign import ccall safe "hs_bindgen_5e1f67bf3efc2c36" hs_bindgen_5e1f67bf3efc2c36_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_error_data@
hs_bindgen_5e1f67bf3efc2c36 ::
DuckDBFileHandle
-> IO DuckDBErrorData
hs_bindgen_5e1f67bf3efc2c36 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5e1f67bf3efc2c36_base (BG.toFFIType x0))
{-| Retrieves the last error that occurred on the given file handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle.
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_file_handle_error_data@
__defined at:__ @duckdb.h 4910:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_error_data ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle.
__C declaration:__ @file_handle@
-}
-> IO DuckDBErrorData
c_duckdb_file_handle_error_data =
hs_bindgen_5e1f67bf3efc2c36
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_read@
foreign import ccall safe "hs_bindgen_4b1fa3c92c7ccebd" hs_bindgen_4b1fa3c92c7ccebd_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_read@
hs_bindgen_4b1fa3c92c7ccebd ::
DuckDBFileHandle
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_4b1fa3c92c7ccebd =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_4b1fa3c92c7ccebd_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Reads data from the file into the buffer.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to read from.
[__@buffer@__]: The buffer to read data into.
[__@size@__]: The number of bytes to read.
__Returns:__ int64_t
__C declaration:__ @duckdb_file_handle_read@
__defined at:__ @duckdb.h 4926:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_read ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to read from.
__C declaration:__ @file_handle@
-}
-> BG.Ptr BG.Void
{- ^
[__@buffer@__]: The buffer to read data into.
__C declaration:__ @buffer@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@size@__]: The number of bytes to read.
__C declaration:__ @size@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_file_handle_read =
hs_bindgen_4b1fa3c92c7ccebd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_write@
foreign import ccall safe "hs_bindgen_b76782389ae4d98e" hs_bindgen_b76782389ae4d98e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_write@
hs_bindgen_b76782389ae4d98e ::
DuckDBFileHandle
-> PtrConst.PtrConst BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_b76782389ae4d98e =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_b76782389ae4d98e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Writes data from the buffer to the file.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to write to.
[__@buffer@__]: The buffer containing data to write.
[__@size@__]: The number of bytes to write.
__Returns:__ int64_t
__C declaration:__ @duckdb_file_handle_write@
__defined at:__ @duckdb.h 4942:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_write ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to write to.
__C declaration:__ @file_handle@
-}
-> PtrConst.PtrConst BG.Void
{- ^
[__@buffer@__]: The buffer containing data to write.
__C declaration:__ @buffer@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@size@__]: The number of bytes to write.
__C declaration:__ @size@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_file_handle_write =
hs_bindgen_b76782389ae4d98e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_tell@
foreign import ccall safe "hs_bindgen_aadecefadd076fa0" hs_bindgen_aadecefadd076fa0_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_tell@
hs_bindgen_aadecefadd076fa0 ::
DuckDBFileHandle
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_aadecefadd076fa0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_aadecefadd076fa0_base (BG.toFFIType x0))
{-| Tells the current position in the file.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to tell the position of.
__Returns:__ int64_t
__C declaration:__ @duckdb_file_handle_tell@
__defined at:__ @duckdb.h 4956:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_tell ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to tell the position of.
__C declaration:__ @file_handle@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_file_handle_tell =
hs_bindgen_aadecefadd076fa0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_size@
foreign import ccall safe "hs_bindgen_116d5a219fefe068" hs_bindgen_116d5a219fefe068_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_size@
hs_bindgen_116d5a219fefe068 ::
DuckDBFileHandle
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_116d5a219fefe068 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_116d5a219fefe068_base (BG.toFFIType x0))
{-| Gets the size of the file.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to get the size of.
__Returns:__ int64_t
__C declaration:__ @duckdb_file_handle_size@
__defined at:__ @duckdb.h 4970:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_size ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to get the size of.
__C declaration:__ @file_handle@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_file_handle_size =
hs_bindgen_116d5a219fefe068
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_seek@
foreign import ccall safe "hs_bindgen_0bc01ea1e012d827" hs_bindgen_0bc01ea1e012d827_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_seek@
hs_bindgen_0bc01ea1e012d827 ::
DuckDBFileHandle
-> HsBindgen.Runtime.LibC.Int64
-> IO DuckDBState
hs_bindgen_0bc01ea1e012d827 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_0bc01ea1e012d827_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Seeks to a specific position in the file.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to seek in.
[__@position@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_file_handle_seek@
__defined at:__ @duckdb.h 4985:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_seek ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to seek in.
__C declaration:__ @file_handle@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@position@__]:
__C declaration:__ @position@
-}
-> IO DuckDBState
c_duckdb_file_handle_seek =
hs_bindgen_0bc01ea1e012d827
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_sync@
foreign import ccall safe "hs_bindgen_54f8658c443ae0c1" hs_bindgen_54f8658c443ae0c1_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_sync@
hs_bindgen_54f8658c443ae0c1 ::
DuckDBFileHandle
-> IO DuckDBState
hs_bindgen_54f8658c443ae0c1 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_54f8658c443ae0c1_base (BG.toFFIType x0))
{-| Synchronizes the file\'s state with the underlying storage.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to synchronize.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_file_handle_sync@
__defined at:__ @duckdb.h 4999:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_sync ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to synchronize.
__C declaration:__ @file_handle@
-}
-> IO DuckDBState
c_duckdb_file_handle_sync =
hs_bindgen_54f8658c443ae0c1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_close@
foreign import ccall safe "hs_bindgen_b5d3891ef9f994e8" hs_bindgen_b5d3891ef9f994e8_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_file_handle_close@
hs_bindgen_b5d3891ef9f994e8 ::
DuckDBFileHandle
-> IO DuckDBState
hs_bindgen_b5d3891ef9f994e8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b5d3891ef9f994e8_base (BG.toFFIType x0))
{-| Closes the given file handle.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@file_handle@__]: The file handle to close.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_file_handle_close@
__defined at:__ @duckdb.h 5013:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_file_handle_close ::
DuckDBFileHandle
{- ^
[__@file_handle@__]: The file handle to close.
__C declaration:__ @file_handle@
-}
-> IO DuckDBState
c_duckdb_file_handle_close =
hs_bindgen_b5d3891ef9f994e8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_log_storage@
foreign import ccall safe "hs_bindgen_f82dcf7bc4f9f778" hs_bindgen_f82dcf7bc4f9f778_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_log_storage@
hs_bindgen_f82dcf7bc4f9f778 :: IO DuckDBLogStorage
hs_bindgen_f82dcf7bc4f9f778 =
fmap BG.fromFFIType hs_bindgen_f82dcf7bc4f9f778_base
{-| Creates a new log storage object.
history:
* unstable: v1.5.0
* stable: v1.5.6
__Returns:__ t'DuckDBLogStorage'
__C declaration:__ @duckdb_create_log_storage@
__defined at:__ @duckdb.h 5044:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_log_storage :: IO DuckDBLogStorage
c_duckdb_create_log_storage =
hs_bindgen_f82dcf7bc4f9f778
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_log_storage@
foreign import ccall safe "hs_bindgen_88b771f8afe3bd0d" hs_bindgen_88b771f8afe3bd0d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_log_storage@
hs_bindgen_88b771f8afe3bd0d ::
BG.Ptr DuckDBLogStorage
-> IO ()
hs_bindgen_88b771f8afe3bd0d =
\x0 ->
hs_bindgen_88b771f8afe3bd0d_base (BG.toFFIType x0)
{-| Destroys a log storage object.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@log_storage@__]: The log storage object to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_log_storage@
__defined at:__ @duckdb.h 5058:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_log_storage ::
BG.Ptr DuckDBLogStorage
{- ^
[__@log_storage@__]: The log storage object to destroy.
__C declaration:__ @log_storage@
-}
-> IO ()
c_duckdb_destroy_log_storage =
hs_bindgen_88b771f8afe3bd0d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_write_log_entry@
foreign import ccall safe "hs_bindgen_b3f6a07d7d042e63" hs_bindgen_b3f6a07d7d042e63_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_write_log_entry@
hs_bindgen_b3f6a07d7d042e63 ::
DuckDBLogStorage
-> DuckDBLoggerWriteLogEntryFun
-> IO ()
hs_bindgen_b3f6a07d7d042e63 =
\x0 ->
\x1 ->
hs_bindgen_b3f6a07d7d042e63_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the callback function for writing log entries.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@log_storage@__]: The log storage object.
[__@function@__]: The function to call.
__Returns:__ void
__C declaration:__ @duckdb_log_storage_set_write_log_entry@
__defined at:__ @duckdb.h 5073:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_log_storage_set_write_log_entry ::
DuckDBLogStorage
{- ^
[__@log_storage@__]: The log storage object.
__C declaration:__ @log_storage@
-}
-> DuckDBLoggerWriteLogEntryFun
{- ^
[__@function@__]: The function to call.
__C declaration:__ @function@
-}
-> IO ()
c_duckdb_log_storage_set_write_log_entry =
hs_bindgen_b3f6a07d7d042e63
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_extra_data@
foreign import ccall safe "hs_bindgen_b1b907492c570cdc" hs_bindgen_b1b907492c570cdc_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_extra_data@
hs_bindgen_b1b907492c570cdc ::
DuckDBLogStorage
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_b1b907492c570cdc =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_b1b907492c570cdc_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the extra data of the custom log storage.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@log_storage@__]: The log storage object.
[__@extra_data@__]: The extra data that is passed back into the callbacks.
[__@delete_callback@__]:
__Returns:__ void
__C declaration:__ @duckdb_log_storage_set_extra_data@
__defined at:__ @duckdb.h 5090:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_log_storage_set_extra_data ::
DuckDBLogStorage
{- ^
[__@log_storage@__]: The log storage object.
__C declaration:__ @log_storage@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_data@__]: The extra data that is passed back into the callbacks.
__C declaration:__ @extra_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@delete_callback@__]:
__C declaration:__ @delete_callback@
-}
-> IO ()
c_duckdb_log_storage_set_extra_data =
hs_bindgen_b1b907492c570cdc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_name@
foreign import ccall safe "hs_bindgen_c76226d0eeb4e836" hs_bindgen_c76226d0eeb4e836_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_log_storage_set_name@
hs_bindgen_c76226d0eeb4e836 ::
DuckDBLogStorage
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_c76226d0eeb4e836 =
\x0 ->
\x1 ->
hs_bindgen_c76226d0eeb4e836_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the log storage.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@log_storage@__]: The log storage object.
[__@name@__]: The name of the log storage.
__Returns:__ void
__C declaration:__ @duckdb_log_storage_set_name@
__defined at:__ @duckdb.h 5106:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_log_storage_set_name ::
DuckDBLogStorage
{- ^
[__@log_storage@__]: The log storage object.
__C declaration:__ @log_storage@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the log storage.
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_log_storage_set_name =
hs_bindgen_c76226d0eeb4e836
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_log_storage@
foreign import ccall safe "hs_bindgen_0c9ec8ed934fd689" hs_bindgen_0c9ec8ed934fd689_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_log_storage@
hs_bindgen_0c9ec8ed934fd689 ::
DuckDBDatabase
-> DuckDBLogStorage
-> IO DuckDBState
hs_bindgen_0c9ec8ed934fd689 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_0c9ec8ed934fd689_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Registers a custom log storage for the logger.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@database@__]: A database object.
[__@log_storage@__]: The log storage object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_log_storage@
__defined at:__ @duckdb.h 5121:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_log_storage ::
DuckDBDatabase
{- ^
[__@database@__]: A database object.
__C declaration:__ @database@
-}
-> DuckDBLogStorage
{- ^
[__@log_storage@__]: The log storage object.
__C declaration:__ @log_storage@
-}
-> IO DuckDBState
c_duckdb_register_log_storage =
hs_bindgen_0c9ec8ed934fd689
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_logical_type@
foreign import ccall safe "hs_bindgen_6730a3125961d1ce" hs_bindgen_6730a3125961d1ce_base ::
BG.CUInt
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_logical_type@
hs_bindgen_6730a3125961d1ce ::
DuckDBTypeAlias
-> IO DuckDBLogicalType
hs_bindgen_6730a3125961d1ce =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6730a3125961d1ce_base (BG.toFFIType x0))
{-| Creates a @t'DuckDBLogicalType'@ from a primitive type. The resulting logical type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
Returns an invalid logical type, if type is: @@DUCKDB_TYPE_INVALID@@ , @@DUCKDB_TYPE_DECIMAL@@ , @@DUCKDB_TYPE_ENUM@@ , @@DUCKDB_TYPE_LIST@@ , @@DUCKDB_TYPE_STRUCT@@ , @@DUCKDB_TYPE_MAP@@ , @@DUCKDB_TYPE_ARRAY@@ , or @@DUCKDB_TYPE_UNION@@ .
history:
* stable: v0.3.3
[__@type@__]: The primitive type to create.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_logical_type@
__defined at:__ @duckdb.h 5156:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_logical_type ::
DuckDBTypeAlias
{- ^
[__@type@__]: The primitive type to create.
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_create_logical_type =
hs_bindgen_6730a3125961d1ce
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_logical_type_get_alias@
foreign import ccall safe "hs_bindgen_8bf9efd96355ccc8" hs_bindgen_8bf9efd96355ccc8_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_logical_type_get_alias@
hs_bindgen_8bf9efd96355ccc8 ::
DuckDBLogicalType
-> IO (BG.Ptr BG.CChar)
hs_bindgen_8bf9efd96355ccc8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8bf9efd96355ccc8_base (BG.toFFIType x0))
{-|
Returns the alias of a t'DuckDBLogicalType' , if set, else @nullptr@ . The result must be destroyed with @'c_duckdb_free'@ .
history:
* stable: v0.10.0
[__@type@__]: The logical type
__Returns:__ char*
__C declaration:__ @duckdb_logical_type_get_alias@
__defined at:__ @duckdb.h 5169:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_logical_type_get_alias ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type
__C declaration:__ @type@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_logical_type_get_alias =
hs_bindgen_8bf9efd96355ccc8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_logical_type_set_alias@
foreign import ccall safe "hs_bindgen_4c81dd82a58eab6c" hs_bindgen_4c81dd82a58eab6c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_logical_type_set_alias@
hs_bindgen_4c81dd82a58eab6c ::
DuckDBLogicalType
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_4c81dd82a58eab6c =
\x0 ->
\x1 ->
hs_bindgen_4c81dd82a58eab6c_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Sets the alias of a t'DuckDBLogicalType' .
history:
* stable: v1.1.0
[__@type@__]: The logical type
[__@alias@__]: The alias to set
__Returns:__ void
__C declaration:__ @duckdb_logical_type_set_alias@
__defined at:__ @duckdb.h 5183:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_logical_type_set_alias ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type
__C declaration:__ @type@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@alias@__]: The alias to set
__C declaration:__ @alias@
-}
-> IO ()
c_duckdb_logical_type_set_alias =
hs_bindgen_4c81dd82a58eab6c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_list_type@
foreign import ccall safe "hs_bindgen_be34c8f6b1b36ac2" hs_bindgen_be34c8f6b1b36ac2_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_list_type@
hs_bindgen_be34c8f6b1b36ac2 ::
DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_be34c8f6b1b36ac2 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_be34c8f6b1b36ac2_base (BG.toFFIType x0))
{-| Creates a LIST type from its child type. The return type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.4.0
[__@type@__]: The child type of the list
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_list_type@
__defined at:__ @duckdb.h 5196:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_list_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The child type of the list
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_create_list_type =
hs_bindgen_be34c8f6b1b36ac2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_array_type@
foreign import ccall safe "hs_bindgen_a29e6ca64067833a" hs_bindgen_a29e6ca64067833a_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_array_type@
hs_bindgen_a29e6ca64067833a ::
DuckDBLogicalType
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_a29e6ca64067833a =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_a29e6ca64067833a_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates an ARRAY type from its child type. The return type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.10.1
[__@type@__]: The child type of the array.
[__@array_size@__]: The number of elements in the array.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_array_type@
__defined at:__ @duckdb.h 5210:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_array_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The child type of the array.
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@array_size@__]: The number of elements in the array.
__C declaration:__ @array_size@
-}
-> IO DuckDBLogicalType
c_duckdb_create_array_type =
hs_bindgen_a29e6ca64067833a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_map_type@
foreign import ccall safe "hs_bindgen_d8ad5b24cb72b954" hs_bindgen_d8ad5b24cb72b954_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_map_type@
hs_bindgen_d8ad5b24cb72b954 ::
DuckDBLogicalType
-> DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_d8ad5b24cb72b954 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_d8ad5b24cb72b954_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a MAP type from its key type and value type. The return type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.4.0
[__@key_type@__]: The map\'s key type.
[__@value_type@__]: The map\'s value type.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_map_type@
__defined at:__ @duckdb.h 5225:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_map_type ::
DuckDBLogicalType
{- ^
[__@key_type@__]: The map\'s key type.
__C declaration:__ @key_type@
-}
-> DuckDBLogicalType
{- ^
[__@value_type@__]: The map\'s value type.
__C declaration:__ @value_type@
-}
-> IO DuckDBLogicalType
c_duckdb_create_map_type =
hs_bindgen_d8ad5b24cb72b954
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_union_type@
foreign import ccall safe "hs_bindgen_91bc78375b61b95b" hs_bindgen_91bc78375b61b95b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_union_type@
hs_bindgen_91bc78375b61b95b ::
BG.Ptr DuckDBLogicalType
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_91bc78375b61b95b =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_91bc78375b61b95b_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Creates a UNION type from the passed arrays. The return type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.7.0
[__@member_types@__]: The array of union member types.
[__@member_names@__]: The union member names.
[__@member_count@__]: The number of union members.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_union_type@
__defined at:__ @duckdb.h 5240:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_union_type ::
BG.Ptr DuckDBLogicalType
{- ^
[__@member_types@__]: The array of union member types.
__C declaration:__ @member_types@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@member_names@__]: The union member names.
__C declaration:__ @member_names@
-}
-> DuckDBIdx
{- ^
[__@member_count@__]: The number of union members.
__C declaration:__ @member_count@
-}
-> IO DuckDBLogicalType
c_duckdb_create_union_type =
hs_bindgen_91bc78375b61b95b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_struct_type@
foreign import ccall safe "hs_bindgen_0a08f82ca13a0b71" hs_bindgen_0a08f82ca13a0b71_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_struct_type@
hs_bindgen_0a08f82ca13a0b71 ::
BG.Ptr DuckDBLogicalType
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_0a08f82ca13a0b71 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_0a08f82ca13a0b71_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Creates a STRUCT type based on the member types and names. The resulting type must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.9.0
[__@member_types@__]: The array of types of the struct members.
[__@member_names@__]: The array of names of the struct members.
[__@member_count@__]: The number of members of the struct.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_struct_type@
__defined at:__ @duckdb.h 5257:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_struct_type ::
BG.Ptr DuckDBLogicalType
{- ^
[__@member_types@__]: The array of types of the struct members.
__C declaration:__ @member_types@
-}
-> BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@member_names@__]: The array of names of the struct members.
__C declaration:__ @member_names@
-}
-> DuckDBIdx
{- ^
[__@member_count@__]: The number of members of the struct.
__C declaration:__ @member_count@
-}
-> IO DuckDBLogicalType
c_duckdb_create_struct_type =
hs_bindgen_0a08f82ca13a0b71
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_enum_type@
foreign import ccall safe "hs_bindgen_f7adf54f731b7fa6" hs_bindgen_f7adf54f731b7fa6_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_enum_type@
hs_bindgen_f7adf54f731b7fa6 ::
BG.Ptr (PtrConst.PtrConst BG.CChar)
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_f7adf54f731b7fa6 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_f7adf54f731b7fa6_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates an ENUM type from the passed member name array. The resulting type should be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.10.0
[__@member_names@__]: The array of names that the enum should consist of.
[__@member_count@__]: The number of elements that were specified in the array.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_enum_type@
__defined at:__ @duckdb.h 5273:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_enum_type ::
BG.Ptr (PtrConst.PtrConst BG.CChar)
{- ^
[__@member_names@__]: The array of names that the enum should consist of.
__C declaration:__ @member_names@
-}
-> DuckDBIdx
{- ^
[__@member_count@__]: The number of elements that were specified in the array.
__C declaration:__ @member_count@
-}
-> IO DuckDBLogicalType
c_duckdb_create_enum_type =
hs_bindgen_f7adf54f731b7fa6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_decimal_type@
foreign import ccall safe "hs_bindgen_ab3461fd12251fa5" hs_bindgen_ab3461fd12251fa5_base ::
HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_decimal_type@
hs_bindgen_ab3461fd12251fa5 ::
HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> IO DuckDBLogicalType
hs_bindgen_ab3461fd12251fa5 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ab3461fd12251fa5_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a DECIMAL type with the specified width and scale. The resulting type should be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.3.3
[__@width@__]: The width of the decimal type
[__@scale@__]: The scale of the decimal type
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_create_decimal_type@
__defined at:__ @duckdb.h 5288:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_decimal_type ::
HsBindgen.Runtime.LibC.Word8
{- ^
[__@width@__]: The width of the decimal type
__C declaration:__ @width@
-}
-> HsBindgen.Runtime.LibC.Word8
{- ^
[__@scale@__]: The scale of the decimal type
__C declaration:__ @scale@
-}
-> IO DuckDBLogicalType
c_duckdb_create_decimal_type =
hs_bindgen_ab3461fd12251fa5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_type_id@
foreign import ccall safe "hs_bindgen_3c065a1280ea9665" hs_bindgen_3c065a1280ea9665_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_type_id@
hs_bindgen_3c065a1280ea9665 ::
DuckDBLogicalType
-> IO DuckDBTypeAlias
hs_bindgen_3c065a1280ea9665 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3c065a1280ea9665_base (BG.toFFIType x0))
{-| Retrieves the enum @t'DuckDBTypeAlias'@ of a @t'DuckDBLogicalType'@ .
history:
* stable: v0.3.3
[__@type@__]: The logical type.
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_get_type_id@
__defined at:__ @duckdb.h 5301:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_type_id ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type.
__C declaration:__ @type@
-}
-> IO DuckDBTypeAlias
c_duckdb_get_type_id = hs_bindgen_3c065a1280ea9665
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_width@
foreign import ccall safe "hs_bindgen_5cf2d0c9d544dd33" hs_bindgen_5cf2d0c9d544dd33_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_width@
hs_bindgen_5cf2d0c9d544dd33 ::
DuckDBLogicalType
-> IO HsBindgen.Runtime.LibC.Word8
hs_bindgen_5cf2d0c9d544dd33 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5cf2d0c9d544dd33_base (BG.toFFIType x0))
{-| Retrieves the width of a decimal type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ uint8_t
__C declaration:__ @duckdb_decimal_width@
__defined at:__ @duckdb.h 5314:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_decimal_width ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO HsBindgen.Runtime.LibC.Word8
c_duckdb_decimal_width = hs_bindgen_5cf2d0c9d544dd33
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_scale@
foreign import ccall safe "hs_bindgen_98a72864c14469ab" hs_bindgen_98a72864c14469ab_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_scale@
hs_bindgen_98a72864c14469ab ::
DuckDBLogicalType
-> IO HsBindgen.Runtime.LibC.Word8
hs_bindgen_98a72864c14469ab =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_98a72864c14469ab_base (BG.toFFIType x0))
{-| Retrieves the scale of a decimal type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ uint8_t
__C declaration:__ @duckdb_decimal_scale@
__defined at:__ @duckdb.h 5327:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_decimal_scale ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO HsBindgen.Runtime.LibC.Word8
c_duckdb_decimal_scale = hs_bindgen_98a72864c14469ab
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_internal_type@
foreign import ccall safe "hs_bindgen_fe2cf67b34d2f6cb" hs_bindgen_fe2cf67b34d2f6cb_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_decimal_internal_type@
hs_bindgen_fe2cf67b34d2f6cb ::
DuckDBLogicalType
-> IO DuckDBTypeAlias
hs_bindgen_fe2cf67b34d2f6cb =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_fe2cf67b34d2f6cb_base (BG.toFFIType x0))
{-| Retrieves the internal storage type of a decimal type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_decimal_internal_type@
__defined at:__ @duckdb.h 5340:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_decimal_internal_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBTypeAlias
c_duckdb_decimal_internal_type =
hs_bindgen_fe2cf67b34d2f6cb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_internal_type@
foreign import ccall safe "hs_bindgen_5155084716b3c35f" hs_bindgen_5155084716b3c35f_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_internal_type@
hs_bindgen_5155084716b3c35f ::
DuckDBLogicalType
-> IO DuckDBTypeAlias
hs_bindgen_5155084716b3c35f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5155084716b3c35f_base (BG.toFFIType x0))
{-| Retrieves the internal storage type of an enum type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_enum_internal_type@
__defined at:__ @duckdb.h 5353:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_enum_internal_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBTypeAlias
c_duckdb_enum_internal_type =
hs_bindgen_5155084716b3c35f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_dictionary_size@
foreign import ccall safe "hs_bindgen_1e5564406f3fd9db" hs_bindgen_1e5564406f3fd9db_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_dictionary_size@
hs_bindgen_1e5564406f3fd9db ::
DuckDBLogicalType
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_1e5564406f3fd9db =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1e5564406f3fd9db_base (BG.toFFIType x0))
{-| Retrieves the dictionary size of the enum type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ uint32_t
__C declaration:__ @duckdb_enum_dictionary_size@
__defined at:__ @duckdb.h 5366:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_enum_dictionary_size ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO HsBindgen.Runtime.LibC.Word32
c_duckdb_enum_dictionary_size =
hs_bindgen_1e5564406f3fd9db
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_dictionary_value@
foreign import ccall safe "hs_bindgen_9a20f17db8acbd70" hs_bindgen_9a20f17db8acbd70_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_enum_dictionary_value@
hs_bindgen_9a20f17db8acbd70 ::
DuckDBLogicalType
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_9a20f17db8acbd70 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_9a20f17db8acbd70_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the dictionary value at the specified position from the enum.
The result must be freed with @'c_duckdb_free'@ .
history:
* stable: v0.3.3
[__@type@__]: The logical type object
[__@index@__]: The index in the dictionary
__Returns:__ char*
__C declaration:__ @duckdb_enum_dictionary_value@
__defined at:__ @duckdb.h 5382:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_enum_dictionary_value ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index in the dictionary
__C declaration:__ @index@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_enum_dictionary_value =
hs_bindgen_9a20f17db8acbd70
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_type_child_type@
foreign import ccall safe "hs_bindgen_4157ed3ba592d6c8" hs_bindgen_4157ed3ba592d6c8_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_type_child_type@
hs_bindgen_4157ed3ba592d6c8 ::
DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_4157ed3ba592d6c8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4157ed3ba592d6c8_base (BG.toFFIType x0))
{-| Retrieves the child type of the given LIST type. Also accepts MAP types. The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.3.3
[__@type@__]: The logical type, either LIST or MAP.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_list_type_child_type@
__defined at:__ @duckdb.h 5396:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_list_type_child_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type, either LIST or MAP.
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_list_type_child_type =
hs_bindgen_4157ed3ba592d6c8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_type_child_type@
foreign import ccall safe "hs_bindgen_2b8ef5e6bdecc75c" hs_bindgen_2b8ef5e6bdecc75c_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_type_child_type@
hs_bindgen_2b8ef5e6bdecc75c ::
DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_2b8ef5e6bdecc75c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2b8ef5e6bdecc75c_base (BG.toFFIType x0))
{-| Retrieves the child type of the given ARRAY type.
The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.10.1
[__@type@__]: The logical type. Must be ARRAY.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_array_type_child_type@
__defined at:__ @duckdb.h 5411:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_array_type_child_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type. Must be ARRAY.
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_array_type_child_type =
hs_bindgen_2b8ef5e6bdecc75c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_type_array_size@
foreign import ccall safe "hs_bindgen_f95f493b93895a3d" hs_bindgen_f95f493b93895a3d_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_type_array_size@
hs_bindgen_f95f493b93895a3d ::
DuckDBLogicalType
-> IO DuckDBIdx
hs_bindgen_f95f493b93895a3d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f95f493b93895a3d_base (BG.toFFIType x0))
{-| Retrieves the array size of the given array type.
history:
* stable: v0.10.1
[__@type@__]: The logical type object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_array_type_array_size@
__defined at:__ @duckdb.h 5424:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_array_type_array_size ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBIdx
c_duckdb_array_type_array_size =
hs_bindgen_f95f493b93895a3d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_map_type_key_type@
foreign import ccall safe "hs_bindgen_ba81e4d2dcf269b3" hs_bindgen_ba81e4d2dcf269b3_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_map_type_key_type@
hs_bindgen_ba81e4d2dcf269b3 ::
DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_ba81e4d2dcf269b3 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ba81e4d2dcf269b3_base (BG.toFFIType x0))
{-| Retrieves the key type of the given map type.
The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.4.0
[__@type@__]: The logical type object
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_map_type_key_type@
__defined at:__ @duckdb.h 5439:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_map_type_key_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_map_type_key_type =
hs_bindgen_ba81e4d2dcf269b3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_map_type_value_type@
foreign import ccall safe "hs_bindgen_2c5cd92bbe195c7d" hs_bindgen_2c5cd92bbe195c7d_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_map_type_value_type@
hs_bindgen_2c5cd92bbe195c7d ::
DuckDBLogicalType
-> IO DuckDBLogicalType
hs_bindgen_2c5cd92bbe195c7d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2c5cd92bbe195c7d_base (BG.toFFIType x0))
{-| Retrieves the value type of the given map type.
The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.4.0
[__@type@__]: The logical type object
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_map_type_value_type@
__defined at:__ @duckdb.h 5454:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_map_type_value_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBLogicalType
c_duckdb_map_type_value_type =
hs_bindgen_2c5cd92bbe195c7d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_count@
foreign import ccall safe "hs_bindgen_9470b8d41ff2de33" hs_bindgen_9470b8d41ff2de33_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_count@
hs_bindgen_9470b8d41ff2de33 ::
DuckDBLogicalType
-> IO DuckDBIdx
hs_bindgen_9470b8d41ff2de33 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_9470b8d41ff2de33_base (BG.toFFIType x0))
{-| Returns the number of children of a struct type.
history:
* stable: v0.3.3
[__@type@__]: The logical type object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_struct_type_child_count@
__defined at:__ @duckdb.h 5467:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_struct_type_child_count ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> IO DuckDBIdx
c_duckdb_struct_type_child_count =
hs_bindgen_9470b8d41ff2de33
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_name@
foreign import ccall safe "hs_bindgen_b2175e8f7078654f" hs_bindgen_b2175e8f7078654f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_name@
hs_bindgen_b2175e8f7078654f ::
DuckDBLogicalType
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_b2175e8f7078654f =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_b2175e8f7078654f_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the name of the struct child.
The result must be freed with @'c_duckdb_free'@ .
history:
* stable: v0.3.3
[__@type@__]: The logical type object
[__@index@__]: The child index
__Returns:__ char*
__C declaration:__ @duckdb_struct_type_child_name@
__defined at:__ @duckdb.h 5483:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_struct_type_child_name ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The child index
__C declaration:__ @index@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_struct_type_child_name =
hs_bindgen_b2175e8f7078654f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_type@
foreign import ccall safe "hs_bindgen_601601b3c2e40537" hs_bindgen_601601b3c2e40537_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_type_child_type@
hs_bindgen_601601b3c2e40537 ::
DuckDBLogicalType
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_601601b3c2e40537 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_601601b3c2e40537_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the child type of the given struct type at the specified index.
The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.3.3
[__@type@__]: The logical type object
[__@index@__]: The child index
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_struct_type_child_type@
__defined at:__ @duckdb.h 5499:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_struct_type_child_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The child index
__C declaration:__ @index@
-}
-> IO DuckDBLogicalType
c_duckdb_struct_type_child_type =
hs_bindgen_601601b3c2e40537
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_count@
foreign import ccall safe "hs_bindgen_1e4a7d3a9bf6afa8" hs_bindgen_1e4a7d3a9bf6afa8_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_count@
hs_bindgen_1e4a7d3a9bf6afa8 ::
DuckDBLogicalType
-> IO DuckDBIdx
hs_bindgen_1e4a7d3a9bf6afa8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1e4a7d3a9bf6afa8_base (BG.toFFIType x0))
{-| Returns the number of members that the union type has.
history:
* stable: v0.7.0
[__@type@__]: The logical type (union) object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_union_type_member_count@
__defined at:__ @duckdb.h 5512:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_union_type_member_count ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type (union) object
__C declaration:__ @type@
-}
-> IO DuckDBIdx
c_duckdb_union_type_member_count =
hs_bindgen_1e4a7d3a9bf6afa8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_name@
foreign import ccall safe "hs_bindgen_10b7095884bfd6c6" hs_bindgen_10b7095884bfd6c6_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_name@
hs_bindgen_10b7095884bfd6c6 ::
DuckDBLogicalType
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_10b7095884bfd6c6 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_10b7095884bfd6c6_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the name of the union member.
The result must be freed with @'c_duckdb_free'@ .
history:
* stable: v0.7.0
[__@type@__]: The logical type object
[__@index@__]: The child index
__Returns:__ char*
__C declaration:__ @duckdb_union_type_member_name@
__defined at:__ @duckdb.h 5528:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_union_type_member_name ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The child index
__C declaration:__ @index@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_union_type_member_name =
hs_bindgen_10b7095884bfd6c6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_type@
foreign import ccall safe "hs_bindgen_c51b0baa0c7acc2b" hs_bindgen_c51b0baa0c7acc2b_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_union_type_member_type@
hs_bindgen_c51b0baa0c7acc2b ::
DuckDBLogicalType
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_c51b0baa0c7acc2b =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_c51b0baa0c7acc2b_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the child type of the given union member at the specified index.
The result must be freed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.7.0
[__@type@__]: The logical type object
[__@index@__]: The child index
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_union_type_member_type@
__defined at:__ @duckdb.h 5544:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_union_type_member_type ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type object
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The child index
__C declaration:__ @index@
-}
-> IO DuckDBLogicalType
c_duckdb_union_type_member_type =
hs_bindgen_c51b0baa0c7acc2b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_logical_type@
foreign import ccall safe "hs_bindgen_ba9f691ab447b325" hs_bindgen_ba9f691ab447b325_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_logical_type@
hs_bindgen_ba9f691ab447b325 ::
BG.Ptr DuckDBLogicalType
-> IO ()
hs_bindgen_ba9f691ab447b325 =
\x0 ->
hs_bindgen_ba9f691ab447b325_base (BG.toFFIType x0)
{-| Destroys the logical type and de-allocates all memory allocated for that type.
history:
* stable: v0.3.3
[__@type@__]: The logical type to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_logical_type@
__defined at:__ @duckdb.h 5557:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_logical_type ::
BG.Ptr DuckDBLogicalType
{- ^
[__@type@__]: The logical type to destroy.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_destroy_logical_type =
hs_bindgen_ba9f691ab447b325
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_logical_type@
foreign import ccall safe "hs_bindgen_04ac87cde857ea03" hs_bindgen_04ac87cde857ea03_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_logical_type@
hs_bindgen_04ac87cde857ea03 ::
DuckDBConnection
-> DuckDBLogicalType
-> DuckDBCreateTypeInfo
-> IO DuckDBState
hs_bindgen_04ac87cde857ea03 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_04ac87cde857ea03_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Registers a custom type within the given connection. The type must have an alias
history:
* stable: v1.1.0
[__@con@__]: The connection to use
[__@type@__]: The custom type to register
[__@info@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_logical_type@
__defined at:__ @duckdb.h 5572:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_logical_type ::
DuckDBConnection
{- ^
[__@con@__]: The connection to use
__C declaration:__ @con@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The custom type to register
__C declaration:__ @type@
-}
-> DuckDBCreateTypeInfo
{- ^
[__@info@__]:
__C declaration:__ @info@
-}
-> IO DuckDBState
c_duckdb_register_logical_type =
hs_bindgen_04ac87cde857ea03
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_geometry_type_get_crs@
foreign import ccall safe "hs_bindgen_00c6f6b3b1a432f8" hs_bindgen_00c6f6b3b1a432f8_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_geometry_type_get_crs@
hs_bindgen_00c6f6b3b1a432f8 ::
DuckDBLogicalType
-> IO (BG.Ptr BG.CChar)
hs_bindgen_00c6f6b3b1a432f8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_00c6f6b3b1a432f8_base (BG.toFFIType x0))
{-| Gets the CRS (Coordinate Reference System) of a GEOMETRY type. Result must be freed with @'c_duckdb_free'@ .
history:
* unstable: v1.5.2
* stable: v1.5.6
[__@type@__]: The GEOMETRY type.
__Returns:__ char*
__C declaration:__ @duckdb_geometry_type_get_crs@
__defined at:__ @duckdb.h 5587:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_geometry_type_get_crs ::
DuckDBLogicalType
{- ^
[__@type@__]: The GEOMETRY type.
__C declaration:__ @type@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_geometry_type_get_crs =
hs_bindgen_00c6f6b3b1a432f8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_prepared@
foreign import ccall safe "hs_bindgen_140ec73cf4fe7786" hs_bindgen_140ec73cf4fe7786_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_prepared@
hs_bindgen_140ec73cf4fe7786 ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBPendingResult
-> IO DuckDBState
hs_bindgen_140ec73cf4fe7786 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_140ec73cf4fe7786_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Executes the prepared statement with the given bound parameters, and returns a pending result. The pending result represents an intermediate structure for a query that is not yet fully executed. The pending result can be used to incrementally execute a query, returning control to the client between tasks.
Note that after calling @'c_duckdb_pending_prepared'@ , the pending result should always be destroyed using @'c_duckdb_destroy_pending'@ , even if this function returns DuckDBError.
history:
* stable: v0.5.0
[__@prepared_statement@__]: The prepared statement to execute.
[__@out_result@__]: The pending query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_pending_prepared@
__defined at:__ @duckdb.h 5624:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_prepared ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to execute.
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBPendingResult
{- ^
[__@out_result@__]: The pending query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_pending_prepared =
hs_bindgen_140ec73cf4fe7786
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_pending@
foreign import ccall safe "hs_bindgen_e37a6341372605d4" hs_bindgen_e37a6341372605d4_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_pending@
hs_bindgen_e37a6341372605d4 ::
BG.Ptr DuckDBPendingResult
-> IO ()
hs_bindgen_e37a6341372605d4 =
\x0 ->
hs_bindgen_e37a6341372605d4_base (BG.toFFIType x0)
{-| Closes the pending result and de-allocates all memory allocated for the result.
Destroying a pending result whose statement has not completed aborts the statement. On autocommit, its writes are rolled back. Inside a transaction, a statement that may write invalidates the transaction, and a read-only statement just stops. Until the statement has completed, preparing or running another statement on the connection fails with @@DUCKDB_ERROR_RESOURCE_IN_USE@@ and leaves it untouched. @'c_duckdb_pending_execution_is_finished'@ reporting true does not mean that the statement completed. To make sure a statement takes effect, complete it before destroying the pending result: call @'c_duckdb_execute_pending'@ , and fetch a streaming result until @'c_duckdb_fetch_chunk'@ returns NULL. A NULL chunk is also returned on an error, so check @'c_duckdb_result_error'@ afterwards.
history:
* stable: v0.5.0
[__@pending_result@__]: The pending result to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_pending@
__defined at:__ @duckdb.h 5646:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_pending ::
BG.Ptr DuckDBPendingResult
{- ^
[__@pending_result@__]: The pending result to destroy.
__C declaration:__ @pending_result@
-}
-> IO ()
c_duckdb_destroy_pending =
hs_bindgen_e37a6341372605d4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_error@
foreign import ccall safe "hs_bindgen_2de8c0baba09d111" hs_bindgen_2de8c0baba09d111_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_error@
hs_bindgen_2de8c0baba09d111 ::
DuckDBPendingResult
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_2de8c0baba09d111 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2de8c0baba09d111_base (BG.toFFIType x0))
{-| Returns the error message contained within the pending result.
The result of this function must not be freed. It will be cleaned up when @'c_duckdb_destroy_pending'@ is called.
history:
* stable: v0.5.0
[__@pending_result@__]: The pending result to fetch the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_pending_error@
__defined at:__ @duckdb.h 5661:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_error ::
DuckDBPendingResult
{- ^
[__@pending_result@__]: The pending result to fetch the error from.
__C declaration:__ @pending_result@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_pending_error = hs_bindgen_2de8c0baba09d111
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execute_task@
foreign import ccall safe "hs_bindgen_2f6bf9a23cbb0cec" hs_bindgen_2f6bf9a23cbb0cec_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execute_task@
hs_bindgen_2f6bf9a23cbb0cec ::
DuckDBPendingResult
-> IO DuckDBPendingState
hs_bindgen_2f6bf9a23cbb0cec =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2f6bf9a23cbb0cec_base (BG.toFFIType x0))
{-| Executes a single task within the query, returning whether or not the query is ready.
If this returns DUCKDB_PENDING_RESULT_READY, the duckdb_execute_pending function can be called to obtain the result. If this returns DUCKDB_PENDING_RESULT_NOT_READY, the duckdb_pending_execute_task function should be called again. If this returns DUCKDB_PENDING_ERROR, an error occurred during execution.
The error message can be obtained by calling duckdb_pending_error on the pending_result.
history:
* stable: v0.5.0
[__@pending_result@__]: The pending result to execute a task within.
__Returns:__ t'DuckDBPendingState'
__C declaration:__ @duckdb_pending_execute_task@
__defined at:__ @duckdb.h 5680:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_execute_task ::
DuckDBPendingResult
{- ^
[__@pending_result@__]: The pending result to execute a task within.
__C declaration:__ @pending_result@
-}
-> IO DuckDBPendingState
c_duckdb_pending_execute_task =
hs_bindgen_2f6bf9a23cbb0cec
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execute_check_state@
foreign import ccall safe "hs_bindgen_8846d60debc2282f" hs_bindgen_8846d60debc2282f_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execute_check_state@
hs_bindgen_8846d60debc2282f ::
DuckDBPendingResult
-> IO DuckDBPendingState
hs_bindgen_8846d60debc2282f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8846d60debc2282f_base (BG.toFFIType x0))
{-| If this returns DUCKDB_PENDING_RESULT_READY, the duckdb_execute_pending function can be called to obtain the result. If this returns DUCKDB_PENDING_RESULT_NOT_READY, the duckdb_pending_execute_check_state function should be called again. If this returns DUCKDB_PENDING_ERROR, an error occurred during execution.
The error message can be obtained by calling duckdb_pending_error on the pending_result.
history:
* stable: v0.10.0
[__@pending_result@__]: The pending result.
__Returns:__ t'DuckDBPendingState'
__C declaration:__ @duckdb_pending_execute_check_state@
__defined at:__ @duckdb.h 5697:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_execute_check_state ::
DuckDBPendingResult
{- ^
[__@pending_result@__]: The pending result.
__C declaration:__ @pending_result@
-}
-> IO DuckDBPendingState
c_duckdb_pending_execute_check_state =
hs_bindgen_8846d60debc2282f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_pending@
foreign import ccall safe "hs_bindgen_8d348576f8547d1e" hs_bindgen_8d348576f8547d1e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_pending@
hs_bindgen_8d348576f8547d1e ::
DuckDBPendingResult
-> BG.Ptr DuckDBResult
-> IO DuckDBState
hs_bindgen_8d348576f8547d1e =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_8d348576f8547d1e_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Fully execute a pending query result, returning the final query result.
If duckdb_pending_execute_task has been called until DUCKDB_PENDING_RESULT_READY was returned, this will return fast. Otherwise, all remaining tasks must be executed first.
Note that the result must be freed with @'c_duckdb_destroy_result'@ .
history:
* stable: v0.5.0
[__@pending_result@__]: The pending result to execute.
[__@out_result@__]: The result object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_execute_pending@
__defined at:__ @duckdb.h 5716:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_pending ::
DuckDBPendingResult
{- ^
[__@pending_result@__]: The pending result to execute.
__C declaration:__ @pending_result@
-}
-> BG.Ptr DuckDBResult
{- ^
[__@out_result@__]: The result object.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_execute_pending =
hs_bindgen_8d348576f8547d1e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execution_is_finished@
foreign import ccall safe "hs_bindgen_5dc99c4c5e03476c" hs_bindgen_5dc99c4c5e03476c_base ::
BG.CUInt
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_execution_is_finished@
hs_bindgen_5dc99c4c5e03476c ::
DuckDBPendingState
-> IO BG.CBool
hs_bindgen_5dc99c4c5e03476c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5dc99c4c5e03476c_base (BG.toFFIType x0))
{-|
Returns whether a t'DuckDBPendingState' is finished executing. For example if @pending_state@ is DUCKDB_PENDING_RESULT_READY, this function will return true.
history:
* stable: v0.9.0
[__@pending_state@__]: The pending state on which to decide whether to finish execution.
__Returns:__ bool
__C declaration:__ @duckdb_pending_execution_is_finished@
__defined at:__ @duckdb.h 5730:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_execution_is_finished ::
DuckDBPendingState
{- ^
[__@pending_state@__]: The pending state on which to decide whether to finish execution.
__C declaration:__ @pending_state@
-}
-> IO BG.CBool
c_duckdb_pending_execution_is_finished =
hs_bindgen_5dc99c4c5e03476c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare@
foreign import ccall safe "hs_bindgen_1bfada4bda17bfab" hs_bindgen_1bfada4bda17bfab_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare@
hs_bindgen_1bfada4bda17bfab ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBPreparedStatement
-> IO DuckDBState
hs_bindgen_1bfada4bda17bfab =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_1bfada4bda17bfab_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Create a prepared statement object from a query.
Note that after calling @'c_duckdb_prepare'@ , the prepared statement should always be destroyed using @'c_duckdb_destroy_prepare'@ , even if the prepare fails.
If the prepare fails, @'c_duckdb_prepare_error'@ can be called to obtain the reason why the prepare failed.
history:
* stable: v0.1.0
[__@connection@__]: The connection object
[__@query@__]: The SQL query to prepare
[__@out_prepared_statement@__]: The resulting prepared statement object
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_prepare@
__defined at:__ @duckdb.h 5767:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepare ::
DuckDBConnection
{- ^
[__@connection@__]: The connection object
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The SQL query to prepare
__C declaration:__ @query@
-}
-> BG.Ptr DuckDBPreparedStatement
{- ^
[__@out_prepared_statement@__]: The resulting prepared statement object
__C declaration:__ @out_prepared_statement@
-}
-> IO DuckDBState
c_duckdb_prepare = hs_bindgen_1bfada4bda17bfab
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_prepare@
foreign import ccall safe "hs_bindgen_26ae03c9c4c5e7c4" hs_bindgen_26ae03c9c4c5e7c4_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_prepare@
hs_bindgen_26ae03c9c4c5e7c4 ::
BG.Ptr DuckDBPreparedStatement
-> IO ()
hs_bindgen_26ae03c9c4c5e7c4 =
\x0 ->
hs_bindgen_26ae03c9c4c5e7c4_base (BG.toFFIType x0)
{-| Closes the prepared statement and de-allocates all memory allocated for the statement.
history:
* stable: v0.1.0
[__@prepared_statement@__]: The prepared statement to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_prepare@
__defined at:__ @duckdb.h 5779:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_prepare ::
BG.Ptr DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to destroy.
__C declaration:__ @prepared_statement@
-}
-> IO ()
c_duckdb_destroy_prepare =
hs_bindgen_26ae03c9c4c5e7c4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare_error@
foreign import ccall safe "hs_bindgen_b25b57b610531432" hs_bindgen_b25b57b610531432_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare_error@
hs_bindgen_b25b57b610531432 ::
DuckDBPreparedStatement
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_b25b57b610531432 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b25b57b610531432_base (BG.toFFIType x0))
{-| Returns the error message associated with the given prepared statement. If the prepared statement has no error message, this returns @nullptr@ instead.
The error message should not be freed. It will be de-allocated when @'c_duckdb_destroy_prepare'@ is called.
history:
* stable: v0.2.8
[__@prepared_statement@__]: The prepared statement to obtain the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_prepare_error@
__defined at:__ @duckdb.h 5794:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepare_error ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to obtain the error from.
__C declaration:__ @prepared_statement@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_prepare_error = hs_bindgen_b25b57b610531432
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_nparams@
foreign import ccall safe "hs_bindgen_5fa1fd0511ab6da4" hs_bindgen_5fa1fd0511ab6da4_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_nparams@
hs_bindgen_5fa1fd0511ab6da4 ::
DuckDBPreparedStatement
-> IO DuckDBIdx
hs_bindgen_5fa1fd0511ab6da4 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5fa1fd0511ab6da4_base (BG.toFFIType x0))
{-| Returns the number of parameters that can be provided to the given prepared statement.
Returns 0 if the query was not successfully prepared.
history:
* stable: v0.1.1
[__@prepared_statement@__]: The prepared statement to obtain the number of parameters for.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_nparams@
__defined at:__ @duckdb.h 5809:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_nparams ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to obtain the number of parameters for.
__C declaration:__ @prepared_statement@
-}
-> IO DuckDBIdx
c_duckdb_nparams = hs_bindgen_5fa1fd0511ab6da4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_parameter_name@
foreign import ccall safe "hs_bindgen_eafa493aee3b4ab5" hs_bindgen_eafa493aee3b4ab5_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_parameter_name@
hs_bindgen_eafa493aee3b4ab5 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_eafa493aee3b4ab5 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_eafa493aee3b4ab5_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the name used to identify the parameter The returned string should be freed using @'c_duckdb_free'@ .
Returns NULL if the index is out of range for the provided prepared statement.
history:
* stable: v0.9.0
[__@prepared_statement@__]: The prepared statement for which to get the parameter name from.
[__@index@__]:
__Returns:__ const char*
__C declaration:__ @duckdb_parameter_name@
__defined at:__ @duckdb.h 5825:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_parameter_name ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement for which to get the parameter name from.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@index@__]:
__C declaration:__ @index@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_parameter_name = hs_bindgen_eafa493aee3b4ab5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_param_type@
foreign import ccall safe "hs_bindgen_c8918f417a9d0485" hs_bindgen_c8918f417a9d0485_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_param_type@
hs_bindgen_c8918f417a9d0485 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO DuckDBTypeAlias
hs_bindgen_c8918f417a9d0485 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_c8918f417a9d0485_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the parameter type for the parameter at the given index.
Returns @@DUCKDB_TYPE_INVALID@@ if the parameter index is out of range or the statement was not successfully prepared.
history:
* stable: v0.2.9
[__@prepared_statement@__]: The prepared statement.
[__@param_idx@__]: The parameter index.
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_param_type@
__defined at:__ @duckdb.h 5841:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_param_type ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]: The parameter index.
__C declaration:__ @param_idx@
-}
-> IO DuckDBTypeAlias
c_duckdb_param_type = hs_bindgen_c8918f417a9d0485
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_param_logical_type@
foreign import ccall safe "hs_bindgen_4bdfeba8a2577d7c" hs_bindgen_4bdfeba8a2577d7c_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_param_logical_type@
hs_bindgen_4bdfeba8a2577d7c ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_4bdfeba8a2577d7c =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_4bdfeba8a2577d7c_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the logical type for the parameter at the given index.
Returns @nullptr@ if the parameter index is out of range or the statement was not successfully prepared.
The return type of this call should be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v1.2.0
[__@prepared_statement@__]: The prepared statement.
[__@param_idx@__]: The parameter index.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_param_logical_type@
__defined at:__ @duckdb.h 5859:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_param_logical_type ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]: The parameter index.
__C declaration:__ @param_idx@
-}
-> IO DuckDBLogicalType
c_duckdb_param_logical_type =
hs_bindgen_4bdfeba8a2577d7c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_clear_bindings@
foreign import ccall safe "hs_bindgen_0baec870a17b08f5" hs_bindgen_0baec870a17b08f5_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_clear_bindings@
hs_bindgen_0baec870a17b08f5 ::
DuckDBPreparedStatement
-> IO DuckDBState
hs_bindgen_0baec870a17b08f5 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_0baec870a17b08f5_base (BG.toFFIType x0))
{-| Clear the params bind to the prepared statement.
history:
* stable: v0.5.0
[__@prepared_statement@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_clear_bindings@
__defined at:__ @duckdb.h 5873:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_clear_bindings ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> IO DuckDBState
c_duckdb_clear_bindings = hs_bindgen_0baec870a17b08f5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_type@
foreign import ccall safe "hs_bindgen_8d1f2852daa4baa8" hs_bindgen_8d1f2852daa4baa8_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_type@
hs_bindgen_8d1f2852daa4baa8 ::
DuckDBPreparedStatement
-> IO DuckDBStatementType
hs_bindgen_8d1f2852daa4baa8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8d1f2852daa4baa8_base (BG.toFFIType x0))
{-| Returns the statement type of the statement to be executed
history:
* stable: v0.10.0
[__@statement@__]: The prepared statement.
__Returns:__ t'DuckDBStatementType'
__C declaration:__ @duckdb_prepared_statement_type@
__defined at:__ @duckdb.h 5886:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_statement_type ::
DuckDBPreparedStatement
{- ^
[__@statement@__]: The prepared statement.
__C declaration:__ @statement@
-}
-> IO DuckDBStatementType
c_duckdb_prepared_statement_type =
hs_bindgen_8d1f2852daa4baa8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_count@
foreign import ccall safe "hs_bindgen_21b83c58e5576ccb" hs_bindgen_21b83c58e5576ccb_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_count@
hs_bindgen_21b83c58e5576ccb ::
DuckDBPreparedStatement
-> IO DuckDBIdx
hs_bindgen_21b83c58e5576ccb =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_21b83c58e5576ccb_base (BG.toFFIType x0))
{-| Returns the number of columns present in a the result of the prepared statement. If any of the column types are invalid, the result will be 1.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@prepared_statement@__]: The prepared statement.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_prepared_statement_column_count@
__defined at:__ @duckdb.h 5901:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_statement_column_count ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement.
__C declaration:__ @prepared_statement@
-}
-> IO DuckDBIdx
c_duckdb_prepared_statement_column_count =
hs_bindgen_21b83c58e5576ccb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_name@
foreign import ccall safe "hs_bindgen_2446429a160ae499" hs_bindgen_2446429a160ae499_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_name@
hs_bindgen_2446429a160ae499 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_2446429a160ae499 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_2446429a160ae499_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the name of the specified column of the result of the prepared_statement. The returned string should be freed using @'c_duckdb_free'@ .
Returns @nullptr@ if the column is out of range.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@prepared_statement@__]: The prepared statement.
[__@col_idx@__]: The column index.
__Returns:__ const char*
__C declaration:__ @duckdb_prepared_statement_column_name@
__defined at:__ @duckdb.h 5919:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_statement_column_name ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The column index.
__C declaration:__ @col_idx@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_prepared_statement_column_name =
hs_bindgen_2446429a160ae499
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_logical_type@
foreign import ccall safe "hs_bindgen_ec1ee529d3d049b2" hs_bindgen_ec1ee529d3d049b2_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_logical_type@
hs_bindgen_ec1ee529d3d049b2 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_ec1ee529d3d049b2 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ec1ee529d3d049b2_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the column type of the specified column of the result of the prepared_statement.
Returns @@DUCKDB_TYPE_INVALID@@ if the column is out of range. The return type of this call should be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@prepared_statement@__]: The prepared statement to fetch the column type from.
[__@col_idx@__]: The column index.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_prepared_statement_column_logical_type@
__defined at:__ @duckdb.h 5939:1@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_statement_column_logical_type ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to fetch the column type from.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The column index.
__C declaration:__ @col_idx@
-}
-> IO DuckDBLogicalType
c_duckdb_prepared_statement_column_logical_type =
hs_bindgen_ec1ee529d3d049b2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_type@
foreign import ccall safe "hs_bindgen_735e0700d4547b98" hs_bindgen_735e0700d4547b98_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepared_statement_column_type@
hs_bindgen_735e0700d4547b98 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO DuckDBTypeAlias
hs_bindgen_735e0700d4547b98 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_735e0700d4547b98_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the column type of the specified column of the result of the prepared_statement.
Returns @@DUCKDB_TYPE_INVALID@@ if the column is out of range.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@prepared_statement@__]: The prepared statement to fetch the column type from.
[__@col_idx@__]: The column index.
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_prepared_statement_column_type@
__defined at:__ @duckdb.h 5956:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepared_statement_column_type ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to fetch the column type from.
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The column index.
__C declaration:__ @col_idx@
-}
-> IO DuckDBTypeAlias
c_duckdb_prepared_statement_column_type =
hs_bindgen_735e0700d4547b98
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_value@
foreign import ccall safe "hs_bindgen_a6297bae6e7d851e" hs_bindgen_a6297bae6e7d851e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_value@
hs_bindgen_a6297bae6e7d851e ::
DuckDBPreparedStatement
-> DuckDBIdx
-> DuckDBValue
-> IO DuckDBState
hs_bindgen_a6297bae6e7d851e =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_a6297bae6e7d851e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a value to the prepared statement at the specified index.
Supersedes all type-specific bind functions (e.g., @'c_duckdb_bind_varchar'@ , @'c_duckdb_bind_int64'@ , etc.).
history:
* stable: v0.9.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_value@
__defined at:__ @duckdb.h 5974:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_value ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBValue
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_value = hs_bindgen_a6297bae6e7d851e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_parameter_index@
foreign import ccall safe "hs_bindgen_246486cf8a18dc9c" hs_bindgen_246486cf8a18dc9c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_parameter_index@
hs_bindgen_246486cf8a18dc9c ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBState
hs_bindgen_246486cf8a18dc9c =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_246486cf8a18dc9c_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Retrieve the index of the parameter for the prepared statement, identified by name
history:
* stable: v0.9.0
[__@prepared_statement@__]:
[__@param_idx_out@__]:
[__@name@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_parameter_index@
__defined at:__ @duckdb.h 5990:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_parameter_index ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBIdx
{- ^
[__@param_idx_out@__]:
__C declaration:__ @param_idx_out@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]:
__C declaration:__ @name@
-}
-> IO DuckDBState
c_duckdb_bind_parameter_index =
hs_bindgen_246486cf8a18dc9c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_boolean@
foreign import ccall safe "hs_bindgen_de1a77f688a34f93" hs_bindgen_de1a77f688a34f93_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.CBool
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_boolean@
hs_bindgen_de1a77f688a34f93 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.CBool
-> IO DuckDBState
hs_bindgen_de1a77f688a34f93 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_de1a77f688a34f93_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a bool value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_boolean@
__defined at:__ @duckdb.h 6005:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_boolean ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> BG.CBool
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_boolean = hs_bindgen_de1a77f688a34f93
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int8@
foreign import ccall safe "hs_bindgen_eda830b5f9d73c28" hs_bindgen_eda830b5f9d73c28_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Int8
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int8@
hs_bindgen_eda830b5f9d73c28 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Int8
-> IO DuckDBState
hs_bindgen_eda830b5f9d73c28 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_eda830b5f9d73c28_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds an int8_t value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_int8@
__defined at:__ @duckdb.h 6018:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_int8 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Int8
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_int8 = hs_bindgen_eda830b5f9d73c28
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int16@
foreign import ccall safe "hs_bindgen_0355aa2cb5b1fa2e" hs_bindgen_0355aa2cb5b1fa2e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Int16
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int16@
hs_bindgen_0355aa2cb5b1fa2e ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Int16
-> IO DuckDBState
hs_bindgen_0355aa2cb5b1fa2e =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_0355aa2cb5b1fa2e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds an int16_t value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_int16@
__defined at:__ @duckdb.h 6031:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_int16 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Int16
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_int16 = hs_bindgen_0355aa2cb5b1fa2e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int32@
foreign import ccall safe "hs_bindgen_a4f099fbb0a6ba13" hs_bindgen_a4f099fbb0a6ba13_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int32@
hs_bindgen_a4f099fbb0a6ba13 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Int32
-> IO DuckDBState
hs_bindgen_a4f099fbb0a6ba13 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_a4f099fbb0a6ba13_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds an int32_t value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_int32@
__defined at:__ @duckdb.h 6044:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_int32 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Int32
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_int32 = hs_bindgen_a4f099fbb0a6ba13
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int64@
foreign import ccall safe "hs_bindgen_2ec951c583ce8e04" hs_bindgen_2ec951c583ce8e04_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Int64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_int64@
hs_bindgen_2ec951c583ce8e04 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Int64
-> IO DuckDBState
hs_bindgen_2ec951c583ce8e04 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_2ec951c583ce8e04_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds an int64_t value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_int64@
__defined at:__ @duckdb.h 6057:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_int64 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Int64
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_int64 = hs_bindgen_2ec951c583ce8e04
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_hugeint@
foreign import ccall safe "hs_bindgen_8780a04bf33744c5" hs_bindgen_8780a04bf33744c5_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_hugeint@
hs_bindgen_8780a04bf33744c5 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBHugeInt
-> IO DuckDBState
hs_bindgen_8780a04bf33744c5 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_8780a04bf33744c5_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBHugeInt' value to the prepared statement at the specified index.
history:
* stable: v0.2.9
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_hugeint@
__defined at:__ @duckdb.h 6071:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_hugeint ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBHugeInt
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_hugeint =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_8780a04bf33744c5 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uhugeint@
foreign import ccall safe "hs_bindgen_5cb9ed525dffdba8" hs_bindgen_5cb9ed525dffdba8_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uhugeint@
hs_bindgen_5cb9ed525dffdba8 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBUHugeInt
-> IO DuckDBState
hs_bindgen_5cb9ed525dffdba8 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_5cb9ed525dffdba8_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBUHugeInt' value to the prepared statement at the specified index.
history:
* stable: v0.10.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_uhugeint@
__defined at:__ @duckdb.h 6087:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_uhugeint ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBUHugeInt
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_uhugeint =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_5cb9ed525dffdba8 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_decimal@
foreign import ccall safe "hs_bindgen_c9b058b7b2cd21d0" hs_bindgen_c9b058b7b2cd21d0_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_decimal@
hs_bindgen_c9b058b7b2cd21d0 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBDecimal
-> IO DuckDBState
hs_bindgen_c9b058b7b2cd21d0 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_c9b058b7b2cd21d0_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBDecimal' value to the prepared statement at the specified index.
history:
* stable: v0.6.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_decimal@
__defined at:__ @duckdb.h 6103:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_decimal ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBDecimal
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_decimal =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_c9b058b7b2cd21d0 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint8@
foreign import ccall safe "hs_bindgen_b5a38c6e6ecccd08" hs_bindgen_b5a38c6e6ecccd08_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word8
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint8@
hs_bindgen_b5a38c6e6ecccd08 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Word8
-> IO DuckDBState
hs_bindgen_b5a38c6e6ecccd08 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_b5a38c6e6ecccd08_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a uint8_t value to the prepared statement at the specified index.
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_uint8@
__defined at:__ @duckdb.h 6119:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_uint8 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Word8
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_uint8 = hs_bindgen_b5a38c6e6ecccd08
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint16@
foreign import ccall safe "hs_bindgen_2e2738c0457ea47d" hs_bindgen_2e2738c0457ea47d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word16
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint16@
hs_bindgen_2e2738c0457ea47d ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Word16
-> IO DuckDBState
hs_bindgen_2e2738c0457ea47d =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_2e2738c0457ea47d_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a uint16_t value to the prepared statement at the specified index.
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_uint16@
__defined at:__ @duckdb.h 6134:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_uint16 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Word16
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_uint16 = hs_bindgen_2e2738c0457ea47d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint32@
foreign import ccall safe "hs_bindgen_90e699f0e6b9cd29" hs_bindgen_90e699f0e6b9cd29_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint32@
hs_bindgen_90e699f0e6b9cd29 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Word32
-> IO DuckDBState
hs_bindgen_90e699f0e6b9cd29 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_90e699f0e6b9cd29_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a uint32_t value to the prepared statement at the specified index.
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_uint32@
__defined at:__ @duckdb.h 6150:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_uint32 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Word32
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_uint32 = hs_bindgen_90e699f0e6b9cd29
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint64@
foreign import ccall safe "hs_bindgen_3ccb9401c1ebda08" hs_bindgen_3ccb9401c1ebda08_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_uint64@
hs_bindgen_3ccb9401c1ebda08 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> HsBindgen.Runtime.LibC.Word64
-> IO DuckDBState
hs_bindgen_3ccb9401c1ebda08 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_3ccb9401c1ebda08_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a uint64_t value to the prepared statement at the specified index.
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_uint64@
__defined at:__ @duckdb.h 6166:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_uint64 ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> HsBindgen.Runtime.LibC.Word64
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_uint64 = hs_bindgen_3ccb9401c1ebda08
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_float@
foreign import ccall safe "hs_bindgen_9b6b761b5a1551ef" hs_bindgen_9b6b761b5a1551ef_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.CFloat
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_float@
hs_bindgen_9b6b761b5a1551ef ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.CFloat
-> IO DuckDBState
hs_bindgen_9b6b761b5a1551ef =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_9b6b761b5a1551ef_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a float value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_float@
__defined at:__ @duckdb.h 6181:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_float ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> BG.CFloat
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_float = hs_bindgen_9b6b761b5a1551ef
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_double@
foreign import ccall safe "hs_bindgen_e37b46704d10e1da" hs_bindgen_e37b46704d10e1da_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.CDouble
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_double@
hs_bindgen_e37b46704d10e1da ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.CDouble
-> IO DuckDBState
hs_bindgen_e37b46704d10e1da =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_e37b46704d10e1da_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a double value to the prepared statement at the specified index.
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_double@
__defined at:__ @duckdb.h 6194:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_double ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> BG.CDouble
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_double = hs_bindgen_e37b46704d10e1da
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_date@
foreign import ccall safe "hs_bindgen_f8785689f72e5b5d" hs_bindgen_f8785689f72e5b5d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_date@
hs_bindgen_f8785689f72e5b5d ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBDate
-> IO DuckDBState
hs_bindgen_f8785689f72e5b5d =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_f8785689f72e5b5d_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBDate' value to the prepared statement at the specified index.
history:
* stable: v0.2.9
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_date@
__defined at:__ @duckdb.h 6208:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_date ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBDate
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_date =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_f8785689f72e5b5d prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_time@
foreign import ccall safe "hs_bindgen_1785c9c57c78cf3d" hs_bindgen_1785c9c57c78cf3d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_time@
hs_bindgen_1785c9c57c78cf3d ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBTime
-> IO DuckDBState
hs_bindgen_1785c9c57c78cf3d =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_1785c9c57c78cf3d_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBTime' value to the prepared statement at the specified index.
history:
* stable: v0.2.9
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_time@
__defined at:__ @duckdb.h 6224:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_time ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBTime
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_time =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_1785c9c57c78cf3d prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_timestamp@
foreign import ccall safe "hs_bindgen_408ba78d5071e129" hs_bindgen_408ba78d5071e129_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_timestamp@
hs_bindgen_408ba78d5071e129 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBTimestamp
-> IO DuckDBState
hs_bindgen_408ba78d5071e129 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_408ba78d5071e129_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBTimestamp' value to the prepared statement at the specified index.
history:
* stable: v0.2.9
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_timestamp@
__defined at:__ @duckdb.h 6240:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_timestamp ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBTimestamp
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_timestamp =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_408ba78d5071e129 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_timestamp_tz@
foreign import ccall safe "hs_bindgen_e37f0c4d9ec67f72" hs_bindgen_e37f0c4d9ec67f72_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_timestamp_tz@
hs_bindgen_e37f0c4d9ec67f72 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBTimestamp
-> IO DuckDBState
hs_bindgen_e37f0c4d9ec67f72 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_e37f0c4d9ec67f72_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBTimestamp' value to the prepared statement at the specified index.
history:
* stable: v1.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_timestamp_tz@
__defined at:__ @duckdb.h 6256:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_timestamp_tz ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBTimestamp
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_timestamp_tz =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_e37f0c4d9ec67f72 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_interval@
foreign import ccall safe "hs_bindgen_60eda501a3472aa0" hs_bindgen_60eda501a3472aa0_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_interval@
hs_bindgen_60eda501a3472aa0 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> BG.Ptr DuckDBInterval
-> IO DuckDBState
hs_bindgen_60eda501a3472aa0 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_60eda501a3472aa0_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-|
Binds a t'DuckDBInterval' value to the prepared statement at the specified index.
history:
* stable: v0.2.9
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_interval@
__defined at:__ @duckdb.h 6272:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_interval ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> DuckDBInterval
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_interval =
\prepared_statement0 ->
\param_idx1 ->
\val2 ->
BG.with val2 (\val3 ->
hs_bindgen_60eda501a3472aa0 prepared_statement0 param_idx1 val3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_varchar@
foreign import ccall safe "hs_bindgen_6789c4064ae33dfd" hs_bindgen_6789c4064ae33dfd_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_varchar@
hs_bindgen_6789c4064ae33dfd ::
DuckDBPreparedStatement
-> DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBState
hs_bindgen_6789c4064ae33dfd =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_6789c4064ae33dfd_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Binds a null-terminated varchar value to the prepared statement at the specified index.
Superseded by @'c_duckdb_bind_value'@ .
history:
* stable: v0.1.0
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_varchar@
__defined at:__ @duckdb.h 6289:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_varchar ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBState
c_duckdb_bind_varchar = hs_bindgen_6789c4064ae33dfd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_varchar_length@
foreign import ccall safe "hs_bindgen_8da54da1c75fc6d7" hs_bindgen_8da54da1c75fc6d7_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_varchar_length@
hs_bindgen_8da54da1c75fc6d7 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_8da54da1c75fc6d7 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_8da54da1c75fc6d7_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Binds a varchar value to the prepared statement at the specified index.
Superseded by @'c_duckdb_bind_value'@ .
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@val@__]:
[__@length@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_varchar_length@
__defined at:__ @duckdb.h 6307:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_varchar_length ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> DuckDBIdx
{- ^
[__@length@__]:
__C declaration:__ @length@
-}
-> IO DuckDBState
c_duckdb_bind_varchar_length =
hs_bindgen_8da54da1c75fc6d7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_blob@
foreign import ccall safe "hs_bindgen_f3dfed4bc402c238" hs_bindgen_f3dfed4bc402c238_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_blob@
hs_bindgen_f3dfed4bc402c238 ::
DuckDBPreparedStatement
-> DuckDBIdx
-> PtrConst.PtrConst BG.Void
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_f3dfed4bc402c238 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_f3dfed4bc402c238_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Binds a blob value to the prepared statement at the specified index.
history:
* stable: v0.2.5
[__@prepared_statement@__]:
[__@param_idx@__]:
[__@data@__]:
[__@length@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_blob@
__defined at:__ @duckdb.h 6324:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_blob ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> PtrConst.PtrConst BG.Void
{- ^
[__@data@__]:
__C declaration:__ @data@
-}
-> DuckDBIdx
{- ^
[__@length@__]:
__C declaration:__ @length@
-}
-> IO DuckDBState
c_duckdb_bind_blob = hs_bindgen_f3dfed4bc402c238
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_null@
foreign import ccall safe "hs_bindgen_5ef44e468bc16aaa" hs_bindgen_5ef44e468bc16aaa_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_null@
hs_bindgen_5ef44e468bc16aaa ::
DuckDBPreparedStatement
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_5ef44e468bc16aaa =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_5ef44e468bc16aaa_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Binds a NULL value to the prepared statement at the specified index.
history:
* stable: v0.1.2
[__@prepared_statement@__]:
[__@param_idx@__]:
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_bind_null@
__defined at:__ @duckdb.h 6339:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_null ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]:
__C declaration:__ @prepared_statement@
-}
-> DuckDBIdx
{- ^
[__@param_idx@__]:
__C declaration:__ @param_idx@
-}
-> IO DuckDBState
c_duckdb_bind_null = hs_bindgen_5ef44e468bc16aaa
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared@
foreign import ccall safe "hs_bindgen_629c85be7284c355" hs_bindgen_629c85be7284c355_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared@
hs_bindgen_629c85be7284c355 ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBResult
-> IO DuckDBState
hs_bindgen_629c85be7284c355 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_629c85be7284c355_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Executes the prepared statement with the given bound parameters, and returns a materialized query result.
This method can be called multiple times for each prepared statement, and the parameters can be modified between calls to this function.
Note that the result must be freed with @'c_duckdb_destroy_result'@ .
history:
* stable: v0.1.0
[__@prepared_statement@__]: The prepared statement to execute.
[__@out_result@__]: The query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_execute_prepared@
__defined at:__ @duckdb.h 6357:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_prepared ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to execute.
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBResult
{- ^
[__@out_result@__]: The query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_execute_prepared =
hs_bindgen_629c85be7284c355
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_extract_statements@
foreign import ccall safe "hs_bindgen_3a899fb5cfe65940" hs_bindgen_3a899fb5cfe65940_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_extract_statements@
hs_bindgen_3a899fb5cfe65940 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBExtractedStatements
-> IO DuckDBIdx
hs_bindgen_3a899fb5cfe65940 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_3a899fb5cfe65940_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Extract all statements from a query. Note that after calling @'c_duckdb_extract_statements'@ , the extracted statements should always be destroyed using @'c_duckdb_destroy_extracted'@ , even if no statements were extracted.
If the extract fails, @'c_duckdb_extract_statements_error'@ can be called to obtain the reason why the extract failed.
history:
* stable: v0.7.0
[__@connection@__]: The connection object
[__@query@__]: The SQL query to extract
[__@out_extracted_statements@__]: The resulting extracted statements object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_extract_statements@
__defined at:__ @duckdb.h 6375:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_extract_statements ::
DuckDBConnection
{- ^
[__@connection@__]: The connection object
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The SQL query to extract
__C declaration:__ @query@
-}
-> BG.Ptr DuckDBExtractedStatements
{- ^
[__@out_extracted_statements@__]: The resulting extracted statements object
__C declaration:__ @out_extracted_statements@
-}
-> IO DuckDBIdx
c_duckdb_extract_statements =
hs_bindgen_3a899fb5cfe65940
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare_extracted_statement@
foreign import ccall safe "hs_bindgen_c1d2b24650595603" hs_bindgen_c1d2b24650595603_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_prepare_extracted_statement@
hs_bindgen_c1d2b24650595603 ::
DuckDBConnection
-> DuckDBExtractedStatements
-> DuckDBIdx
-> BG.Ptr DuckDBPreparedStatement
-> IO DuckDBState
hs_bindgen_c1d2b24650595603 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_c1d2b24650595603_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Prepare an extracted statement. Note that after calling @'c_duckdb_prepare_extracted_statement'@ , the prepared statement should always be destroyed using @'c_duckdb_destroy_prepare'@ , even if the prepare fails.
If the prepare fails, @'c_duckdb_prepare_error'@ can be called to obtain the reason why the prepare failed.
history:
* stable: v0.7.0
[__@connection@__]: The connection object
[__@extracted_statements@__]: The extracted statements object
[__@index@__]: The index of the extracted statement to prepare
[__@out_prepared_statement@__]: The resulting prepared statement object
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_prepare_extracted_statement@
__defined at:__ @duckdb.h 6395:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_prepare_extracted_statement ::
DuckDBConnection
{- ^
[__@connection@__]: The connection object
__C declaration:__ @connection@
-}
-> DuckDBExtractedStatements
{- ^
[__@extracted_statements@__]: The extracted statements object
__C declaration:__ @extracted_statements@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the extracted statement to prepare
__C declaration:__ @index@
-}
-> BG.Ptr DuckDBPreparedStatement
{- ^
[__@out_prepared_statement@__]: The resulting prepared statement object
__C declaration:__ @out_prepared_statement@
-}
-> IO DuckDBState
c_duckdb_prepare_extracted_statement =
hs_bindgen_c1d2b24650595603
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_extract_statements_error@
foreign import ccall safe "hs_bindgen_d1cda79c464875a1" hs_bindgen_d1cda79c464875a1_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_extract_statements_error@
hs_bindgen_d1cda79c464875a1 ::
DuckDBExtractedStatements
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_d1cda79c464875a1 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_d1cda79c464875a1_base (BG.toFFIType x0))
{-| Returns the error message contained within the extracted statements. The result of this function must not be freed. It will be cleaned up when @'c_duckdb_destroy_extracted'@ is called.
history:
* stable: v0.7.0
[__@extracted_statements@__]: The extracted statements to fetch the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_extract_statements_error@
__defined at:__ @duckdb.h 6412:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_extract_statements_error ::
DuckDBExtractedStatements
{- ^
[__@extracted_statements@__]: The extracted statements to fetch the error from.
__C declaration:__ @extracted_statements@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_extract_statements_error =
hs_bindgen_d1cda79c464875a1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_extracted@
foreign import ccall safe "hs_bindgen_b2c9b38c3dab239d" hs_bindgen_b2c9b38c3dab239d_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_extracted@
hs_bindgen_b2c9b38c3dab239d ::
BG.Ptr DuckDBExtractedStatements
-> IO ()
hs_bindgen_b2c9b38c3dab239d =
\x0 ->
hs_bindgen_b2c9b38c3dab239d_base (BG.toFFIType x0)
{-| De-allocates all memory allocated for the extracted statements.
history:
* stable: v0.7.0
[__@extracted_statements@__]: The extracted statements to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_extracted@
__defined at:__ @duckdb.h 6425:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_extracted ::
BG.Ptr DuckDBExtractedStatements
{- ^
[__@extracted_statements@__]: The extracted statements to destroy.
__C declaration:__ @extracted_statements@
-}
-> IO ()
c_duckdb_destroy_extracted =
hs_bindgen_b2c9b38c3dab239d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared_streaming@
foreign import ccall safe "hs_bindgen_d9a9d21987a2fe23" hs_bindgen_d9a9d21987a2fe23_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_prepared_streaming@
hs_bindgen_d9a9d21987a2fe23 ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBResult
-> IO DuckDBState
hs_bindgen_d9a9d21987a2fe23 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_d9a9d21987a2fe23_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Executes the prepared statement with the given bound parameters, and returns an optionally-streaming query result. To determine if the resulting query was in fact streamed, use @'c_duckdb_result_is_streaming'@
This method can be called multiple times for each prepared statement, and the parameters can be modified between calls to this function.
Note that the result must be freed with @'c_duckdb_destroy_result'@ .
history:
* stable: v0.10.0
* deprecated: v1.0.0
[__@prepared_statement@__]: The prepared statement to execute.
[__@out_result@__]: The query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_execute_prepared_streaming@
__defined at:__ @duckdb.h 6448:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_prepared_streaming ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to execute.
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBResult
{- ^
[__@out_result@__]: The query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_execute_prepared_streaming =
hs_bindgen_d9a9d21987a2fe23
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_prepared_streaming@
foreign import ccall safe "hs_bindgen_5b8189ac2ab75aa9" hs_bindgen_5b8189ac2ab75aa9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_pending_prepared_streaming@
hs_bindgen_5b8189ac2ab75aa9 ::
DuckDBPreparedStatement
-> BG.Ptr DuckDBPendingResult
-> IO DuckDBState
hs_bindgen_5b8189ac2ab75aa9 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_5b8189ac2ab75aa9_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Executes the prepared statement with the given bound parameters, and returns a pending result. This pending result will create a streaming t'DuckDBResult' when executed. The pending result represents an intermediate structure for a query that is not yet fully executed.
Note that after calling @'c_duckdb_pending_prepared_streaming'@ , the pending result should always be destroyed using @'c_duckdb_destroy_pending'@ , even if this function returns DuckDBError.
history:
* stable: v0.8.0
* deprecated: v1.0.0
[__@prepared_statement@__]: The prepared statement to execute.
[__@out_result@__]: The pending query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_pending_prepared_streaming@
__defined at:__ @duckdb.h 6471:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_pending_prepared_streaming ::
DuckDBPreparedStatement
{- ^
[__@prepared_statement@__]: The prepared statement to execute.
__C declaration:__ @prepared_statement@
-}
-> BG.Ptr DuckDBPendingResult
{- ^
[__@out_result@__]: The pending query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_pending_prepared_streaming =
hs_bindgen_5b8189ac2ab75aa9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query@
foreign import ccall safe "hs_bindgen_71265af97d3a41d1" hs_bindgen_71265af97d3a41d1_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_query@
hs_bindgen_71265af97d3a41d1 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBResult
-> IO DuckDBState
hs_bindgen_71265af97d3a41d1 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_71265af97d3a41d1_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Executes a SQL query within a connection and stores the full (materialized) result in the out_result pointer. If the query fails to execute, DuckDBError is returned and the error message can be retrieved by calling @'c_duckdb_result_error'@ .
Note that after running @'c_duckdb_query'@ , @'c_duckdb_destroy_result'@ must be called on the result object even if the query fails, otherwise the error stored within the result will not be freed correctly.
history:
* stable: v0.1.0
[__@connection@__]: The connection to perform the query in.
[__@query@__]: The SQL query to run.
[__@out_result@__]: The query result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_query@
__defined at:__ @duckdb.h 6509:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_query ::
DuckDBConnection
{- ^
[__@connection@__]: The connection to perform the query in.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@query@__]: The SQL query to run.
__C declaration:__ @query@
-}
-> BG.Ptr DuckDBResult
{- ^
[__@out_result@__]: The query result.
__C declaration:__ @out_result@
-}
-> IO DuckDBState
c_duckdb_query = hs_bindgen_71265af97d3a41d1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_result@
foreign import ccall safe "hs_bindgen_b86dbae055869626" hs_bindgen_b86dbae055869626_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_result@
hs_bindgen_b86dbae055869626 ::
BG.Ptr DuckDBResult
-> IO ()
hs_bindgen_b86dbae055869626 =
\x0 ->
hs_bindgen_b86dbae055869626_base (BG.toFFIType x0)
{-| Closes the result and de-allocates all memory allocated for that result.
Destroying a streaming result whose statement has not completed aborts the statement. On autocommit, its writes are rolled back. Inside a transaction, a statement that may write invalidates the transaction, and a read-only statement just stops. Until the statement has completed, preparing or running another statement on the connection fails with @@DUCKDB_ERROR_RESOURCE_IN_USE@@ and leaves it untouched. To make sure the statement takes effect, complete it by fetching until @'c_duckdb_fetch_chunk'@ returns NULL before destroying the result. A NULL chunk is also returned on an error, so check @'c_duckdb_result_error'@ afterwards.
history:
* stable: v0.1.0
[__@result@__]: The result to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_result@
__defined at:__ @duckdb.h 6527:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_result ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result to destroy.
__C declaration:__ @result@
-}
-> IO ()
c_duckdb_destroy_result = hs_bindgen_b86dbae055869626
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_name@
foreign import ccall safe "hs_bindgen_d23794402f3fe9a9" hs_bindgen_d23794402f3fe9a9_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_name@
hs_bindgen_d23794402f3fe9a9 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_d23794402f3fe9a9 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_d23794402f3fe9a9_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the column name of the specified column. The result should not need to be freed; the column names will automatically be destroyed when the result is destroyed.
Returns @NULL@ if the column is out of range.
history:
* stable: v0.2.1
[__@result@__]: The result object to fetch the column name from.
[__@col@__]: The column index.
__Returns:__ const char*
__C declaration:__ @duckdb_column_name@
__defined at:__ @duckdb.h 6543:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_name ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the column name from.
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]: The column index.
__C declaration:__ @col@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_column_name = hs_bindgen_d23794402f3fe9a9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_type@
foreign import ccall safe "hs_bindgen_15a95e7d7ac8efc1" hs_bindgen_15a95e7d7ac8efc1_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_type@
hs_bindgen_15a95e7d7ac8efc1 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO DuckDBTypeAlias
hs_bindgen_15a95e7d7ac8efc1 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_15a95e7d7ac8efc1_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the column type of the specified column.
Returns @@DUCKDB_TYPE_INVALID@@ if the column is out of range.
history:
* stable: v0.2.9
[__@result@__]: The result object to fetch the column type from.
[__@col@__]: The column index.
__Returns:__ t'DuckDBTypeAlias'
__C declaration:__ @duckdb_column_type@
__defined at:__ @duckdb.h 6559:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_type ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the column type from.
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]: The column index.
__C declaration:__ @col@
-}
-> IO DuckDBTypeAlias
c_duckdb_column_type = hs_bindgen_15a95e7d7ac8efc1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_statement_type@
foreign import ccall safe "hs_bindgen_8a124a1bd6d825dd" hs_bindgen_8a124a1bd6d825dd_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_statement_type@
hs_bindgen_8a124a1bd6d825dd ::
BG.Ptr DuckDBResult
-> IO DuckDBStatementType
hs_bindgen_8a124a1bd6d825dd =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8a124a1bd6d825dd_base (BG.toFFIType x0))
{-| Returns the statement type of the statement that was executed
history:
* stable: v0.10.0
[__@result@__]: The result object to fetch the statement type from.
__Returns:__ t'DuckDBStatementType'
__C declaration:__ @duckdb_result_statement_type@
__defined at:__ @duckdb.h 6572:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_statement_type ::
DuckDBResult
{- ^
[__@result@__]: The result object to fetch the statement type from.
__C declaration:__ @result@
-}
-> IO DuckDBStatementType
c_duckdb_result_statement_type =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_8a124a1bd6d825dd result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_logical_type@
foreign import ccall safe "hs_bindgen_7a205ff70db1d914" hs_bindgen_7a205ff70db1d914_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_logical_type@
hs_bindgen_7a205ff70db1d914 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_7a205ff70db1d914 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_7a205ff70db1d914_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the logical column type of the specified column.
The return type of this call should be destroyed with @'c_duckdb_destroy_logical_type'@ .
Returns @NULL@ if the column is out of range.
history:
* stable: v0.3.3
[__@result@__]: The result object to fetch the column type from.
[__@col@__]: The column index.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_column_logical_type@
__defined at:__ @duckdb.h 6590:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_logical_type ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the column type from.
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]: The column index.
__C declaration:__ @col@
-}
-> IO DuckDBLogicalType
c_duckdb_column_logical_type =
hs_bindgen_7a205ff70db1d914
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_get_arrow_options@
foreign import ccall safe "hs_bindgen_64d7e2281fcc020a" hs_bindgen_64d7e2281fcc020a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_get_arrow_options@
hs_bindgen_64d7e2281fcc020a ::
BG.Ptr DuckDBResult
-> IO DuckDBArrowOptions
hs_bindgen_64d7e2281fcc020a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_64d7e2281fcc020a_base (BG.toFFIType x0))
{-| Returns the arrow options associated with the given result. These options are definitions of how the arrow arrays/schema should be produced.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@result@__]: The result object to fetch arrow options from.
__Returns:__ t'DuckDBArrowOptions'
__C declaration:__ @duckdb_result_get_arrow_options@
__defined at:__ @duckdb.h 6605:35@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_get_arrow_options ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch arrow options from.
__C declaration:__ @result@
-}
-> IO DuckDBArrowOptions
c_duckdb_result_get_arrow_options =
hs_bindgen_64d7e2281fcc020a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_count@
foreign import ccall safe "hs_bindgen_7041e53dc1f8b5e8" hs_bindgen_7041e53dc1f8b5e8_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_count@
hs_bindgen_7041e53dc1f8b5e8 ::
BG.Ptr DuckDBResult
-> IO DuckDBIdx
hs_bindgen_7041e53dc1f8b5e8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7041e53dc1f8b5e8_base (BG.toFFIType x0))
{-| Returns the number of columns present in a the result object.
history:
* stable: v0.2.9
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_column_count@
__defined at:__ @duckdb.h 6618:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_count ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_column_count = hs_bindgen_7041e53dc1f8b5e8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_rows_changed@
foreign import ccall safe "hs_bindgen_a04d4c381ef339ef" hs_bindgen_a04d4c381ef339ef_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_rows_changed@
hs_bindgen_a04d4c381ef339ef ::
BG.Ptr DuckDBResult
-> IO DuckDBIdx
hs_bindgen_a04d4c381ef339ef =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a04d4c381ef339ef_base (BG.toFFIType x0))
{-| Returns the number of rows changed by the query stored in the result. This is relevant only for INSERT/UPDATE/DELETE queries. For other queries the rows_changed will be 0.
history:
* stable: v0.2.9
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_rows_changed@
__defined at:__ @duckdb.h 6632:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_rows_changed ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_rows_changed = hs_bindgen_a04d4c381ef339ef
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_error@
foreign import ccall safe "hs_bindgen_6a44049691a0d5ca" hs_bindgen_6a44049691a0d5ca_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_error@
hs_bindgen_6a44049691a0d5ca ::
BG.Ptr DuckDBResult
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_6a44049691a0d5ca =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6a44049691a0d5ca_base (BG.toFFIType x0))
{-| Returns the error message contained within the result. The error is only set if @'c_duckdb_query'@ returns @@DuckDBError@@ .
The result of this function must not be freed. It will be cleaned up when @'c_duckdb_destroy_result'@ is called.
history:
* stable: v0.2.9
[__@result@__]: The result object to fetch the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_result_error@
__defined at:__ @duckdb.h 6647:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_error ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the error from.
__C declaration:__ @result@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_result_error = hs_bindgen_6a44049691a0d5ca
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_error_type@
foreign import ccall safe "hs_bindgen_192ec6d6ab754ea4" hs_bindgen_192ec6d6ab754ea4_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_error_type@
hs_bindgen_192ec6d6ab754ea4 ::
BG.Ptr DuckDBResult
-> IO DuckDBErrorType
hs_bindgen_192ec6d6ab754ea4 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_192ec6d6ab754ea4_base (BG.toFFIType x0))
{-| Returns the result error type contained within the result. The error is only set if @'c_duckdb_query'@ returns @@DuckDBError@@ .
history:
* stable: v1.1.0
[__@result@__]: The result object to fetch the error from.
__Returns:__ t'DuckDBErrorType'
__C declaration:__ @duckdb_result_error_type@
__defined at:__ @duckdb.h 6661:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_error_type ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the error from.
__C declaration:__ @result@
-}
-> IO DuckDBErrorType
c_duckdb_result_error_type =
hs_bindgen_192ec6d6ab754ea4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_return_type@
foreign import ccall safe "hs_bindgen_28c674c4821c15e7" hs_bindgen_28c674c4821c15e7_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_return_type@
hs_bindgen_28c674c4821c15e7 ::
BG.Ptr DuckDBResult
-> IO DuckDBResultType
hs_bindgen_28c674c4821c15e7 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_28c674c4821c15e7_base (BG.toFFIType x0))
{-| Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on error
history:
* stable: v0.10.0
[__@result@__]: The result object
__Returns:__ t'DuckDBResultType'
__C declaration:__ @duckdb_result_return_type@
__defined at:__ @duckdb.h 6674:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_return_type ::
DuckDBResult
{- ^
[__@result@__]: The result object
__C declaration:__ @result@
-}
-> IO DuckDBResultType
c_duckdb_result_return_type =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_28c674c4821c15e7 result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_fetch_chunk@
foreign import ccall safe "hs_bindgen_e0bcac4419c39797" hs_bindgen_e0bcac4419c39797_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_fetch_chunk@
hs_bindgen_e0bcac4419c39797 ::
BG.Ptr DuckDBResult
-> IO DuckDBDataChunk
hs_bindgen_e0bcac4419c39797 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_e0bcac4419c39797_base (BG.toFFIType x0))
{-|
Fetches a data chunk from a t'DuckDBResult' . This function should be called repeatedly until the result is exhausted.
The result must be destroyed with @'c_duckdb_destroy_data_chunk'@ .
It is not known beforehand how many chunks will be returned by this result.
history:
* stable: v1.0.0
[__@result@__]: The result object to fetch the data chunk from.
__Returns:__ t'DuckDBDataChunk'
__C declaration:__ @duckdb_fetch_chunk@
__defined at:__ @duckdb.h 6691:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_fetch_chunk ::
DuckDBResult
{- ^
[__@result@__]: The result object to fetch the data chunk from.
__C declaration:__ @result@
-}
-> IO DuckDBDataChunk
c_duckdb_fetch_chunk =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_e0bcac4419c39797 result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_error_data@
foreign import ccall safe "hs_bindgen_83b19aac8561d31d" hs_bindgen_83b19aac8561d31d_base ::
BG.CUInt
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_error_data@
hs_bindgen_83b19aac8561d31d ::
DuckDBErrorType
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBErrorData
hs_bindgen_83b19aac8561d31d =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_83b19aac8561d31d_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Creates t'DuckDBErrorData' . Must be destroyed with @'c_duckdb_destroy_error_data'@ .
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@type@__]: The error type.
[__@message@__]: The error message.
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_create_error_data@
__defined at:__ @duckdb.h 6706:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_error_data ::
DuckDBErrorType
{- ^
[__@type@__]: The error type.
__C declaration:__ @type@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@message@__]: The error message.
__C declaration:__ @message@
-}
-> IO DuckDBErrorData
c_duckdb_create_error_data =
hs_bindgen_83b19aac8561d31d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_error_data@
foreign import ccall safe "hs_bindgen_e557d66e3312baae" hs_bindgen_e557d66e3312baae_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_error_data@
hs_bindgen_e557d66e3312baae ::
BG.Ptr DuckDBErrorData
-> IO ()
hs_bindgen_e557d66e3312baae =
\x0 ->
hs_bindgen_e557d66e3312baae_base (BG.toFFIType x0)
{-| Destroys the error data and deallocates its memory.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@error_data@__]: The error data to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_error_data@
__defined at:__ @duckdb.h 6720:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_error_data ::
BG.Ptr DuckDBErrorData
{- ^
[__@error_data@__]: The error data to destroy.
__C declaration:__ @error_data@
-}
-> IO ()
c_duckdb_destroy_error_data =
hs_bindgen_e557d66e3312baae
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_error_type@
foreign import ccall safe "hs_bindgen_c1966ca80c0b4d76" hs_bindgen_c1966ca80c0b4d76_base ::
BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_error_type@
hs_bindgen_c1966ca80c0b4d76 ::
DuckDBErrorData
-> IO DuckDBErrorType
hs_bindgen_c1966ca80c0b4d76 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c1966ca80c0b4d76_base (BG.toFFIType x0))
{-|
Returns the t'DuckDBErrorType' of the error data.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@error_data@__]: The error data.
__Returns:__ t'DuckDBErrorType'
__C declaration:__ @duckdb_error_data_error_type@
__defined at:__ @duckdb.h 6734:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_error_data_error_type ::
DuckDBErrorData
{- ^
[__@error_data@__]: The error data.
__C declaration:__ @error_data@
-}
-> IO DuckDBErrorType
c_duckdb_error_data_error_type =
hs_bindgen_c1966ca80c0b4d76
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_message@
foreign import ccall safe "hs_bindgen_787ec5c9b9236c65" hs_bindgen_787ec5c9b9236c65_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_message@
hs_bindgen_787ec5c9b9236c65 ::
DuckDBErrorData
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_787ec5c9b9236c65 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_787ec5c9b9236c65_base (BG.toFFIType x0))
{-| Returns the error message of the error data. Must not be freed.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@error_data@__]: The error data.
__Returns:__ const char*
__C declaration:__ @duckdb_error_data_message@
__defined at:__ @duckdb.h 6748:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_error_data_message ::
DuckDBErrorData
{- ^
[__@error_data@__]: The error data.
__C declaration:__ @error_data@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_error_data_message =
hs_bindgen_787ec5c9b9236c65
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_has_error@
foreign import ccall safe "hs_bindgen_6ec4f19ab789994d" hs_bindgen_6ec4f19ab789994d_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_error_data_has_error@
hs_bindgen_6ec4f19ab789994d ::
DuckDBErrorData
-> IO BG.CBool
hs_bindgen_6ec4f19ab789994d =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6ec4f19ab789994d_base (BG.toFFIType x0))
{-| Returns whether the error data contains an error or not.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@error_data@__]: The error data.
__Returns:__ bool
__C declaration:__ @duckdb_error_data_has_error@
__defined at:__ @duckdb.h 6762:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_error_data_has_error ::
DuckDBErrorData
{- ^
[__@error_data@__]: The error data.
__C declaration:__ @error_data@
-}
-> IO BG.CBool
c_duckdb_error_data_has_error =
hs_bindgen_6ec4f19ab789994d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_malloc@
foreign import ccall safe "hs_bindgen_f1244214a8151e9a" hs_bindgen_f1244214a8151e9a_base ::
HsBindgen.Runtime.LibC.CSize
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_malloc@
hs_bindgen_f1244214a8151e9a ::
HsBindgen.Runtime.LibC.CSize
-> IO (BG.Ptr BG.Void)
hs_bindgen_f1244214a8151e9a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f1244214a8151e9a_base (BG.toFFIType x0))
{-| Allocate @size@ bytes of memory using the duckdb internal malloc function. Any memory allocated in this manner should be freed using @'c_duckdb_free'@ .
history:
* stable: v0.2.7
[__@size@__]: The number of bytes to allocate.
__Returns:__ void*
__C declaration:__ @duckdb_malloc@
__defined at:__ @duckdb.h 6776:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_malloc ::
HsBindgen.Runtime.LibC.CSize
{- ^
[__@size@__]: The number of bytes to allocate.
__C declaration:__ @size@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_malloc = hs_bindgen_f1244214a8151e9a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_free@
foreign import ccall safe "hs_bindgen_bcf85a099654942f" hs_bindgen_bcf85a099654942f_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_free@
hs_bindgen_bcf85a099654942f ::
BG.Ptr BG.Void
-> IO ()
hs_bindgen_bcf85a099654942f =
\x0 ->
hs_bindgen_bcf85a099654942f_base (BG.toFFIType x0)
{-| Free a value returned from @'c_duckdb_malloc'@ , @'c_duckdb_value_varchar'@ , @'c_duckdb_value_blob'@ , or @'c_duckdb_value_string'@ .
history:
* stable: v0.2.7
[__@ptr@__]: The memory region to de-allocate.
__Returns:__ void
__C declaration:__ @duckdb_free@
__defined at:__ @duckdb.h 6789:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_free ::
BG.Ptr BG.Void
{- ^
[__@ptr@__]: The memory region to de-allocate.
__C declaration:__ @ptr@
-}
-> IO ()
c_duckdb_free = hs_bindgen_bcf85a099654942f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_size@
foreign import ccall safe "hs_bindgen_3618e0173ef20b47" hs_bindgen_3618e0173ef20b47_base ::
IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_size@
hs_bindgen_3618e0173ef20b47 :: IO DuckDBIdx
hs_bindgen_3618e0173ef20b47 =
fmap BG.fromFFIType hs_bindgen_3618e0173ef20b47_base
{-| The internal vector size used by DuckDB. This is the amount of tuples that will fit into a data chunk created by @'c_duckdb_create_data_chunk'@ .
history:
* stable: v0.3.3
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_vector_size@
__defined at:__ @duckdb.h 6802:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_size :: IO DuckDBIdx
c_duckdb_vector_size = hs_bindgen_3618e0173ef20b47
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_is_inlined@
foreign import ccall safe "hs_bindgen_7db158389f9bbb5a" hs_bindgen_7db158389f9bbb5a_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_is_inlined@
hs_bindgen_7db158389f9bbb5a ::
BG.Ptr DuckDBStringT
-> IO BG.CBool
hs_bindgen_7db158389f9bbb5a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7db158389f9bbb5a_base (BG.toFFIType x0))
{-|
Whether or not the t'DuckDBStringT' value is inlined. This means that the data of the string does not have a separate allocation.
history:
* stable: v0.8.0
[__@string@__]:
__Returns:__ bool
__C declaration:__ @duckdb_string_is_inlined@
__defined at:__ @duckdb.h 6816:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_string_is_inlined ::
DuckDBStringT
{- ^
[__@string@__]:
__C declaration:__ @string@
-}
-> IO BG.CBool
c_duckdb_string_is_inlined =
\string0 ->
BG.with string0 (\string1 ->
hs_bindgen_7db158389f9bbb5a string1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_t_length@
foreign import ccall safe "hs_bindgen_370767e53933be13" hs_bindgen_370767e53933be13_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_t_length@
hs_bindgen_370767e53933be13 ::
BG.Ptr DuckDBStringT
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_370767e53933be13 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_370767e53933be13_base (BG.toFFIType x0))
{-| Get the length of a string
history:
* stable: v1.1.0
[__@string@__]: The string to get the length of.
__Returns:__ uint32_t
__C declaration:__ @duckdb_string_t_length@
__defined at:__ @duckdb.h 6829:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_string_t_length ::
DuckDBStringT
{- ^
[__@string@__]: The string to get the length of.
__C declaration:__ @string@
-}
-> IO HsBindgen.Runtime.LibC.Word32
c_duckdb_string_t_length =
\string0 ->
BG.with string0 (\string1 ->
hs_bindgen_370767e53933be13 string1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_t_data@
foreign import ccall safe "hs_bindgen_4dec572fab160e21" hs_bindgen_4dec572fab160e21_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_string_t_data@
hs_bindgen_4dec572fab160e21 ::
BG.Ptr DuckDBStringT
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_4dec572fab160e21 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4dec572fab160e21_base (BG.toFFIType x0))
{-| Get a pointer to the string data of a string
history:
* stable: v1.1.0
[__@string@__]: The string to get the pointer to.
__Returns:__ const char*
__C declaration:__ @duckdb_string_t_data@
__defined at:__ @duckdb.h 6842:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_string_t_data ::
BG.Ptr DuckDBStringT
{- ^
[__@string@__]: The string to get the pointer to.
__C declaration:__ @string@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_string_t_data = hs_bindgen_4dec572fab160e21
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_valid_utf8_check@
foreign import ccall safe "hs_bindgen_98c8545376939a95" hs_bindgen_98c8545376939a95_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_valid_utf8_check@
hs_bindgen_98c8545376939a95 ::
PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO DuckDBErrorData
hs_bindgen_98c8545376939a95 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_98c8545376939a95_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Checks if a string is valid UTF-8.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@str@__]: The string to check
[__@len@__]: The length of the string (in bytes)
__Returns:__ t'DuckDBErrorData'
__C declaration:__ @duckdb_valid_utf8_check@
__defined at:__ @duckdb.h 6857:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_valid_utf8_check ::
PtrConst.PtrConst BG.CChar
{- ^
[__@str@__]: The string to check
__C declaration:__ @str@
-}
-> DuckDBIdx
{- ^
[__@len@__]: The length of the string (in bytes)
__C declaration:__ @len@
-}
-> IO DuckDBErrorData
c_duckdb_valid_utf8_check =
hs_bindgen_98c8545376939a95
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_row_count@
foreign import ccall safe "hs_bindgen_9c5e815dd04bdc70" hs_bindgen_9c5e815dd04bdc70_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_row_count@
hs_bindgen_9c5e815dd04bdc70 ::
BG.Ptr DuckDBResult
-> IO DuckDBIdx
hs_bindgen_9c5e815dd04bdc70 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_9c5e815dd04bdc70_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the number of rows present in the result object.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]: The result object.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_row_count@
__defined at:__ @duckdb.h 6873:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_row_count ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object.
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_row_count = hs_bindgen_9c5e815dd04bdc70
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_data@
foreign import ccall safe "hs_bindgen_6d8e96c1f8b5a7c4" hs_bindgen_6d8e96c1f8b5a7c4_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_data@
hs_bindgen_6d8e96c1f8b5a7c4 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO (BG.Ptr BG.Void)
hs_bindgen_6d8e96c1f8b5a7c4 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6d8e96c1f8b5a7c4_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATED__ : Prefer using @'c_duckdb_result_get_chunk'@ instead.
Returns the data of a specific column of a result in columnar format.
The function returns a dense array which contains the result data. The exact type stored in the array depends on the corresponding t'DuckDBTypeAlias' (as provided by @'c_duckdb_column_type'@ ). For the exact type by which the data should be accessed, see the comments in [the types section](types) or the @t'DuckDBType'@ enum.
For example, for a column of type @@DUCKDB_TYPE_INTEGER@@ , rows can be accessed in the following manner: @c int32_t *data = (int32_t *) 'c_duckdb_column_data' (&result, 0); printf("Data for row d: d\n", row, data[row]);@
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]: The result object to fetch the column data from.
[__@col@__]: The column index.
__Returns:__ void*
__C declaration:__ @duckdb_column_data@
__defined at:__ @duckdb.h 6897:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_data ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]: The result object to fetch the column data from.
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]: The column index.
__C declaration:__ @col@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_column_data = hs_bindgen_6d8e96c1f8b5a7c4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_nullmask_data@
foreign import ccall safe "hs_bindgen_d038d17542f439e3" hs_bindgen_d038d17542f439e3_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_nullmask_data@
hs_bindgen_d038d17542f439e3 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO (BG.Ptr BG.CBool)
hs_bindgen_d038d17542f439e3 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_d038d17542f439e3_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __C declaration:__ @duckdb_nullmask_data@
__defined at:__ @duckdb.h 6920:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_nullmask_data ::
BG.Ptr DuckDBResult
-- ^ __C declaration:__ @result@
-> DuckDBIdx
-- ^ __C declaration:__ @col@
-> IO (BG.Ptr BG.CBool)
c_duckdb_nullmask_data = hs_bindgen_d038d17542f439e3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_get_chunk@
foreign import ccall safe "hs_bindgen_5996d8c396e44345" hs_bindgen_5996d8c396e44345_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_get_chunk@
hs_bindgen_5996d8c396e44345 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> IO DuckDBDataChunk
hs_bindgen_5996d8c396e44345 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_5996d8c396e44345_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __DEPRECATED__ : Prefer using @'c_duckdb_result_get_chunk'@ instead.
Returns the nullmask of a specific column of a result in columnar format. The nullmask indicates for every row whether or not the corresponding row is @NULL@ . If a row is @NULL@ , the values present in the array provided by @'c_duckdb_column_data'@ are undefined.
@
int32_t *data = (int32_t *) duckdb_column_data(&result, 0); bool *nullmask = duckdb_nullmask_data(&result, 0);
if (nullmask[row]) { printf("Data for row %d: NULL\n", row); } else { printf("Data for row %d: %d\n", row,
data[row]); }
@
history:
* stable: v0.2.9
* deprecated: v1.0.0
#if @DUCKDB_API_VERSION_AT_LEAST(0, 3, 3)@ && ( @DUCKDB_API_VERSION_BELOW(1, 0, 0)@ || DUCKDB_API_ALLOW_DEPRECATED) /*! __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
[__@result@__]: The result object to fetch the nullmask from.
[__@col@__]: The column index.
__Returns:__ bool* */ DUCKDB_C_API bool *duckdb_nullmask_data( t'DuckDBResult' *result, t'DuckDBIdx' col); #endif
Fetches a data chunk from the t'DuckDBResult' . This function should be called repeatedly until the result is exhausted.
The result must be destroyed with @'c_duckdb_destroy_data_chunk'@ .
This function supersedes all @t'DuckDBValue'@ functions, as well as the @'c_duckdb_column_data'@ and @duckdb_nullmask_data@ functions. It results in significantly better performance, and should be preferred in newer code-bases.
If this function is used, none of the other result functions can be used and vice versa (i.e. this function cannot be mixed with the legacy result functions).
Use @'c_duckdb_result_chunk_count'@ to figure out how many chunks there are in the result.
history:
* stable: v0.3.3
* deprecated: v1.0.0
[__@result@__]: The result object to fetch the data chunk from.
[__@chunk_index@__]: The chunk index to fetch from.
__Returns:__ t'DuckDBDataChunk'
__C declaration:__ @duckdb_result_get_chunk@
__defined at:__ @duckdb.h 6947:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_get_chunk ::
DuckDBResult
{- ^
[__@result@__]: The result object to fetch the data chunk from.
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@chunk_index@__]: The chunk index to fetch from.
__C declaration:__ @chunk_index@
-}
-> IO DuckDBDataChunk
c_duckdb_result_get_chunk =
\result0 ->
\chunk_index1 ->
BG.with result0 (\result2 ->
hs_bindgen_5996d8c396e44345 result2 chunk_index1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_is_streaming@
foreign import ccall safe "hs_bindgen_95717693287571e0" hs_bindgen_95717693287571e0_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_is_streaming@
hs_bindgen_95717693287571e0 ::
BG.Ptr DuckDBResult
-> IO BG.CBool
hs_bindgen_95717693287571e0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_95717693287571e0_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Checks if the type of the internal result is StreamQueryResult.
history:
* stable: v0.8.0
* deprecated: v1.0.0
[__@result@__]: The result object to check.
__Returns:__ bool
__C declaration:__ @duckdb_result_is_streaming@
__defined at:__ @duckdb.h 6963:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_is_streaming ::
DuckDBResult
{- ^
[__@result@__]: The result object to check.
__C declaration:__ @result@
-}
-> IO BG.CBool
c_duckdb_result_is_streaming =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_95717693287571e0 result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_chunk_count@
foreign import ccall safe "hs_bindgen_026a59d5dd8cd1d0" hs_bindgen_026a59d5dd8cd1d0_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_result_chunk_count@
hs_bindgen_026a59d5dd8cd1d0 ::
BG.Ptr DuckDBResult
-> IO DuckDBIdx
hs_bindgen_026a59d5dd8cd1d0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_026a59d5dd8cd1d0_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Returns the number of data chunks present in the result.
history:
* stable: v0.3.3
* deprecated: v1.0.0
[__@result@__]: The result object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_result_chunk_count@
__defined at:__ @duckdb.h 6979:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_result_chunk_count ::
DuckDBResult
{- ^
[__@result@__]: The result object
__C declaration:__ @result@
-}
-> IO DuckDBIdx
c_duckdb_result_chunk_count =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_026a59d5dd8cd1d0 result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_stream_fetch_chunk@
foreign import ccall safe "hs_bindgen_1779194488609e3a" hs_bindgen_1779194488609e3a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_stream_fetch_chunk@
hs_bindgen_1779194488609e3a ::
BG.Ptr DuckDBResult
-> IO DuckDBDataChunk
hs_bindgen_1779194488609e3a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1779194488609e3a_base (BG.toFFIType x0))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
Fetches a data chunk from the (streaming) t'DuckDBResult' . This function should be called repeatedly until the result is exhausted.
The result must be destroyed with @'c_duckdb_destroy_data_chunk'@ .
This function can only be used on duckdb_results created with \'duckdb_pending_prepared_streaming\'
If this function is used, none of the other result functions can be used and vice versa (i.e. this function cannot be mixed with the legacy result functions or the materialized result functions).
It is not known beforehand how many chunks will be returned by this result.
history:
* stable: v0.8.0
* deprecated: v1.0.0
[__@result@__]: The result object to fetch the data chunk from.
__Returns:__ t'DuckDBDataChunk'
__C declaration:__ @duckdb_stream_fetch_chunk@
__defined at:__ @duckdb.h 7005:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_stream_fetch_chunk ::
DuckDBResult
{- ^
[__@result@__]: The result object to fetch the data chunk from.
__C declaration:__ @result@
-}
-> IO DuckDBDataChunk
c_duckdb_stream_fetch_chunk =
\result0 ->
BG.with result0 (\result1 ->
hs_bindgen_1779194488609e3a result1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_replacement_scan@
foreign import ccall safe "hs_bindgen_97d26f995cbfe9e1" hs_bindgen_97d26f995cbfe9e1_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_replacement_scan@
hs_bindgen_97d26f995cbfe9e1 ::
DuckDBDatabase
-> DuckDBReplacementCallback
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_97d26f995cbfe9e1 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_97d26f995cbfe9e1_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| Add a replacement scan definition to the specified database.
history:
* stable: v0.3.3
[__@db@__]: The database object to add the replacement scan to
[__@replacement@__]: The replacement scan callback
[__@extra_data@__]: Extra data that is passed back into the specified callback
[__@delete_callback@__]: The delete callback to call on the extra data, if any
__Returns:__ void
__C declaration:__ @duckdb_add_replacement_scan@
__defined at:__ @duckdb.h 7039:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_add_replacement_scan ::
DuckDBDatabase
{- ^
[__@db@__]: The database object to add the replacement scan to
__C declaration:__ @db@
-}
-> DuckDBReplacementCallback
{- ^
[__@replacement@__]: The replacement scan callback
__C declaration:__ @replacement@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_data@__]: Extra data that is passed back into the specified callback
__C declaration:__ @extra_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@delete_callback@__]: The delete callback to call on the extra data, if any
__C declaration:__ @delete_callback@
-}
-> IO ()
c_duckdb_add_replacement_scan =
hs_bindgen_97d26f995cbfe9e1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_set_function_name@
foreign import ccall safe "hs_bindgen_9829208ce8f26461" hs_bindgen_9829208ce8f26461_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_set_function_name@
hs_bindgen_9829208ce8f26461 ::
DuckDBReplacementScanInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_9829208ce8f26461 =
\x0 ->
\x1 ->
hs_bindgen_9829208ce8f26461_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the replacement function name. If this function is called in the replacement callback, the replacement scan is performed. If it is not called, the replacement callback is not performed.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@function_name@__]: The function name to substitute.
__Returns:__ void
__C declaration:__ @duckdb_replacement_scan_set_function_name@
__defined at:__ @duckdb.h 7055:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_replacement_scan_set_function_name ::
DuckDBReplacementScanInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@function_name@__]: The function name to substitute.
__C declaration:__ @function_name@
-}
-> IO ()
c_duckdb_replacement_scan_set_function_name =
hs_bindgen_9829208ce8f26461
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_add_parameter@
foreign import ccall safe "hs_bindgen_826fb92442cb041e" hs_bindgen_826fb92442cb041e_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_add_parameter@
hs_bindgen_826fb92442cb041e ::
DuckDBReplacementScanInfo
-> DuckDBValue
-> IO ()
hs_bindgen_826fb92442cb041e =
\x0 ->
\x1 ->
hs_bindgen_826fb92442cb041e_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Adds a parameter to the replacement scan function.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@parameter@__]: The parameter to add.
__Returns:__ void
__C declaration:__ @duckdb_replacement_scan_add_parameter@
__defined at:__ @duckdb.h 7070:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_replacement_scan_add_parameter ::
DuckDBReplacementScanInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> DuckDBValue
{- ^
[__@parameter@__]: The parameter to add.
__C declaration:__ @parameter@
-}
-> IO ()
c_duckdb_replacement_scan_add_parameter =
hs_bindgen_826fb92442cb041e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_set_error@
foreign import ccall safe "hs_bindgen_19e43007fd1f8170" hs_bindgen_19e43007fd1f8170_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_replacement_scan_set_error@
hs_bindgen_19e43007fd1f8170 ::
DuckDBReplacementScanInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_19e43007fd1f8170 =
\x0 ->
\x1 ->
hs_bindgen_19e43007fd1f8170_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while executing the replacement scan.
history:
* stable: v0.6.0
[__@info@__]: The info object
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_replacement_scan_set_error@
__defined at:__ @duckdb.h 7084:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_replacement_scan_set_error ::
DuckDBReplacementScanInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_replacement_scan_set_error =
hs_bindgen_19e43007fd1f8170
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_scalar_function@
foreign import ccall safe "hs_bindgen_29f5e8082607c703" hs_bindgen_29f5e8082607c703_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_scalar_function@
hs_bindgen_29f5e8082607c703 :: IO DuckDBScalarFunction
hs_bindgen_29f5e8082607c703 =
fmap BG.fromFFIType hs_bindgen_29f5e8082607c703_base
{-| Creates a new empty scalar function.
The return value must be destroyed with @'c_duckdb_destroy_scalar_function'@ .
history:
* stable: v1.1.0
__Returns:__ t'DuckDBScalarFunction'
__C declaration:__ @duckdb_create_scalar_function@
__defined at:__ @duckdb.h 7116:37@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_scalar_function :: IO DuckDBScalarFunction
c_duckdb_create_scalar_function =
hs_bindgen_29f5e8082607c703
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_scalar_function@
foreign import ccall safe "hs_bindgen_057a4b9e9634d576" hs_bindgen_057a4b9e9634d576_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_scalar_function@
hs_bindgen_057a4b9e9634d576 ::
BG.Ptr DuckDBScalarFunction
-> IO ()
hs_bindgen_057a4b9e9634d576 =
\x0 ->
hs_bindgen_057a4b9e9634d576_base (BG.toFFIType x0)
{-| Destroys the given scalar function object.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function to destroy
__Returns:__ void
__C declaration:__ @duckdb_destroy_scalar_function@
__defined at:__ @duckdb.h 7129:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_scalar_function ::
BG.Ptr DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function to destroy
__C declaration:__ @scalar_function@
-}
-> IO ()
c_duckdb_destroy_scalar_function =
hs_bindgen_057a4b9e9634d576
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_name@
foreign import ccall safe "hs_bindgen_d70a7a97e2b89e4d" hs_bindgen_d70a7a97e2b89e4d_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_name@
hs_bindgen_d70a7a97e2b89e4d ::
DuckDBScalarFunction
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_d70a7a97e2b89e4d =
\x0 ->
\x1 ->
hs_bindgen_d70a7a97e2b89e4d_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the given scalar function.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function
[__@name@__]: The name of the scalar function
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_name@
__defined at:__ @duckdb.h 7143:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_name ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function
__C declaration:__ @scalar_function@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the scalar function
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_scalar_function_set_name =
hs_bindgen_d70a7a97e2b89e4d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_varargs@
foreign import ccall safe "hs_bindgen_39e740d82a18ea0b" hs_bindgen_39e740d82a18ea0b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_varargs@
hs_bindgen_39e740d82a18ea0b ::
DuckDBScalarFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_39e740d82a18ea0b =
\x0 ->
\x1 ->
hs_bindgen_39e740d82a18ea0b_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the parameters of the given scalar function to varargs. Does not require adding parameters with duckdb_scalar_function_add_parameter.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function.
[__@type@__]: The type of the arguments.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_varargs@
__defined at:__ @duckdb.h 7158:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_varargs ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The type of the arguments.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_scalar_function_set_varargs =
hs_bindgen_39e740d82a18ea0b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_special_handling@
foreign import ccall safe "hs_bindgen_3d2dbabbd47f004c" hs_bindgen_3d2dbabbd47f004c_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_special_handling@
hs_bindgen_3d2dbabbd47f004c ::
DuckDBScalarFunction
-> IO ()
hs_bindgen_3d2dbabbd47f004c =
\x0 ->
hs_bindgen_3d2dbabbd47f004c_base (BG.toFFIType x0)
{-| Sets the scalar function\'s null-handling behavior to special.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_special_handling@
__defined at:__ @duckdb.h 7171:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_special_handling ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> IO ()
c_duckdb_scalar_function_set_special_handling =
hs_bindgen_3d2dbabbd47f004c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_volatile@
foreign import ccall safe "hs_bindgen_5bea12af803df42f" hs_bindgen_5bea12af803df42f_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_volatile@
hs_bindgen_5bea12af803df42f ::
DuckDBScalarFunction
-> IO ()
hs_bindgen_5bea12af803df42f =
\x0 ->
hs_bindgen_5bea12af803df42f_base (BG.toFFIType x0)
{-| Sets the Function Stability of the scalar function to VOLATILE, indicating the function should be re-run for every row. This limits optimization that can be performed for the function.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_volatile@
__defined at:__ @duckdb.h 7185:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_volatile ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> IO ()
c_duckdb_scalar_function_set_volatile =
hs_bindgen_5bea12af803df42f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_add_parameter@
foreign import ccall safe "hs_bindgen_51818ec21303d214" hs_bindgen_51818ec21303d214_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_add_parameter@
hs_bindgen_51818ec21303d214 ::
DuckDBScalarFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_51818ec21303d214 =
\x0 ->
\x1 ->
hs_bindgen_51818ec21303d214_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Adds a parameter to the scalar function.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function.
[__@type@__]: The parameter type. Cannot contain INVALID.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_add_parameter@
__defined at:__ @duckdb.h 7199:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_add_parameter ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The parameter type. Cannot contain INVALID.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_scalar_function_add_parameter =
hs_bindgen_51818ec21303d214
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_return_type@
foreign import ccall safe "hs_bindgen_e1d8f6ace443646c" hs_bindgen_e1d8f6ace443646c_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_return_type@
hs_bindgen_e1d8f6ace443646c ::
DuckDBScalarFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_e1d8f6ace443646c =
\x0 ->
\x1 ->
hs_bindgen_e1d8f6ace443646c_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the return type of the scalar function.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function
[__@type@__]: Cannot contain INVALID or ANY.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_return_type@
__defined at:__ @duckdb.h 7214:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_return_type ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function
__C declaration:__ @scalar_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: Cannot contain INVALID or ANY.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_scalar_function_set_return_type =
hs_bindgen_e1d8f6ace443646c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_extra_info@
foreign import ccall safe "hs_bindgen_c93a9fd37fbf98d6" hs_bindgen_c93a9fd37fbf98d6_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_extra_info@
hs_bindgen_c93a9fd37fbf98d6 ::
DuckDBScalarFunction
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_c93a9fd37fbf98d6 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_c93a9fd37fbf98d6_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Assigns extra information to the scalar function that can be fetched during binding, etc.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function
[__@extra_info@__]: The extra information
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_extra_info@
__defined at:__ @duckdb.h 7230:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_extra_info ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function
__C declaration:__ @scalar_function@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_info@__]: The extra information
__C declaration:__ @extra_info@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_scalar_function_set_extra_info =
hs_bindgen_c93a9fd37fbf98d6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind@
foreign import ccall safe "hs_bindgen_1c92902e5ed97bae" hs_bindgen_1c92902e5ed97bae_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind@
hs_bindgen_1c92902e5ed97bae ::
DuckDBScalarFunction
-> DuckDBScalarFunctionBindFun
-> IO ()
hs_bindgen_1c92902e5ed97bae =
\x0 ->
\x1 ->
hs_bindgen_1c92902e5ed97bae_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the (optional) bind function of the scalar function.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@scalar_function@__]: The scalar function.
[__@bind@__]: The bind function.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_bind@
__defined at:__ @duckdb.h 7246:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_bind ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> DuckDBScalarFunctionBindFun
{- ^
[__@bind@__]: The bind function.
__C declaration:__ @bind@
-}
-> IO ()
c_duckdb_scalar_function_set_bind =
hs_bindgen_1c92902e5ed97bae
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind_data@
foreign import ccall safe "hs_bindgen_161a5fe606050dea" hs_bindgen_161a5fe606050dea_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind_data@
hs_bindgen_161a5fe606050dea ::
DuckDBBindInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_161a5fe606050dea =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_161a5fe606050dea_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the user-provided bind data in the bind object of the scalar function. The bind data object can be retrieved again during execution. In most case, you also need to set the copy-callback of your bind data via duckdb_scalar_function_set_bind_data_copy.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@info@__]: The bind info of the scalar function.
[__@bind_data@__]: The bind data object.
[__@destroy@__]: The callback to destroy the bind data (if any).
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_bind_data@
__defined at:__ @duckdb.h 7265:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_bind_data ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info of the scalar function.
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@bind_data@__]: The bind data object.
__C declaration:__ @bind_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback to destroy the bind data (if any).
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_scalar_function_set_bind_data =
hs_bindgen_161a5fe606050dea
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind_data_copy@
foreign import ccall safe "hs_bindgen_83d27908da83f624" hs_bindgen_83d27908da83f624_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_bind_data_copy@
hs_bindgen_83d27908da83f624 ::
DuckDBBindInfo
-> DuckDBCopyCallback
-> IO ()
hs_bindgen_83d27908da83f624 =
\x0 ->
\x1 ->
hs_bindgen_83d27908da83f624_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the copy-callback for the user-provided bind data in the bind object of the scalar function.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@info@__]: The bind info of the scalar function.
[__@copy@__]: The callback to copy the bind data (if any).
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_bind_data_copy@
__defined at:__ @duckdb.h 7281:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_bind_data_copy ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info of the scalar function.
__C declaration:__ @info@
-}
-> DuckDBCopyCallback
{- ^
[__@copy@__]: The callback to copy the bind data (if any).
__C declaration:__ @copy@
-}
-> IO ()
c_duckdb_scalar_function_set_bind_data_copy =
hs_bindgen_83d27908da83f624
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_set_error@
foreign import ccall safe "hs_bindgen_d3eb9e966acdda11" hs_bindgen_d3eb9e966acdda11_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_set_error@
hs_bindgen_d3eb9e966acdda11 ::
DuckDBBindInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_d3eb9e966acdda11 =
\x0 ->
\x1 ->
hs_bindgen_d3eb9e966acdda11_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while calling bind on a scalar function.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@info@__]: The bind info object.
[__@error@__]: The error message.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_bind_set_error@
__defined at:__ @duckdb.h 7296:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_bind_set_error ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message.
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_scalar_function_bind_set_error =
hs_bindgen_d3eb9e966acdda11
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_function@
foreign import ccall safe "hs_bindgen_480557d5180f6227" hs_bindgen_480557d5180f6227_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_function@
hs_bindgen_480557d5180f6227 ::
DuckDBScalarFunction
-> DuckDBScalarFunctionFun
-> IO ()
hs_bindgen_480557d5180f6227 =
\x0 ->
\x1 ->
hs_bindgen_480557d5180f6227_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the main function of the scalar function.
history:
* stable: v1.1.0
[__@scalar_function@__]: The scalar function
[__@function@__]: The function
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_function@
__defined at:__ @duckdb.h 7310:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_function ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function
__C declaration:__ @scalar_function@
-}
-> DuckDBScalarFunctionFun
{- ^
[__@function@__]: The function
__C declaration:__ @function@
-}
-> IO ()
c_duckdb_scalar_function_set_function =
hs_bindgen_480557d5180f6227
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_scalar_function@
foreign import ccall safe "hs_bindgen_f58f0538c8a2c929" hs_bindgen_f58f0538c8a2c929_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_scalar_function@
hs_bindgen_f58f0538c8a2c929 ::
DuckDBConnection
-> DuckDBScalarFunction
-> IO DuckDBState
hs_bindgen_f58f0538c8a2c929 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_f58f0538c8a2c929_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Register the scalar function object within the given connection.
The function requires at least a name, a function and a return type.
If the function is incomplete or a function with this name already exists DuckDBError is returned.
history:
* stable: v1.1.0
[__@con@__]: The connection to register it in.
[__@scalar_function@__]: The function pointer
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_scalar_function@
__defined at:__ @duckdb.h 7329:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_scalar_function ::
DuckDBConnection
{- ^
[__@con@__]: The connection to register it in.
__C declaration:__ @con@
-}
-> DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The function pointer
__C declaration:__ @scalar_function@
-}
-> IO DuckDBState
c_duckdb_register_scalar_function =
hs_bindgen_f58f0538c8a2c929
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_extra_info@
foreign import ccall safe "hs_bindgen_8bb846e4c098cebe" hs_bindgen_8bb846e4c098cebe_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_extra_info@
hs_bindgen_8bb846e4c098cebe ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_8bb846e4c098cebe =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8bb846e4c098cebe_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_scalar_function_set_extra_info'@ .
history:
* stable: v1.1.0
[__@info@__]: The info object.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_get_extra_info@
__defined at:__ @duckdb.h 7343:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_get_extra_info ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_get_extra_info =
hs_bindgen_8bb846e4c098cebe
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_extra_info@
foreign import ccall safe "hs_bindgen_353d4b2c6989c18f" hs_bindgen_353d4b2c6989c18f_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_extra_info@
hs_bindgen_353d4b2c6989c18f ::
DuckDBBindInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_353d4b2c6989c18f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_353d4b2c6989c18f_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in the bind info.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@info@__]: The info object.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_bind_get_extra_info@
__defined at:__ @duckdb.h 7357:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_bind_get_extra_info ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_bind_get_extra_info =
hs_bindgen_353d4b2c6989c18f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_bind_data@
foreign import ccall safe "hs_bindgen_7ee9535ddf4111aa" hs_bindgen_7ee9535ddf4111aa_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_bind_data@
hs_bindgen_7ee9535ddf4111aa ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_7ee9535ddf4111aa =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7ee9535ddf4111aa_base (BG.toFFIType x0))
{-| Gets the scalar function\'s bind data set by @'c_duckdb_scalar_function_set_bind_data'@ . Note that the bind data is read-only.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@info@__]: The function info.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_get_bind_data@
__defined at:__ @duckdb.h 7372:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_get_bind_data ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The function info.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_get_bind_data =
hs_bindgen_7ee9535ddf4111aa
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_client_context@
foreign import ccall safe "hs_bindgen_629abf4e5c702bde" hs_bindgen_629abf4e5c702bde_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_client_context@
hs_bindgen_629abf4e5c702bde ::
DuckDBBindInfo
-> BG.Ptr DuckDBClientContext
-> IO ()
hs_bindgen_629abf4e5c702bde =
\x0 ->
\x1 ->
hs_bindgen_629abf4e5c702bde_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Retrieves the client context of the bind info of a scalar function.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@info@__]: The bind info object of the scalar function.
[__@out_context@__]: The client context of the bind info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_get_client_context@
__defined at:__ @duckdb.h 7387:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_get_client_context ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info object of the scalar function.
__C declaration:__ @info@
-}
-> BG.Ptr DuckDBClientContext
{- ^
[__@out_context@__]: The client context of the bind info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__C declaration:__ @out_context@
-}
-> IO ()
c_duckdb_scalar_function_get_client_context =
hs_bindgen_629abf4e5c702bde
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_error@
foreign import ccall safe "hs_bindgen_49dce543be61dc96" hs_bindgen_49dce543be61dc96_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_error@
hs_bindgen_49dce543be61dc96 ::
DuckDBFunctionInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_49dce543be61dc96 =
\x0 ->
\x1 ->
hs_bindgen_49dce543be61dc96_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while executing the scalar function.
history:
* stable: v1.1.0
[__@info@__]: The info object.
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_error@
__defined at:__ @duckdb.h 7401:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_error ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_scalar_function_set_error =
hs_bindgen_49dce543be61dc96
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_scalar_function_set@
foreign import ccall safe "hs_bindgen_ac865eab110e40bc" hs_bindgen_ac865eab110e40bc_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_scalar_function_set@
hs_bindgen_ac865eab110e40bc ::
PtrConst.PtrConst BG.CChar
-> IO DuckDBScalarFunctionSet
hs_bindgen_ac865eab110e40bc =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ac865eab110e40bc_base (BG.toFFIType x0))
{-| Creates a new empty scalar function set.
The return value must be destroyed with @'c_duckdb_destroy_scalar_function_set'@ .
history:
* stable: v1.1.0
[__@name@__]:
__Returns:__ t'DuckDBScalarFunctionSet'
__C declaration:__ @duckdb_create_scalar_function_set@
__defined at:__ @duckdb.h 7416:41@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_scalar_function_set ::
PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]:
__C declaration:__ @name@
-}
-> IO DuckDBScalarFunctionSet
c_duckdb_create_scalar_function_set =
hs_bindgen_ac865eab110e40bc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_scalar_function_set@
foreign import ccall safe "hs_bindgen_967e6425d22f5053" hs_bindgen_967e6425d22f5053_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_scalar_function_set@
hs_bindgen_967e6425d22f5053 ::
BG.Ptr DuckDBScalarFunctionSet
-> IO ()
hs_bindgen_967e6425d22f5053 =
\x0 ->
hs_bindgen_967e6425d22f5053_base (BG.toFFIType x0)
{-| Destroys the given scalar function set object.
history:
* stable: v1.1.0
[__@scalar_function_set@__]:
__Returns:__ void
__C declaration:__ @duckdb_destroy_scalar_function_set@
__defined at:__ @duckdb.h 7429:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_scalar_function_set ::
BG.Ptr DuckDBScalarFunctionSet
{- ^
[__@scalar_function_set@__]:
__C declaration:__ @scalar_function_set@
-}
-> IO ()
c_duckdb_destroy_scalar_function_set =
hs_bindgen_967e6425d22f5053
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_scalar_function_to_set@
foreign import ccall safe "hs_bindgen_4de507eae58d6975" hs_bindgen_4de507eae58d6975_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_add_scalar_function_to_set@
hs_bindgen_4de507eae58d6975 ::
DuckDBScalarFunctionSet
-> DuckDBScalarFunction
-> IO DuckDBState
hs_bindgen_4de507eae58d6975 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_4de507eae58d6975_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Adds the scalar function as a new overload to the scalar function set.
Returns DuckDBError if the function could not be added, for example if the overload already exists.
history:
* stable: v1.1.0
[__@set@__]: The scalar function set
[__@function@__]: The function to add
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_add_scalar_function_to_set@
__defined at:__ @duckdb.h 7445:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_add_scalar_function_to_set ::
DuckDBScalarFunctionSet
{- ^
[__@set@__]: The scalar function set
__C declaration:__ @set@
-}
-> DuckDBScalarFunction
{- ^
[__@function@__]: The function to add
__C declaration:__ @function@
-}
-> IO DuckDBState
c_duckdb_add_scalar_function_to_set =
hs_bindgen_4de507eae58d6975
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_scalar_function_set@
foreign import ccall safe "hs_bindgen_e4e7795c0415ab7b" hs_bindgen_e4e7795c0415ab7b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_scalar_function_set@
hs_bindgen_e4e7795c0415ab7b ::
DuckDBConnection
-> DuckDBScalarFunctionSet
-> IO DuckDBState
hs_bindgen_e4e7795c0415ab7b =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_e4e7795c0415ab7b_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Register the scalar function set within the given connection.
The set requires at least a single valid overload.
If the set is incomplete or a function with this name already exists DuckDBError is returned.
history:
* stable: v1.1.0
[__@con@__]: The connection to register it in.
[__@set@__]: The function set to register
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_scalar_function_set@
__defined at:__ @duckdb.h 7464:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_scalar_function_set ::
DuckDBConnection
{- ^
[__@con@__]: The connection to register it in.
__C declaration:__ @con@
-}
-> DuckDBScalarFunctionSet
{- ^
[__@set@__]: The function set to register
__C declaration:__ @set@
-}
-> IO DuckDBState
c_duckdb_register_scalar_function_set =
hs_bindgen_e4e7795c0415ab7b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_argument_count@
foreign import ccall safe "hs_bindgen_63b454129d89f75f" hs_bindgen_63b454129d89f75f_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_argument_count@
hs_bindgen_63b454129d89f75f ::
DuckDBBindInfo
-> IO DuckDBIdx
hs_bindgen_63b454129d89f75f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_63b454129d89f75f_base (BG.toFFIType x0))
{-| Returns the number of input arguments of the scalar function.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@info@__]: The bind info.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_scalar_function_bind_get_argument_count@
__defined at:__ @duckdb.h 7478:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_bind_get_argument_count ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info.
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_scalar_function_bind_get_argument_count =
hs_bindgen_63b454129d89f75f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_argument@
foreign import ccall safe "hs_bindgen_5f7dc58f348f5029" hs_bindgen_5f7dc58f348f5029_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_bind_get_argument@
hs_bindgen_5f7dc58f348f5029 ::
DuckDBBindInfo
-> DuckDBIdx
-> IO DuckDBExpression
hs_bindgen_5f7dc58f348f5029 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_5f7dc58f348f5029_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the input argument at index of the scalar function.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@info@__]: The bind info.
[__@index@__]: The argument index.
__Returns:__ t'DuckDBExpression'
__C declaration:__ @duckdb_scalar_function_bind_get_argument@
__defined at:__ @duckdb.h 7493:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_bind_get_argument ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info.
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The argument index.
__C declaration:__ @index@
-}
-> IO DuckDBExpression
c_duckdb_scalar_function_bind_get_argument =
hs_bindgen_5f7dc58f348f5029
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_state@
foreign import ccall safe "hs_bindgen_c9951a19c1a8f16b" hs_bindgen_c9951a19c1a8f16b_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_get_state@
hs_bindgen_c9951a19c1a8f16b ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_c9951a19c1a8f16b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c9951a19c1a8f16b_base (BG.toFFIType x0))
{-| Retrieves the state pointer of the function info.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The function info object.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_get_state@
__defined at:__ @duckdb.h 7507:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_get_state ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The function info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_get_state =
hs_bindgen_c9951a19c1a8f16b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_init@
foreign import ccall safe "hs_bindgen_ac222a01dd370217" hs_bindgen_ac222a01dd370217_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_set_init@
hs_bindgen_ac222a01dd370217 ::
DuckDBScalarFunction
-> DuckDBScalarFunctionInitFun
-> IO ()
hs_bindgen_ac222a01dd370217 =
\x0 ->
\x1 ->
hs_bindgen_ac222a01dd370217_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the (optional) state init function of the scalar function. This is called once for each worker thread that begins executing the function
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@scalar_function@__]: The scalar function.
[__@init@__]: The init function.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_set_init@
__defined at:__ @duckdb.h 7523:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_set_init ::
DuckDBScalarFunction
{- ^
[__@scalar_function@__]: The scalar function.
__C declaration:__ @scalar_function@
-}
-> DuckDBScalarFunctionInitFun
{- ^
[__@init@__]: The init function.
__C declaration:__ @init@
-}
-> IO ()
c_duckdb_scalar_function_set_init =
hs_bindgen_ac222a01dd370217
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_set_error@
foreign import ccall safe "hs_bindgen_53b7cee299a379f8" hs_bindgen_53b7cee299a379f8_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_set_error@
hs_bindgen_53b7cee299a379f8 ::
DuckDBInitInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_53b7cee299a379f8 =
\x0 ->
\x1 ->
hs_bindgen_53b7cee299a379f8_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while calling init on a scalar function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info object.
[__@error@__]: The error message.
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_init_set_error@
__defined at:__ @duckdb.h 7539:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_init_set_error ::
DuckDBInitInfo
{- ^
[__@info@__]: The init info object.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message.
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_scalar_function_init_set_error =
hs_bindgen_53b7cee299a379f8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_set_state@
foreign import ccall safe "hs_bindgen_064ca7da09a75b71" hs_bindgen_064ca7da09a75b71_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_set_state@
hs_bindgen_064ca7da09a75b71 ::
DuckDBInitInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_064ca7da09a75b71 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_064ca7da09a75b71_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the state pointer in the init info of the scalar function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info object.
[__@state@__]: The state pointer.
[__@destroy@__]: The callback to destroy the state (if any).
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_init_set_state@
__defined at:__ @duckdb.h 7555:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_init_set_state ::
DuckDBInitInfo
{- ^
[__@info@__]: The init info object.
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@state@__]: The state pointer.
__C declaration:__ @state@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback to destroy the state (if any).
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_scalar_function_init_set_state =
hs_bindgen_064ca7da09a75b71
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_client_context@
foreign import ccall safe "hs_bindgen_cc7cfdf590abe6a3" hs_bindgen_cc7cfdf590abe6a3_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_client_context@
hs_bindgen_cc7cfdf590abe6a3 ::
DuckDBInitInfo
-> BG.Ptr DuckDBClientContext
-> IO ()
hs_bindgen_cc7cfdf590abe6a3 =
\x0 ->
\x1 ->
hs_bindgen_cc7cfdf590abe6a3_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Retrieves the client context of the init info of a scalar function.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info object of the scalar function.
[__@out_context@__]: The client context of the init info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__Returns:__ void
__C declaration:__ @duckdb_scalar_function_init_get_client_context@
__defined at:__ @duckdb.h 7571:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_init_get_client_context ::
DuckDBInitInfo
{- ^
[__@info@__]: The init info object of the scalar function.
__C declaration:__ @info@
-}
-> BG.Ptr DuckDBClientContext
{- ^
[__@out_context@__]: The client context of the init info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__C declaration:__ @out_context@
-}
-> IO ()
c_duckdb_scalar_function_init_get_client_context =
hs_bindgen_cc7cfdf590abe6a3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_bind_data@
foreign import ccall safe "hs_bindgen_9b7c5e40eb1be92f" hs_bindgen_9b7c5e40eb1be92f_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_bind_data@
hs_bindgen_9b7c5e40eb1be92f ::
DuckDBInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_9b7c5e40eb1be92f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_9b7c5e40eb1be92f_base (BG.toFFIType x0))
{-| Gets the scalar function\'s bind data set by @'c_duckdb_scalar_function_set_bind_data'@ . Note that the bind data is read-only.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info object.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_init_get_bind_data@
__defined at:__ @duckdb.h 7587:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_init_get_bind_data ::
DuckDBInitInfo
{- ^
[__@info@__]: The init info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_init_get_bind_data =
hs_bindgen_9b7c5e40eb1be92f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_extra_info@
foreign import ccall safe "hs_bindgen_c88ef758b0fa7ab3" hs_bindgen_c88ef758b0fa7ab3_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_scalar_function_init_get_extra_info@
hs_bindgen_c88ef758b0fa7ab3 ::
DuckDBInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_c88ef758b0fa7ab3 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c88ef758b0fa7ab3_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in the init info.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The init info object.
__Returns:__ void*
__C declaration:__ @duckdb_scalar_function_init_get_extra_info@
__defined at:__ @duckdb.h 7601:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_scalar_function_init_get_extra_info ::
DuckDBInitInfo
{- ^
[__@info@__]: The init info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_scalar_function_init_get_extra_info =
hs_bindgen_c88ef758b0fa7ab3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_create@
foreign import ccall safe "hs_bindgen_0fc4104d01034d1a" hs_bindgen_0fc4104d01034d1a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_create@
hs_bindgen_0fc4104d01034d1a ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBTableDescription
-> IO DuckDBState
hs_bindgen_0fc4104d01034d1a =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_0fc4104d01034d1a_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Creates a table description object. Note that @'c_duckdb_table_description_destroy'@ should always be called on the resulting table_description, even if the function returns @@DuckDBError@@ .
history:
* stable: v1.1.0
[__@connection@__]: The connection context.
[__@schema@__]: The schema of the table, or @nullptr@ for the default schema.
[__@table@__]: The table name.
[__@out@__]: The resulting table description object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_table_description_create@
__defined at:__ @duckdb.h 7636:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_create ::
DuckDBConnection
{- ^
[__@connection@__]: The connection context.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@schema@__]: The schema of the table, or @nullptr@ for the default schema.
__C declaration:__ @schema@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table@__]: The table name.
__C declaration:__ @table@
-}
-> BG.Ptr DuckDBTableDescription
{- ^
[__@out@__]: The resulting table description object.
__C declaration:__ @out@
-}
-> IO DuckDBState
c_duckdb_table_description_create =
hs_bindgen_0fc4104d01034d1a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_create_ext@
foreign import ccall safe "hs_bindgen_82a0c6b485d97488" hs_bindgen_82a0c6b485d97488_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_create_ext@
hs_bindgen_82a0c6b485d97488 ::
DuckDBConnection
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr DuckDBTableDescription
-> IO DuckDBState
hs_bindgen_82a0c6b485d97488 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
fmap BG.fromFFIType (hs_bindgen_82a0c6b485d97488_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4))
{-| Creates a table description object. Note that @'c_duckdb_table_description_destroy'@ must be called on the resulting table_description, even if the function returns @@DuckDBError@@ .
history:
* stable: v1.2.0
[__@connection@__]: The connection context.
[__@catalog@__]: The catalog (database) name of the table, or @nullptr@ for the default catalog.
[__@schema@__]: The schema of the table, or @nullptr@ for the default schema.
[__@table@__]: The table name.
[__@out@__]: The resulting table description object.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_table_description_create_ext@
__defined at:__ @duckdb.h 7655:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_create_ext ::
DuckDBConnection
{- ^
[__@connection@__]: The connection context.
__C declaration:__ @connection@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@catalog@__]: The catalog (database) name of the table, or @nullptr@ for the default catalog.
__C declaration:__ @catalog@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@schema@__]: The schema of the table, or @nullptr@ for the default schema.
__C declaration:__ @schema@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@table@__]: The table name.
__C declaration:__ @table@
-}
-> BG.Ptr DuckDBTableDescription
{- ^
[__@out@__]: The resulting table description object.
__C declaration:__ @out@
-}
-> IO DuckDBState
c_duckdb_table_description_create_ext =
hs_bindgen_82a0c6b485d97488
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_destroy@
foreign import ccall safe "hs_bindgen_84b027cfbe2f4401" hs_bindgen_84b027cfbe2f4401_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_destroy@
hs_bindgen_84b027cfbe2f4401 ::
BG.Ptr DuckDBTableDescription
-> IO ()
hs_bindgen_84b027cfbe2f4401 =
\x0 ->
hs_bindgen_84b027cfbe2f4401_base (BG.toFFIType x0)
{-| Destroy the TableDescription object.
history:
* stable: v1.1.0
[__@table_description@__]: The table_description to destroy.
__Returns:__ void
__C declaration:__ @duckdb_table_description_destroy@
__defined at:__ @duckdb.h 7670:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_destroy ::
BG.Ptr DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to destroy.
__C declaration:__ @table_description@
-}
-> IO ()
c_duckdb_table_description_destroy =
hs_bindgen_84b027cfbe2f4401
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_error@
foreign import ccall safe "hs_bindgen_6ac61bf6b8c77c47" hs_bindgen_6ac61bf6b8c77c47_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_error@
hs_bindgen_6ac61bf6b8c77c47 ::
DuckDBTableDescription
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_6ac61bf6b8c77c47 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6ac61bf6b8c77c47_base (BG.toFFIType x0))
{-| Returns the error message associated with the given table_description. If the table_description has no error message, this returns @nullptr@ instead. The error message should not be freed. It will be de-allocated when @'c_duckdb_table_description_destroy'@ is called.
history:
* stable: v1.1.0
[__@table_description@__]: The table_description to get the error from.
__Returns:__ const char*
__C declaration:__ @duckdb_table_description_error@
__defined at:__ @duckdb.h 7685:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_error ::
DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to get the error from.
__C declaration:__ @table_description@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_table_description_error =
hs_bindgen_6ac61bf6b8c77c47
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_has_default@
foreign import ccall safe "hs_bindgen_4d7369d3b81bfd4c" hs_bindgen_4d7369d3b81bfd4c_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_column_has_default@
hs_bindgen_4d7369d3b81bfd4c ::
DuckDBTableDescription
-> DuckDBIdx
-> BG.Ptr BG.CBool
-> IO DuckDBState
hs_bindgen_4d7369d3b81bfd4c =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_4d7369d3b81bfd4c_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Check if the column at \'index\' index of the table has a DEFAULT expression.
history:
* stable: v1.1.0
[__@table_description@__]: The table_description to query.
[__@index@__]: The index of the column to query.
[__@out@__]: The out-parameter used to store the result.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_column_has_default@
__defined at:__ @duckdb.h 7700:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_column_has_default ::
DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to query.
__C declaration:__ @table_description@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the column to query.
__C declaration:__ @index@
-}
-> BG.Ptr BG.CBool
{- ^
[__@out@__]: The out-parameter used to store the result.
__C declaration:__ @out@
-}
-> IO DuckDBState
c_duckdb_column_has_default =
hs_bindgen_4d7369d3b81bfd4c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_count@
foreign import ccall safe "hs_bindgen_8f13db0d61fbb2eb" hs_bindgen_8f13db0d61fbb2eb_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_count@
hs_bindgen_8f13db0d61fbb2eb ::
DuckDBTableDescription
-> IO DuckDBIdx
hs_bindgen_8f13db0d61fbb2eb =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8f13db0d61fbb2eb_base (BG.toFFIType x0))
{-| Return the number of columns of the described table.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@table_description@__]: The table_description to query.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_table_description_get_column_count@
__defined at:__ @duckdb.h 7714:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_get_column_count ::
DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to query.
__C declaration:__ @table_description@
-}
-> IO DuckDBIdx
c_duckdb_table_description_get_column_count =
hs_bindgen_8f13db0d61fbb2eb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_name@
foreign import ccall safe "hs_bindgen_1bd765f144498ef7" hs_bindgen_1bd765f144498ef7_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_name@
hs_bindgen_1bd765f144498ef7 ::
DuckDBTableDescription
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_1bd765f144498ef7 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_1bd765f144498ef7_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Obtain the column name at \'index\'. The out result must be destroyed with @'c_duckdb_free'@ .
history:
* stable: v1.2.0
[__@table_description@__]: The table_description to query.
[__@index@__]: The index of the column to query.
__Returns:__ char*
__C declaration:__ @duckdb_table_description_get_column_name@
__defined at:__ @duckdb.h 7728:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_get_column_name ::
DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to query.
__C declaration:__ @table_description@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the column to query.
__C declaration:__ @index@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_table_description_get_column_name =
hs_bindgen_1bd765f144498ef7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_type@
foreign import ccall safe "hs_bindgen_1c6b54182f653add" hs_bindgen_1c6b54182f653add_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_description_get_column_type@
hs_bindgen_1c6b54182f653add ::
DuckDBTableDescription
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_1c6b54182f653add =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_1c6b54182f653add_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Obtain the column type at \'index\'. The return value must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@table_description@__]: The table_description to query.
[__@index@__]: The index of the column to query.
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_table_description_get_column_type@
__defined at:__ @duckdb.h 7743:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_description_get_column_type ::
DuckDBTableDescription
{- ^
[__@table_description@__]: The table_description to query.
__C declaration:__ @table_description@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the column to query.
__C declaration:__ @index@
-}
-> IO DuckDBLogicalType
c_duckdb_table_description_get_column_type =
hs_bindgen_1c6b54182f653add
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_table_function@
foreign import ccall safe "hs_bindgen_fc1c42be14fab1d7" hs_bindgen_fc1c42be14fab1d7_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_table_function@
hs_bindgen_fc1c42be14fab1d7 :: IO DuckDBTableFunction
hs_bindgen_fc1c42be14fab1d7 =
fmap BG.fromFFIType hs_bindgen_fc1c42be14fab1d7_base
{-| Creates a new empty table function.
The return value should be destroyed with @'c_duckdb_destroy_table_function'@ .
history:
* stable: v0.3.3
__Returns:__ t'DuckDBTableFunction'
__C declaration:__ @duckdb_create_table_function@
__defined at:__ @duckdb.h 7776:36@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_table_function :: IO DuckDBTableFunction
c_duckdb_create_table_function =
hs_bindgen_fc1c42be14fab1d7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_table_function@
foreign import ccall safe "hs_bindgen_9bbeca3e14750ffd" hs_bindgen_9bbeca3e14750ffd_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_table_function@
hs_bindgen_9bbeca3e14750ffd ::
BG.Ptr DuckDBTableFunction
-> IO ()
hs_bindgen_9bbeca3e14750ffd =
\x0 ->
hs_bindgen_9bbeca3e14750ffd_base (BG.toFFIType x0)
{-| Destroys the given table function object.
history:
* stable: v0.3.3
[__@table_function@__]: The table function to destroy
__Returns:__ void
__C declaration:__ @duckdb_destroy_table_function@
__defined at:__ @duckdb.h 7789:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_table_function ::
BG.Ptr DuckDBTableFunction
{- ^
[__@table_function@__]: The table function to destroy
__C declaration:__ @table_function@
-}
-> IO ()
c_duckdb_destroy_table_function =
hs_bindgen_9bbeca3e14750ffd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_name@
foreign import ccall safe "hs_bindgen_fa60b5782b676b1b" hs_bindgen_fa60b5782b676b1b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_name@
hs_bindgen_fa60b5782b676b1b ::
DuckDBTableFunction
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_fa60b5782b676b1b =
\x0 ->
\x1 ->
hs_bindgen_fa60b5782b676b1b_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the name of the given table function.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@name@__]: The name of the table function
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_name@
__defined at:__ @duckdb.h 7803:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_name ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the table function
__C declaration:__ @name@
-}
-> IO ()
c_duckdb_table_function_set_name =
hs_bindgen_fa60b5782b676b1b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_add_parameter@
foreign import ccall safe "hs_bindgen_c2b43f04cbd5d423" hs_bindgen_c2b43f04cbd5d423_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_add_parameter@
hs_bindgen_c2b43f04cbd5d423 ::
DuckDBTableFunction
-> DuckDBLogicalType
-> IO ()
hs_bindgen_c2b43f04cbd5d423 =
\x0 ->
\x1 ->
hs_bindgen_c2b43f04cbd5d423_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Adds a parameter to the table function.
history:
* stable: v0.3.3
[__@table_function@__]: The table function.
[__@type@__]: The parameter type. Cannot contain INVALID.
__Returns:__ void
__C declaration:__ @duckdb_table_function_add_parameter@
__defined at:__ @duckdb.h 7817:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_add_parameter ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function.
__C declaration:__ @table_function@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The parameter type. Cannot contain INVALID.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_table_function_add_parameter =
hs_bindgen_c2b43f04cbd5d423
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_add_named_parameter@
foreign import ccall safe "hs_bindgen_169c694648c6ccc1" hs_bindgen_169c694648c6ccc1_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_add_named_parameter@
hs_bindgen_169c694648c6ccc1 ::
DuckDBTableFunction
-> PtrConst.PtrConst BG.CChar
-> DuckDBLogicalType
-> IO ()
hs_bindgen_169c694648c6ccc1 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_169c694648c6ccc1_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Adds a named parameter to the table function.
history:
* stable: v0.8.0
[__@table_function@__]: The table function.
[__@name@__]: The parameter name.
[__@type@__]: The parameter type. Cannot contain INVALID.
__Returns:__ void
__C declaration:__ @duckdb_table_function_add_named_parameter@
__defined at:__ @duckdb.h 7832:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_add_named_parameter ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function.
__C declaration:__ @table_function@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The parameter name.
__C declaration:__ @name@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The parameter type. Cannot contain INVALID.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_table_function_add_named_parameter =
hs_bindgen_169c694648c6ccc1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_extra_info@
foreign import ccall safe "hs_bindgen_c980cb05cbc34a77" hs_bindgen_c980cb05cbc34a77_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_extra_info@
hs_bindgen_c980cb05cbc34a77 ::
DuckDBTableFunction
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_c980cb05cbc34a77 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_c980cb05cbc34a77_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Assigns extra information to the table function that can be fetched during binding, etc.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@extra_info@__]: The extra information
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_extra_info@
__defined at:__ @duckdb.h 7848:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_extra_info ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> BG.Ptr BG.Void
{- ^
[__@extra_info@__]: The extra information
__C declaration:__ @extra_info@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback that will be called to destroy the extra information (if any)
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_table_function_set_extra_info =
hs_bindgen_c980cb05cbc34a77
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_bind@
foreign import ccall safe "hs_bindgen_102b9bd82ea79e87" hs_bindgen_102b9bd82ea79e87_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_bind@
hs_bindgen_102b9bd82ea79e87 ::
DuckDBTableFunction
-> DuckDBTableFunctionBindFun
-> IO ()
hs_bindgen_102b9bd82ea79e87 =
\x0 ->
\x1 ->
hs_bindgen_102b9bd82ea79e87_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the bind function of the table function.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@bind@__]: The bind function
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_bind@
__defined at:__ @duckdb.h 7863:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_bind ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> DuckDBTableFunctionBindFun
{- ^
[__@bind@__]: The bind function
__C declaration:__ @bind@
-}
-> IO ()
c_duckdb_table_function_set_bind =
hs_bindgen_102b9bd82ea79e87
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_init@
foreign import ccall safe "hs_bindgen_b853cf848e1dd32b" hs_bindgen_b853cf848e1dd32b_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_init@
hs_bindgen_b853cf848e1dd32b ::
DuckDBTableFunction
-> DuckDBTableFunctionInitFun
-> IO ()
hs_bindgen_b853cf848e1dd32b =
\x0 ->
\x1 ->
hs_bindgen_b853cf848e1dd32b_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the init function of the table function.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@init@__]: The init function
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_init@
__defined at:__ @duckdb.h 7878:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_init ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> DuckDBTableFunctionInitFun
{- ^
[__@init@__]: The init function
__C declaration:__ @init@
-}
-> IO ()
c_duckdb_table_function_set_init =
hs_bindgen_b853cf848e1dd32b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_local_init@
foreign import ccall safe "hs_bindgen_6e9b24dd817b24cb" hs_bindgen_6e9b24dd817b24cb_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_local_init@
hs_bindgen_6e9b24dd817b24cb ::
DuckDBTableFunction
-> DuckDBTableFunctionInitFun
-> IO ()
hs_bindgen_6e9b24dd817b24cb =
\x0 ->
\x1 ->
hs_bindgen_6e9b24dd817b24cb_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the thread-local init function of the table function.
history:
* stable: v0.4.0
[__@table_function@__]: The table function
[__@init@__]: The init function
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_local_init@
__defined at:__ @duckdb.h 7893:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_local_init ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> DuckDBTableFunctionInitFun
{- ^
[__@init@__]: The init function
__C declaration:__ @init@
-}
-> IO ()
c_duckdb_table_function_set_local_init =
hs_bindgen_6e9b24dd817b24cb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_function@
foreign import ccall safe "hs_bindgen_02b30c88a74a7b32" hs_bindgen_02b30c88a74a7b32_base ::
BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_set_function@
hs_bindgen_02b30c88a74a7b32 ::
DuckDBTableFunction
-> DuckDBTableFunctionFun
-> IO ()
hs_bindgen_02b30c88a74a7b32 =
\x0 ->
\x1 ->
hs_bindgen_02b30c88a74a7b32_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets the main function of the table function.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@function@__]: The function
__Returns:__ void
__C declaration:__ @duckdb_table_function_set_function@
__defined at:__ @duckdb.h 7908:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_set_function ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> DuckDBTableFunctionFun
{- ^
[__@function@__]: The function
__C declaration:__ @function@
-}
-> IO ()
c_duckdb_table_function_set_function =
hs_bindgen_02b30c88a74a7b32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_supports_projection_pushdown@
foreign import ccall safe "hs_bindgen_7b6ddb914e22dc0c" hs_bindgen_7b6ddb914e22dc0c_base ::
BG.Ptr BG.Void
-> BG.CBool
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_supports_projection_pushdown@
hs_bindgen_7b6ddb914e22dc0c ::
DuckDBTableFunction
-> BG.CBool
-> IO ()
hs_bindgen_7b6ddb914e22dc0c =
\x0 ->
\x1 ->
hs_bindgen_7b6ddb914e22dc0c_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets whether or not the given table function supports projection pushdown.
If this is set to true, the system will provide a list of all required columns in the @init@ stage through the @'c_duckdb_init_get_column_count'@ and @'c_duckdb_init_get_column_index'@ functions. If this is set to false (the default), the system will expect all columns to be projected.
history:
* stable: v0.3.3
[__@table_function@__]: The table function
[__@pushdown@__]: True if the table function supports projection pushdown, false otherwise.
__Returns:__ void
__C declaration:__ @duckdb_table_function_supports_projection_pushdown@
__defined at:__ @duckdb.h 7927:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_supports_projection_pushdown ::
DuckDBTableFunction
{- ^
[__@table_function@__]: The table function
__C declaration:__ @table_function@
-}
-> BG.CBool
{- ^
[__@pushdown@__]: True if the table function supports projection pushdown, false otherwise.
__C declaration:__ @pushdown@
-}
-> IO ()
c_duckdb_table_function_supports_projection_pushdown =
hs_bindgen_7b6ddb914e22dc0c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_table_function@
foreign import ccall safe "hs_bindgen_aad41a8c83d775f6" hs_bindgen_aad41a8c83d775f6_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_register_table_function@
hs_bindgen_aad41a8c83d775f6 ::
DuckDBConnection
-> DuckDBTableFunction
-> IO DuckDBState
hs_bindgen_aad41a8c83d775f6 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_aad41a8c83d775f6_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Register the table function object within the given connection.
The function requires at least a name, a bind function, an init function and a main function.
If the function is incomplete or a function with this name already exists DuckDBError is returned.
history:
* stable: v0.3.3
[__@con@__]: The connection to register it in.
[__@function@__]: The function pointer
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_register_table_function@
__defined at:__ @duckdb.h 7946:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_register_table_function ::
DuckDBConnection
{- ^
[__@con@__]: The connection to register it in.
__C declaration:__ @con@
-}
-> DuckDBTableFunction
{- ^
[__@function@__]: The function pointer
__C declaration:__ @function@
-}
-> IO DuckDBState
c_duckdb_register_table_function =
hs_bindgen_aad41a8c83d775f6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_extra_info@
foreign import ccall safe "hs_bindgen_6fab24b482a2ecea" hs_bindgen_6fab24b482a2ecea_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_extra_info@
hs_bindgen_6fab24b482a2ecea ::
DuckDBBindInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_6fab24b482a2ecea =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6fab24b482a2ecea_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_table_function_set_extra_info'@ .
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_bind_get_extra_info@
__defined at:__ @duckdb.h 7959:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_get_extra_info ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_bind_get_extra_info =
hs_bindgen_6fab24b482a2ecea
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_get_client_context@
foreign import ccall safe "hs_bindgen_ccf6e3d06befd12b" hs_bindgen_ccf6e3d06befd12b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_get_client_context@
hs_bindgen_ccf6e3d06befd12b ::
DuckDBBindInfo
-> BG.Ptr DuckDBClientContext
-> IO ()
hs_bindgen_ccf6e3d06befd12b =
\x0 ->
\x1 ->
hs_bindgen_ccf6e3d06befd12b_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Retrieves the client context of the bind info of a table function.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@info@__]: The bind info object of the table function.
[__@out_context@__]: The client context of the bind info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__Returns:__ void
__C declaration:__ @duckdb_table_function_get_client_context@
__defined at:__ @duckdb.h 7974:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_get_client_context ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info object of the table function.
__C declaration:__ @info@
-}
-> BG.Ptr DuckDBClientContext
{- ^
[__@out_context@__]: The client context of the bind info. Must be destroyed with @'c_duckdb_destroy_client_context'@ .
__C declaration:__ @out_context@
-}
-> IO ()
c_duckdb_table_function_get_client_context =
hs_bindgen_ccf6e3d06befd12b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_add_result_column@
foreign import ccall safe "hs_bindgen_7f781750bcf9c561" hs_bindgen_7f781750bcf9c561_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_add_result_column@
hs_bindgen_7f781750bcf9c561 ::
DuckDBBindInfo
-> PtrConst.PtrConst BG.CChar
-> DuckDBLogicalType
-> IO ()
hs_bindgen_7f781750bcf9c561 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_7f781750bcf9c561_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Adds a result column to the output of the table function.
history:
* stable: v0.3.3
[__@info@__]: The table function\'s bind info.
[__@name@__]: The column name.
[__@type@__]: The logical column type.
__Returns:__ void
__C declaration:__ @duckdb_bind_add_result_column@
__defined at:__ @duckdb.h 7989:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_add_result_column ::
DuckDBBindInfo
{- ^
[__@info@__]: The table function\'s bind info.
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The column name.
__C declaration:__ @name@
-}
-> DuckDBLogicalType
{- ^
[__@type@__]: The logical column type.
__C declaration:__ @type@
-}
-> IO ()
c_duckdb_bind_add_result_column =
hs_bindgen_7f781750bcf9c561
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_parameter_count@
foreign import ccall safe "hs_bindgen_021eeb8fbfbce39a" hs_bindgen_021eeb8fbfbce39a_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_parameter_count@
hs_bindgen_021eeb8fbfbce39a ::
DuckDBBindInfo
-> IO DuckDBIdx
hs_bindgen_021eeb8fbfbce39a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_021eeb8fbfbce39a_base (BG.toFFIType x0))
{-| Retrieves the number of regular (non-named) parameters to the function.
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_bind_get_parameter_count@
__defined at:__ @duckdb.h 8002:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_get_parameter_count ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_bind_get_parameter_count =
hs_bindgen_021eeb8fbfbce39a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_parameter@
foreign import ccall safe "hs_bindgen_ba87799ace861635" hs_bindgen_ba87799ace861635_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_parameter@
hs_bindgen_ba87799ace861635 ::
DuckDBBindInfo
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_ba87799ace861635 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ba87799ace861635_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the parameter at the given index.
The result must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@index@__]: The index of the parameter to get
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_bind_get_parameter@
__defined at:__ @duckdb.h 8018:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_get_parameter ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the parameter to get
__C declaration:__ @index@
-}
-> IO DuckDBValue
c_duckdb_bind_get_parameter =
hs_bindgen_ba87799ace861635
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_named_parameter@
foreign import ccall safe "hs_bindgen_c914bc6228b6bee9" hs_bindgen_c914bc6228b6bee9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_get_named_parameter@
hs_bindgen_c914bc6228b6bee9 ::
DuckDBBindInfo
-> PtrConst.PtrConst BG.CChar
-> IO DuckDBValue
hs_bindgen_c914bc6228b6bee9 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_c914bc6228b6bee9_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves a named parameter with the given name.
The result must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v0.8.0
[__@info@__]: The info object
[__@name@__]: The name of the parameter
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_bind_get_named_parameter@
__defined at:__ @duckdb.h 8034:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_get_named_parameter ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@name@__]: The name of the parameter
__C declaration:__ @name@
-}
-> IO DuckDBValue
c_duckdb_bind_get_named_parameter =
hs_bindgen_c914bc6228b6bee9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_bind_data@
foreign import ccall safe "hs_bindgen_ae6dbca28237b618" hs_bindgen_ae6dbca28237b618_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_bind_data@
hs_bindgen_ae6dbca28237b618 ::
DuckDBBindInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_ae6dbca28237b618 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_ae6dbca28237b618_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the user-provided bind data in the bind object of the table function. This object can be retrieved again during execution.
history:
* stable: v0.3.3
[__@info@__]: The bind info of the table function.
[__@bind_data@__]: The bind data object.
[__@destroy@__]: The callback to destroy the bind data (if any).
__Returns:__ void
__C declaration:__ @duckdb_bind_set_bind_data@
__defined at:__ @duckdb.h 8050:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_set_bind_data ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info of the table function.
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@bind_data@__]: The bind data object.
__C declaration:__ @bind_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback to destroy the bind data (if any).
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_bind_set_bind_data =
hs_bindgen_ae6dbca28237b618
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_cardinality@
foreign import ccall safe "hs_bindgen_78371efd83ac79c2" hs_bindgen_78371efd83ac79c2_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.CBool
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_cardinality@
hs_bindgen_78371efd83ac79c2 ::
DuckDBBindInfo
-> DuckDBIdx
-> BG.CBool
-> IO ()
hs_bindgen_78371efd83ac79c2 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_78371efd83ac79c2_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the cardinality estimate for the table function, used for optimization.
history:
* stable: v0.5.0
[__@info@__]: The bind data object.
[__@cardinality@__]:
[__@is_exact@__]: Whether or not the cardinality estimate is exact, or an approximation
__Returns:__ void
__C declaration:__ @duckdb_bind_set_cardinality@
__defined at:__ @duckdb.h 8065:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_set_cardinality ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind data object.
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@cardinality@__]:
__C declaration:__ @cardinality@
-}
-> BG.CBool
{- ^
[__@is_exact@__]: Whether or not the cardinality estimate is exact, or an approximation
__C declaration:__ @is_exact@
-}
-> IO ()
c_duckdb_bind_set_cardinality =
hs_bindgen_78371efd83ac79c2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_error@
foreign import ccall safe "hs_bindgen_bc90a0043b0ab6d4" hs_bindgen_bc90a0043b0ab6d4_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_bind_set_error@
hs_bindgen_bc90a0043b0ab6d4 ::
DuckDBBindInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_bc90a0043b0ab6d4 =
\x0 ->
\x1 ->
hs_bindgen_bc90a0043b0ab6d4_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while calling bind on a table function.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_bind_set_error@
__defined at:__ @duckdb.h 8079:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_bind_set_error ::
DuckDBBindInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_bind_set_error = hs_bindgen_bc90a0043b0ab6d4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_extra_info@
foreign import ccall safe "hs_bindgen_b7875ec01bf04915" hs_bindgen_b7875ec01bf04915_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_extra_info@
hs_bindgen_b7875ec01bf04915 ::
DuckDBInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_b7875ec01bf04915 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b7875ec01bf04915_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_table_function_set_extra_info'@ .
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_init_get_extra_info@
__defined at:__ @duckdb.h 8092:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_get_extra_info ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_init_get_extra_info =
hs_bindgen_b7875ec01bf04915
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_bind_data@
foreign import ccall safe "hs_bindgen_a0d15cbe241999e8" hs_bindgen_a0d15cbe241999e8_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_bind_data@
hs_bindgen_a0d15cbe241999e8 ::
DuckDBInitInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_a0d15cbe241999e8 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a0d15cbe241999e8_base (BG.toFFIType x0))
{-| Gets the bind data set by @'c_duckdb_bind_set_bind_data'@ during the bind.
Note that the bind data should be considered as read-only. For tracking state, use the init data instead.
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_init_get_bind_data@
__defined at:__ @duckdb.h 8107:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_get_bind_data ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_init_get_bind_data =
hs_bindgen_a0d15cbe241999e8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_init_data@
foreign import ccall safe "hs_bindgen_97fe52be38df4eb5" hs_bindgen_97fe52be38df4eb5_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_init_data@
hs_bindgen_97fe52be38df4eb5 ::
DuckDBInitInfo
-> BG.Ptr BG.Void
-> DuckDBDeleteCallback
-> IO ()
hs_bindgen_97fe52be38df4eb5 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_97fe52be38df4eb5_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Sets the user-provided init data in the init object. This object can be retrieved again during execution.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@init_data@__]: The init data object.
[__@destroy@__]: The callback that will be called to destroy the init data (if any)
__Returns:__ void
__C declaration:__ @duckdb_init_set_init_data@
__defined at:__ @duckdb.h 8122:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_set_init_data ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> BG.Ptr BG.Void
{- ^
[__@init_data@__]: The init data object.
__C declaration:__ @init_data@
-}
-> DuckDBDeleteCallback
{- ^
[__@destroy@__]: The callback that will be called to destroy the init data (if any)
__C declaration:__ @destroy@
-}
-> IO ()
c_duckdb_init_set_init_data =
hs_bindgen_97fe52be38df4eb5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_column_count@
foreign import ccall safe "hs_bindgen_ed33dd34d691cba6" hs_bindgen_ed33dd34d691cba6_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_column_count@
hs_bindgen_ed33dd34d691cba6 ::
DuckDBInitInfo
-> IO DuckDBIdx
hs_bindgen_ed33dd34d691cba6 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ed33dd34d691cba6_base (BG.toFFIType x0))
{-| Returns the number of projected columns.
This function must be used if projection pushdown is enabled to figure out which columns to emit.
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_init_get_column_count@
__defined at:__ @duckdb.h 8137:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_get_column_count ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_init_get_column_count =
hs_bindgen_ed33dd34d691cba6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_column_index@
foreign import ccall safe "hs_bindgen_315d90043ca10c52" hs_bindgen_315d90043ca10c52_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_get_column_index@
hs_bindgen_315d90043ca10c52 ::
DuckDBInitInfo
-> DuckDBIdx
-> IO DuckDBIdx
hs_bindgen_315d90043ca10c52 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_315d90043ca10c52_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Returns the column index of the projected column at the specified position.
This function must be used if projection pushdown is enabled to figure out which columns to emit.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@column_index@__]: The index at which to get the projected column index, from 0..duckdb_init_get_column_count(info)
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_init_get_column_index@
__defined at:__ @duckdb.h 8153:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_get_column_index ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@column_index@__]: The index at which to get the projected column index, from 0..duckdb_init_get_column_count(info)
__C declaration:__ @column_index@
-}
-> IO DuckDBIdx
c_duckdb_init_get_column_index =
hs_bindgen_315d90043ca10c52
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_max_threads@
foreign import ccall safe "hs_bindgen_5b19cd9c0b08207e" hs_bindgen_5b19cd9c0b08207e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_max_threads@
hs_bindgen_5b19cd9c0b08207e ::
DuckDBInitInfo
-> DuckDBIdx
-> IO ()
hs_bindgen_5b19cd9c0b08207e =
\x0 ->
\x1 ->
hs_bindgen_5b19cd9c0b08207e_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Sets how many threads can process this table function in parallel (default: 1)
history:
* stable: v0.4.0
[__@info@__]: The info object
[__@max_threads@__]: The maximum amount of threads that can process this table function
__Returns:__ void
__C declaration:__ @duckdb_init_set_max_threads@
__defined at:__ @duckdb.h 8167:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_set_max_threads ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@max_threads@__]: The maximum amount of threads that can process this table function
__C declaration:__ @max_threads@
-}
-> IO ()
c_duckdb_init_set_max_threads =
hs_bindgen_5b19cd9c0b08207e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_error@
foreign import ccall safe "hs_bindgen_7eed47dafd9844a0" hs_bindgen_7eed47dafd9844a0_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_init_set_error@
hs_bindgen_7eed47dafd9844a0 ::
DuckDBInitInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_7eed47dafd9844a0 =
\x0 ->
\x1 ->
hs_bindgen_7eed47dafd9844a0_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while calling init.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_init_set_error@
__defined at:__ @duckdb.h 8181:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_init_set_error ::
DuckDBInitInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_init_set_error = hs_bindgen_7eed47dafd9844a0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_extra_info@
foreign import ccall safe "hs_bindgen_4e748f1d10a395e9" hs_bindgen_4e748f1d10a395e9_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_extra_info@
hs_bindgen_4e748f1d10a395e9 ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_4e748f1d10a395e9 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4e748f1d10a395e9_base (BG.toFFIType x0))
{-| Retrieves the extra info of the function as set in @'c_duckdb_table_function_set_extra_info'@ .
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_function_get_extra_info@
__defined at:__ @duckdb.h 8194:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_function_get_extra_info ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_function_get_extra_info =
hs_bindgen_4e748f1d10a395e9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_bind_data@
foreign import ccall safe "hs_bindgen_cb63e00179906ca2" hs_bindgen_cb63e00179906ca2_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_bind_data@
hs_bindgen_cb63e00179906ca2 ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_cb63e00179906ca2 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_cb63e00179906ca2_base (BG.toFFIType x0))
{-| Gets the table function\'s bind data set by @'c_duckdb_bind_set_bind_data'@ .
Note that the bind data is read-only. For tracking state, use the init data instead.
history:
* stable: v0.3.3
[__@info@__]: The function info object.
__Returns:__ void*
__C declaration:__ @duckdb_function_get_bind_data@
__defined at:__ @duckdb.h 8209:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_function_get_bind_data ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The function info object.
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_function_get_bind_data =
hs_bindgen_cb63e00179906ca2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_init_data@
foreign import ccall safe "hs_bindgen_7ed5ee7b3e3d9999" hs_bindgen_7ed5ee7b3e3d9999_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_init_data@
hs_bindgen_7ed5ee7b3e3d9999 ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_7ed5ee7b3e3d9999 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_7ed5ee7b3e3d9999_base (BG.toFFIType x0))
{-| Gets the init data set by @'c_duckdb_init_set_init_data'@ during the init.
history:
* stable: v0.3.3
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_function_get_init_data@
__defined at:__ @duckdb.h 8222:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_function_get_init_data ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_function_get_init_data =
hs_bindgen_7ed5ee7b3e3d9999
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_local_init_data@
foreign import ccall safe "hs_bindgen_1f692b92cc709645" hs_bindgen_1f692b92cc709645_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_get_local_init_data@
hs_bindgen_1f692b92cc709645 ::
DuckDBFunctionInfo
-> IO (BG.Ptr BG.Void)
hs_bindgen_1f692b92cc709645 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1f692b92cc709645_base (BG.toFFIType x0))
{-| Gets the thread-local init data set by @'c_duckdb_init_set_init_data'@ during the local_init.
history:
* stable: v0.4.0
[__@info@__]: The info object
__Returns:__ void*
__C declaration:__ @duckdb_function_get_local_init_data@
__defined at:__ @duckdb.h 8235:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_function_get_local_init_data ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_function_get_local_init_data =
hs_bindgen_1f692b92cc709645
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_set_error@
foreign import ccall safe "hs_bindgen_00bd4a7b01db4220" hs_bindgen_00bd4a7b01db4220_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_function_set_error@
hs_bindgen_00bd4a7b01db4220 ::
DuckDBFunctionInfo
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_00bd4a7b01db4220 =
\x0 ->
\x1 ->
hs_bindgen_00bd4a7b01db4220_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Report that an error has occurred while executing the function.
history:
* stable: v0.3.3
[__@info@__]: The info object
[__@error@__]: The error message
__Returns:__ void
__C declaration:__ @duckdb_function_set_error@
__defined at:__ @duckdb.h 8249:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_function_set_error ::
DuckDBFunctionInfo
{- ^
[__@info@__]: The info object
__C declaration:__ @info@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@error@__]: The error message
__C declaration:__ @error@
-}
-> IO ()
c_duckdb_function_set_error =
hs_bindgen_00bd4a7b01db4220
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_count@
foreign import ccall safe "hs_bindgen_ddabbca5182a4296" hs_bindgen_ddabbca5182a4296_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_count@
hs_bindgen_ddabbca5182a4296 ::
DuckDBBindInfo
-> IO DuckDBIdx
hs_bindgen_ddabbca5182a4296 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ddabbca5182a4296_base (BG.toFFIType x0))
{-| Retrieves the number of result columns of a table function.
If the table function is used in a @COPY ... FROM@ statement, this can be used to retrieve the number of columns in the target table at the start of the bind callback.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_table_function_bind_get_result_column_count@
__defined at:__ @duckdb.h 8266:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_bind_get_result_column_count ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> IO DuckDBIdx
c_duckdb_table_function_bind_get_result_column_count =
hs_bindgen_ddabbca5182a4296
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_name@
foreign import ccall safe "hs_bindgen_6327aeb7a89bbc07" hs_bindgen_6327aeb7a89bbc07_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_name@
hs_bindgen_6327aeb7a89bbc07 ::
DuckDBBindInfo
-> DuckDBIdx
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_6327aeb7a89bbc07 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_6327aeb7a89bbc07_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the name of a result column of a table function.
If the table function is used in a @COPY ... FROM@ statement, this can be used to retrieve the names of the columns in the target table at the start of the bind callback.
The result is valid for the duration of the bind callback or until the next call to @'c_duckdb_bind_add_result_column'@ , so it must not be destroyed.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
[__@col_idx@__]: The index of the result column to retrieve the name for
__Returns:__ const char*
__C declaration:__ @duckdb_table_function_bind_get_result_column_name@
__defined at:__ @duckdb.h 8287:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_bind_get_result_column_name ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The index of the result column to retrieve the name for
__C declaration:__ @col_idx@
-}
-> IO (PtrConst.PtrConst BG.CChar)
c_duckdb_table_function_bind_get_result_column_name =
hs_bindgen_6327aeb7a89bbc07
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_type@
foreign import ccall safe "hs_bindgen_7239677075fd2324" hs_bindgen_7239677075fd2324_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_table_function_bind_get_result_column_type@
hs_bindgen_7239677075fd2324 ::
DuckDBBindInfo
-> DuckDBIdx
-> IO DuckDBLogicalType
hs_bindgen_7239677075fd2324 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_7239677075fd2324_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the type of a result column of a table function.
If the table function is used in a @COPY ... FROM@ statement, this can be used to retrieve the types of the columns in the target table at the start of the bind callback.
The result must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@info@__]: The bind info provided to the bind function
[__@col_idx@__]: The index of the result column to retrieve the type for
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_table_function_bind_get_result_column_type@
__defined at:__ @duckdb.h 8307:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_table_function_bind_get_result_column_type ::
DuckDBBindInfo
{- ^
[__@info@__]: The bind info provided to the bind function
__C declaration:__ @info@
-}
-> DuckDBIdx
{- ^
[__@col_idx@__]: The index of the result column to retrieve the type for
__C declaration:__ @col_idx@
-}
-> IO DuckDBLogicalType
c_duckdb_table_function_bind_get_result_column_type =
hs_bindgen_7239677075fd2324
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_tasks@
foreign import ccall safe "hs_bindgen_33fd2a2a6fdd62ff" hs_bindgen_33fd2a2a6fdd62ff_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_tasks@
hs_bindgen_33fd2a2a6fdd62ff ::
DuckDBDatabase
-> DuckDBIdx
-> IO ()
hs_bindgen_33fd2a2a6fdd62ff =
\x0 ->
\x1 ->
hs_bindgen_33fd2a2a6fdd62ff_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Execute DuckDB tasks on this thread.
Will return after @max_tasks@ have been executed, or if there are no more tasks present.
history:
* stable: v0.4.0
[__@database@__]: The database object to execute tasks for
[__@max_tasks@__]: The maximum amount of tasks to execute
__Returns:__ void
__C declaration:__ @duckdb_execute_tasks@
__defined at:__ @duckdb.h 8342:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_tasks ::
DuckDBDatabase
{- ^
[__@database@__]: The database object to execute tasks for
__C declaration:__ @database@
-}
-> DuckDBIdx
{- ^
[__@max_tasks@__]: The maximum amount of tasks to execute
__C declaration:__ @max_tasks@
-}
-> IO ()
c_duckdb_execute_tasks = hs_bindgen_33fd2a2a6fdd62ff
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_task_state@
foreign import ccall safe "hs_bindgen_75127cab362fdc65" hs_bindgen_75127cab362fdc65_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_task_state@
hs_bindgen_75127cab362fdc65 ::
DuckDBDatabase
-> IO DuckDBTaskState
hs_bindgen_75127cab362fdc65 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_75127cab362fdc65_base (BG.toFFIType x0))
{-| Creates a task state that can be used with duckdb_execute_tasks_state to execute tasks until @'c_duckdb_finish_execution'@ is called on the state.
@duckdb_destroy_state@ must be called on the result.
history:
* stable: v0.5.0
[__@database@__]: The database object to create the task state for
__Returns:__ t'DuckDBTaskState'
__C declaration:__ @duckdb_create_task_state@
__defined at:__ @duckdb.h 8358:32@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_task_state ::
DuckDBDatabase
{- ^
[__@database@__]: The database object to create the task state for
__C declaration:__ @database@
-}
-> IO DuckDBTaskState
c_duckdb_create_task_state =
hs_bindgen_75127cab362fdc65
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_tasks_state@
foreign import ccall safe "hs_bindgen_c483eb3fcf9cced4" hs_bindgen_c483eb3fcf9cced4_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_tasks_state@
hs_bindgen_c483eb3fcf9cced4 ::
DuckDBTaskState
-> IO ()
hs_bindgen_c483eb3fcf9cced4 =
\x0 ->
hs_bindgen_c483eb3fcf9cced4_base (BG.toFFIType x0)
{-| Execute DuckDB tasks on this thread.
The thread will keep on executing tasks forever, until duckdb_finish_execution is called on the state. Multiple threads can share the same t'DuckDBTaskState' .
history:
* stable: v0.5.0
[__@state@__]: The task state of the executor
__Returns:__ void
__C declaration:__ @duckdb_execute_tasks_state@
__defined at:__ @duckdb.h 8374:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_tasks_state ::
DuckDBTaskState
{- ^
[__@state@__]: The task state of the executor
__C declaration:__ @state@
-}
-> IO ()
c_duckdb_execute_tasks_state =
hs_bindgen_c483eb3fcf9cced4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_n_tasks_state@
foreign import ccall safe "hs_bindgen_a9f33b6e6c103bca" hs_bindgen_a9f33b6e6c103bca_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execute_n_tasks_state@
hs_bindgen_a9f33b6e6c103bca ::
DuckDBTaskState
-> DuckDBIdx
-> IO DuckDBIdx
hs_bindgen_a9f33b6e6c103bca =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_a9f33b6e6c103bca_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Execute DuckDB tasks on this thread.
The thread will keep on executing tasks until either duckdb_finish_execution is called on the state, max_tasks tasks have been executed or there are no more tasks to be executed.
Multiple threads can share the same t'DuckDBTaskState' .
history:
* stable: v0.5.0
[__@state@__]: The task state of the executor
[__@max_tasks@__]: The maximum amount of tasks to execute
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_execute_n_tasks_state@
__defined at:__ @duckdb.h 8393:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_execute_n_tasks_state ::
DuckDBTaskState
{- ^
[__@state@__]: The task state of the executor
__C declaration:__ @state@
-}
-> DuckDBIdx
{- ^
[__@max_tasks@__]: The maximum amount of tasks to execute
__C declaration:__ @max_tasks@
-}
-> IO DuckDBIdx
c_duckdb_execute_n_tasks_state =
hs_bindgen_a9f33b6e6c103bca
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_finish_execution@
foreign import ccall safe "hs_bindgen_d7af3b181ccdb7bc" hs_bindgen_d7af3b181ccdb7bc_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_finish_execution@
hs_bindgen_d7af3b181ccdb7bc ::
DuckDBTaskState
-> IO ()
hs_bindgen_d7af3b181ccdb7bc =
\x0 ->
hs_bindgen_d7af3b181ccdb7bc_base (BG.toFFIType x0)
{-| Finish execution on a specific task.
history:
* stable: v0.5.0
[__@state@__]: The task state to finish execution
__Returns:__ void
__C declaration:__ @duckdb_finish_execution@
__defined at:__ @duckdb.h 8406:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_finish_execution ::
DuckDBTaskState
{- ^
[__@state@__]: The task state to finish execution
__C declaration:__ @state@
-}
-> IO ()
c_duckdb_finish_execution =
hs_bindgen_d7af3b181ccdb7bc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_task_state_is_finished@
foreign import ccall safe "hs_bindgen_4a7f9cb6b99f4a2c" hs_bindgen_4a7f9cb6b99f4a2c_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_task_state_is_finished@
hs_bindgen_4a7f9cb6b99f4a2c ::
DuckDBTaskState
-> IO BG.CBool
hs_bindgen_4a7f9cb6b99f4a2c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4a7f9cb6b99f4a2c_base (BG.toFFIType x0))
{-|
Check if the provided t'DuckDBTaskState' has finished execution
history:
* stable: v0.5.0
[__@state@__]: The task state to inspect
__Returns:__ bool
__C declaration:__ @duckdb_task_state_is_finished@
__defined at:__ @duckdb.h 8419:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_task_state_is_finished ::
DuckDBTaskState
{- ^
[__@state@__]: The task state to inspect
__C declaration:__ @state@
-}
-> IO BG.CBool
c_duckdb_task_state_is_finished =
hs_bindgen_4a7f9cb6b99f4a2c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_task_state@
foreign import ccall safe "hs_bindgen_6b20c703713efbc1" hs_bindgen_6b20c703713efbc1_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_task_state@
hs_bindgen_6b20c703713efbc1 ::
DuckDBTaskState
-> IO ()
hs_bindgen_6b20c703713efbc1 =
\x0 ->
hs_bindgen_6b20c703713efbc1_base (BG.toFFIType x0)
{-| Destroys the task state returned from duckdb_create_task_state.
Note that this should not be called while there is an active duckdb_execute_tasks_state running on the task state.
history:
* stable: v0.5.0
[__@state@__]: The task state to clean up
__Returns:__ void
__C declaration:__ @duckdb_destroy_task_state@
__defined at:__ @duckdb.h 8434:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_task_state ::
DuckDBTaskState
{- ^
[__@state@__]: The task state to clean up
__C declaration:__ @state@
-}
-> IO ()
c_duckdb_destroy_task_state =
hs_bindgen_6b20c703713efbc1
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execution_is_finished@
foreign import ccall safe "hs_bindgen_b59088062cd376af" hs_bindgen_b59088062cd376af_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_execution_is_finished@
hs_bindgen_b59088062cd376af ::
DuckDBConnection
-> IO BG.CBool
hs_bindgen_b59088062cd376af =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b59088062cd376af_base (BG.toFFIType x0))
{-| Returns true if the execution of the current query is finished.
history:
* stable: v0.7.0
[__@con@__]: The connection on which to check
__Returns:__ bool
__C declaration:__ @duckdb_execution_is_finished@
__defined at:__ @duckdb.h 8447:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_execution_is_finished ::
DuckDBConnection
{- ^
[__@con@__]: The connection on which to check
__C declaration:__ @con@
-}
-> IO BG.CBool
c_duckdb_execution_is_finished =
hs_bindgen_b59088062cd376af
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_value@
foreign import ccall safe "hs_bindgen_7416564ecbea2162" hs_bindgen_7416564ecbea2162_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_value@
hs_bindgen_7416564ecbea2162 ::
BG.Ptr DuckDBValue
-> IO ()
hs_bindgen_7416564ecbea2162 =
\x0 ->
hs_bindgen_7416564ecbea2162_base (BG.toFFIType x0)
{-| Destroys the value and de-allocates all memory allocated for that type.
history:
* stable: v0.3.3
[__@value@__]: The value to destroy.
__Returns:__ void
__C declaration:__ @duckdb_destroy_value@
__defined at:__ @duckdb.h 8478:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_value ::
BG.Ptr DuckDBValue
{- ^
[__@value@__]: The value to destroy.
__C declaration:__ @value@
-}
-> IO ()
c_duckdb_destroy_value = hs_bindgen_7416564ecbea2162
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_varchar@
foreign import ccall safe "hs_bindgen_b7a98388b23a9165" hs_bindgen_b7a98388b23a9165_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_varchar@
hs_bindgen_b7a98388b23a9165 ::
PtrConst.PtrConst BG.CChar
-> IO DuckDBValue
hs_bindgen_b7a98388b23a9165 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b7a98388b23a9165_base (BG.toFFIType x0))
{-| Creates a value from a null-terminated string. Returns nullptr if the string is not valid UTF-8 or other invalid input.
Superseded by @'c_duckdb_create_varchar_length'@ .
history:
* stable: v0.3.3
[__@text@__]: The null-terminated string
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_varchar@
__defined at:__ @duckdb.h 8494:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_varchar ::
PtrConst.PtrConst BG.CChar
{- ^
[__@text@__]: The null-terminated string
__C declaration:__ @text@
-}
-> IO DuckDBValue
c_duckdb_create_varchar = hs_bindgen_b7a98388b23a9165
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_varchar_length@
foreign import ccall safe "hs_bindgen_acf0e4b8713d5965" hs_bindgen_acf0e4b8713d5965_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_varchar_length@
hs_bindgen_acf0e4b8713d5965 ::
PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_acf0e4b8713d5965 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_acf0e4b8713d5965_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a value from a string. Returns nullptr if the string is not valid UTF-8 or other invalid input.
history:
* stable: v0.3.3
[__@text@__]: The text
[__@length@__]: The length of the text
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_varchar_length@
__defined at:__ @duckdb.h 8508:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_varchar_length ::
PtrConst.PtrConst BG.CChar
{- ^
[__@text@__]: The text
__C declaration:__ @text@
-}
-> DuckDBIdx
{- ^
[__@length@__]: The length of the text
__C declaration:__ @length@
-}
-> IO DuckDBValue
c_duckdb_create_varchar_length =
hs_bindgen_acf0e4b8713d5965
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bool@
foreign import ccall safe "hs_bindgen_545bb1b78145c2fd" hs_bindgen_545bb1b78145c2fd_base ::
BG.CBool
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bool@
hs_bindgen_545bb1b78145c2fd ::
BG.CBool
-> IO DuckDBValue
hs_bindgen_545bb1b78145c2fd =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_545bb1b78145c2fd_base (BG.toFFIType x0))
{-| Creates a value from a boolean
history:
* stable: v1.1.0
[__@input@__]: The boolean value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_bool@
__defined at:__ @duckdb.h 8521:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_bool ::
BG.CBool
{- ^
[__@input@__]: The boolean value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_bool = hs_bindgen_545bb1b78145c2fd
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int8@
foreign import ccall safe "hs_bindgen_70b127e29e4eeeee" hs_bindgen_70b127e29e4eeeee_base ::
HsBindgen.Runtime.LibC.Int8
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int8@
hs_bindgen_70b127e29e4eeeee ::
HsBindgen.Runtime.LibC.Int8
-> IO DuckDBValue
hs_bindgen_70b127e29e4eeeee =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_70b127e29e4eeeee_base (BG.toFFIType x0))
{-| Creates a value from an int8_t (a tinyint)
history:
* stable: v1.1.0
[__@input@__]: The tinyint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_int8@
__defined at:__ @duckdb.h 8534:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_int8 ::
HsBindgen.Runtime.LibC.Int8
{- ^
[__@input@__]: The tinyint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_int8 = hs_bindgen_70b127e29e4eeeee
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint8@
foreign import ccall safe "hs_bindgen_d066824e23ecaa3b" hs_bindgen_d066824e23ecaa3b_base ::
HsBindgen.Runtime.LibC.Word8
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint8@
hs_bindgen_d066824e23ecaa3b ::
HsBindgen.Runtime.LibC.Word8
-> IO DuckDBValue
hs_bindgen_d066824e23ecaa3b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_d066824e23ecaa3b_base (BG.toFFIType x0))
{-| Creates a value from a uint8_t (a utinyint)
history:
* stable: v1.1.0
[__@input@__]: The utinyint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uint8@
__defined at:__ @duckdb.h 8547:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uint8 ::
HsBindgen.Runtime.LibC.Word8
{- ^
[__@input@__]: The utinyint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uint8 = hs_bindgen_d066824e23ecaa3b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int16@
foreign import ccall safe "hs_bindgen_a6cfd909f3065e49" hs_bindgen_a6cfd909f3065e49_base ::
HsBindgen.Runtime.LibC.Int16
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int16@
hs_bindgen_a6cfd909f3065e49 ::
HsBindgen.Runtime.LibC.Int16
-> IO DuckDBValue
hs_bindgen_a6cfd909f3065e49 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a6cfd909f3065e49_base (BG.toFFIType x0))
{-| Creates a value from an int16_t (a smallint)
history:
* stable: v1.1.0
[__@input@__]: The smallint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_int16@
__defined at:__ @duckdb.h 8560:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_int16 ::
HsBindgen.Runtime.LibC.Int16
{- ^
[__@input@__]: The smallint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_int16 = hs_bindgen_a6cfd909f3065e49
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint16@
foreign import ccall safe "hs_bindgen_a9c685bd6504c27a" hs_bindgen_a9c685bd6504c27a_base ::
HsBindgen.Runtime.LibC.Word16
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint16@
hs_bindgen_a9c685bd6504c27a ::
HsBindgen.Runtime.LibC.Word16
-> IO DuckDBValue
hs_bindgen_a9c685bd6504c27a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_a9c685bd6504c27a_base (BG.toFFIType x0))
{-| Creates a value from a uint16_t (a usmallint)
history:
* stable: v1.1.0
[__@input@__]: The usmallint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uint16@
__defined at:__ @duckdb.h 8573:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uint16 ::
HsBindgen.Runtime.LibC.Word16
{- ^
[__@input@__]: The usmallint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uint16 = hs_bindgen_a9c685bd6504c27a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int32@
foreign import ccall safe "hs_bindgen_5bec523c4d95699b" hs_bindgen_5bec523c4d95699b_base ::
HsBindgen.Runtime.LibC.Int32
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int32@
hs_bindgen_5bec523c4d95699b ::
HsBindgen.Runtime.LibC.Int32
-> IO DuckDBValue
hs_bindgen_5bec523c4d95699b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5bec523c4d95699b_base (BG.toFFIType x0))
{-| Creates a value from an int32_t (an integer)
history:
* stable: v1.1.0
[__@input@__]: The integer value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_int32@
__defined at:__ @duckdb.h 8586:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_int32 ::
HsBindgen.Runtime.LibC.Int32
{- ^
[__@input@__]: The integer value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_int32 = hs_bindgen_5bec523c4d95699b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint32@
foreign import ccall safe "hs_bindgen_f2c252bc8521c880" hs_bindgen_f2c252bc8521c880_base ::
HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint32@
hs_bindgen_f2c252bc8521c880 ::
HsBindgen.Runtime.LibC.Word32
-> IO DuckDBValue
hs_bindgen_f2c252bc8521c880 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f2c252bc8521c880_base (BG.toFFIType x0))
{-| Creates a value from a uint32_t (a uinteger)
history:
* stable: v1.1.0
[__@input@__]: The uinteger value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uint32@
__defined at:__ @duckdb.h 8599:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uint32 ::
HsBindgen.Runtime.LibC.Word32
{- ^
[__@input@__]: The uinteger value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uint32 = hs_bindgen_f2c252bc8521c880
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint64@
foreign import ccall safe "hs_bindgen_cac3b650cf37ffd2" hs_bindgen_cac3b650cf37ffd2_base ::
HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uint64@
hs_bindgen_cac3b650cf37ffd2 ::
HsBindgen.Runtime.LibC.Word64
-> IO DuckDBValue
hs_bindgen_cac3b650cf37ffd2 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_cac3b650cf37ffd2_base (BG.toFFIType x0))
{-| Creates a value from a uint64_t (a ubigint)
history:
* stable: v1.1.0
[__@input@__]: The ubigint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uint64@
__defined at:__ @duckdb.h 8612:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uint64 ::
HsBindgen.Runtime.LibC.Word64
{- ^
[__@input@__]: The ubigint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uint64 = hs_bindgen_cac3b650cf37ffd2
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int64@
foreign import ccall safe "hs_bindgen_5181d8fcad549863" hs_bindgen_5181d8fcad549863_base ::
HsBindgen.Runtime.LibC.Int64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_int64@
hs_bindgen_5181d8fcad549863 ::
HsBindgen.Runtime.LibC.Int64
-> IO DuckDBValue
hs_bindgen_5181d8fcad549863 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_5181d8fcad549863_base (BG.toFFIType x0))
{-| Creates a value from an int64
history:
* stable: v0.3.3
[__@val@__]:
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_int64@
__defined at:__ @duckdb.h 8625:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_int64 ::
HsBindgen.Runtime.LibC.Int64
{- ^
[__@val@__]:
__C declaration:__ @val@
-}
-> IO DuckDBValue
c_duckdb_create_int64 = hs_bindgen_5181d8fcad549863
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_hugeint@
foreign import ccall safe "hs_bindgen_f6246c4c29021491" hs_bindgen_f6246c4c29021491_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_hugeint@
hs_bindgen_f6246c4c29021491 ::
BG.Ptr DuckDBHugeInt
-> IO DuckDBValue
hs_bindgen_f6246c4c29021491 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f6246c4c29021491_base (BG.toFFIType x0))
{-| Creates a value from a hugeint
history:
* stable: v1.1.0
[__@input@__]: The hugeint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_hugeint@
__defined at:__ @duckdb.h 8638:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_hugeint ::
DuckDBHugeInt
{- ^
[__@input@__]: The hugeint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_hugeint =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_f6246c4c29021491 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uhugeint@
foreign import ccall safe "hs_bindgen_3e97e4ce6f3c80ac" hs_bindgen_3e97e4ce6f3c80ac_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uhugeint@
hs_bindgen_3e97e4ce6f3c80ac ::
BG.Ptr DuckDBUHugeInt
-> IO DuckDBValue
hs_bindgen_3e97e4ce6f3c80ac =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3e97e4ce6f3c80ac_base (BG.toFFIType x0))
{-| Creates a value from a uhugeint
history:
* stable: v1.1.0
[__@input@__]: The uhugeint value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uhugeint@
__defined at:__ @duckdb.h 8651:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uhugeint ::
DuckDBUHugeInt
{- ^
[__@input@__]: The uhugeint value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uhugeint =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_3e97e4ce6f3c80ac input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bignum@
foreign import ccall safe "hs_bindgen_d24ce08ffed3f6b6" hs_bindgen_d24ce08ffed3f6b6_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bignum@
hs_bindgen_d24ce08ffed3f6b6 ::
BG.Ptr DuckDBBignum
-> IO DuckDBValue
hs_bindgen_d24ce08ffed3f6b6 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_d24ce08ffed3f6b6_base (BG.toFFIType x0))
{-|
Creates a BIGNUM value from a t'DuckDBBignum'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBBignum' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_bignum@
__defined at:__ @duckdb.h 8664:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_bignum ::
DuckDBBignum
{- ^
[__@input@__]: The t'DuckDBBignum' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_bignum =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_d24ce08ffed3f6b6 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_decimal@
foreign import ccall safe "hs_bindgen_4ca0d4cd4553b621" hs_bindgen_4ca0d4cd4553b621_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_decimal@
hs_bindgen_4ca0d4cd4553b621 ::
BG.Ptr DuckDBDecimal
-> IO DuckDBValue
hs_bindgen_4ca0d4cd4553b621 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4ca0d4cd4553b621_base (BG.toFFIType x0))
{-|
Creates a DECIMAL value from a t'DuckDBDecimal'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBDecimal' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_decimal@
__defined at:__ @duckdb.h 8677:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_decimal ::
DuckDBDecimal
{- ^
[__@input@__]: The t'DuckDBDecimal' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_decimal =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_4ca0d4cd4553b621 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_float@
foreign import ccall safe "hs_bindgen_8e6cf7541c757947" hs_bindgen_8e6cf7541c757947_base ::
BG.CFloat
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_float@
hs_bindgen_8e6cf7541c757947 ::
BG.CFloat
-> IO DuckDBValue
hs_bindgen_8e6cf7541c757947 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8e6cf7541c757947_base (BG.toFFIType x0))
{-| Creates a value from a float
history:
* stable: v1.1.0
[__@input@__]: The float value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_float@
__defined at:__ @duckdb.h 8690:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_float ::
BG.CFloat
{- ^
[__@input@__]: The float value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_float = hs_bindgen_8e6cf7541c757947
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_double@
foreign import ccall safe "hs_bindgen_6f0cb28a70d81ff7" hs_bindgen_6f0cb28a70d81ff7_base ::
BG.CDouble
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_double@
hs_bindgen_6f0cb28a70d81ff7 ::
BG.CDouble
-> IO DuckDBValue
hs_bindgen_6f0cb28a70d81ff7 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6f0cb28a70d81ff7_base (BG.toFFIType x0))
{-| Creates a value from a double
history:
* stable: v1.1.0
[__@input@__]: The double value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_double@
__defined at:__ @duckdb.h 8703:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_double ::
BG.CDouble
{- ^
[__@input@__]: The double value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_double = hs_bindgen_6f0cb28a70d81ff7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_date@
foreign import ccall safe "hs_bindgen_4fc78acbb0d6f7d4" hs_bindgen_4fc78acbb0d6f7d4_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_date@
hs_bindgen_4fc78acbb0d6f7d4 ::
BG.Ptr DuckDBDate
-> IO DuckDBValue
hs_bindgen_4fc78acbb0d6f7d4 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4fc78acbb0d6f7d4_base (BG.toFFIType x0))
{-| Creates a value from a date
history:
* stable: v1.1.0
[__@input@__]: The date value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_date@
__defined at:__ @duckdb.h 8716:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_date ::
DuckDBDate
{- ^
[__@input@__]: The date value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_date =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_4fc78acbb0d6f7d4 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time@
foreign import ccall safe "hs_bindgen_b8abb38c489b45f3" hs_bindgen_b8abb38c489b45f3_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time@
hs_bindgen_b8abb38c489b45f3 ::
BG.Ptr DuckDBTime
-> IO DuckDBValue
hs_bindgen_b8abb38c489b45f3 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b8abb38c489b45f3_base (BG.toFFIType x0))
{-| Creates a value from a time
history:
* stable: v1.1.0
[__@input@__]: The time value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_time@
__defined at:__ @duckdb.h 8729:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_time ::
DuckDBTime
{- ^
[__@input@__]: The time value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_time =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_b8abb38c489b45f3 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_ns@
foreign import ccall safe "hs_bindgen_1e13f4e1b882a94b" hs_bindgen_1e13f4e1b882a94b_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_ns@
hs_bindgen_1e13f4e1b882a94b ::
BG.Ptr DuckDBTimeNs
-> IO DuckDBValue
hs_bindgen_1e13f4e1b882a94b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1e13f4e1b882a94b_base (BG.toFFIType x0))
{-| Creates a value from a time_ns
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@input@__]: The time value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_time_ns@
__defined at:__ @duckdb.h 8743:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_time_ns ::
DuckDBTimeNs
{- ^
[__@input@__]: The time value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_time_ns =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_1e13f4e1b882a94b input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_tz_value@
foreign import ccall safe "hs_bindgen_23c57f1e364c528f" hs_bindgen_23c57f1e364c528f_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_time_tz_value@
hs_bindgen_23c57f1e364c528f ::
BG.Ptr DuckDBTimeTz
-> IO DuckDBValue
hs_bindgen_23c57f1e364c528f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_23c57f1e364c528f_base (BG.toFFIType x0))
{-| Creates a value from a time_tz. Not to be confused with @'c_duckdb_create_time_tz'@ , which creates a duckdb_time_tz_t.
history:
* stable: v1.1.0
[__@value@__]: The time_tz value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_time_tz_value@
__defined at:__ @duckdb.h 8756:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_time_tz_value ::
DuckDBTimeTz
{- ^
[__@value@__]: The time_tz value
__C declaration:__ @value@
-}
-> IO DuckDBValue
c_duckdb_create_time_tz_value =
\value0 ->
BG.with value0 (\value1 ->
hs_bindgen_23c57f1e364c528f value1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp@
foreign import ccall safe "hs_bindgen_931d2c720adf9f32" hs_bindgen_931d2c720adf9f32_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp@
hs_bindgen_931d2c720adf9f32 ::
BG.Ptr DuckDBTimestamp
-> IO DuckDBValue
hs_bindgen_931d2c720adf9f32 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_931d2c720adf9f32_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP value from a t'DuckDBTimestamp'
history:
* stable: v1.1.0
[__@input@__]: The t'DuckDBTimestamp' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp@
__defined at:__ @duckdb.h 8769:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp ::
DuckDBTimestamp
{- ^
[__@input@__]: The t'DuckDBTimestamp' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_931d2c720adf9f32 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_tz@
foreign import ccall safe "hs_bindgen_4bf48d5c47b0fd30" hs_bindgen_4bf48d5c47b0fd30_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_tz@
hs_bindgen_4bf48d5c47b0fd30 ::
BG.Ptr DuckDBTimestamp
-> IO DuckDBValue
hs_bindgen_4bf48d5c47b0fd30 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_4bf48d5c47b0fd30_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP_TZ value from a t'DuckDBTimestamp'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBTimestamp' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp_tz@
__defined at:__ @duckdb.h 8782:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp_tz ::
DuckDBTimestamp
{- ^
[__@input@__]: The t'DuckDBTimestamp' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp_tz =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_4bf48d5c47b0fd30 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_tz_ns@
foreign import ccall safe "hs_bindgen_1fd8ec4cc5b7dd6c" hs_bindgen_1fd8ec4cc5b7dd6c_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_tz_ns@
hs_bindgen_1fd8ec4cc5b7dd6c ::
BG.Ptr DuckDBTimestampNs
-> IO DuckDBValue
hs_bindgen_1fd8ec4cc5b7dd6c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_1fd8ec4cc5b7dd6c_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP_TZ_NS value from a t'DuckDBTimestampNs'
history:
* unstable: v1.5.4
* stable: v1.5.6
[__@input@__]: The t'DuckDBTimestampNs' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp_tz_ns@
__defined at:__ @duckdb.h 8796:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp_tz_ns ::
DuckDBTimestampNs
{- ^
[__@input@__]: The t'DuckDBTimestampNs' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp_tz_ns =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_1fd8ec4cc5b7dd6c input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_s@
foreign import ccall safe "hs_bindgen_839b89f0c97b4b9c" hs_bindgen_839b89f0c97b4b9c_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_s@
hs_bindgen_839b89f0c97b4b9c ::
BG.Ptr DuckDBTimestampS
-> IO DuckDBValue
hs_bindgen_839b89f0c97b4b9c =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_839b89f0c97b4b9c_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP_S value from a t'DuckDBTimestampS'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBTimestampS' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp_s@
__defined at:__ @duckdb.h 8809:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp_s ::
DuckDBTimestampS
{- ^
[__@input@__]: The t'DuckDBTimestampS' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp_s =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_839b89f0c97b4b9c input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_ms@
foreign import ccall safe "hs_bindgen_6976ceed86104904" hs_bindgen_6976ceed86104904_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_ms@
hs_bindgen_6976ceed86104904 ::
BG.Ptr DuckDBTimestampMs
-> IO DuckDBValue
hs_bindgen_6976ceed86104904 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6976ceed86104904_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP_MS value from a t'DuckDBTimestampMs'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBTimestampMs' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp_ms@
__defined at:__ @duckdb.h 8822:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp_ms ::
DuckDBTimestampMs
{- ^
[__@input@__]: The t'DuckDBTimestampMs' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp_ms =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_6976ceed86104904 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_ns@
foreign import ccall safe "hs_bindgen_60490049e30ac729" hs_bindgen_60490049e30ac729_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_timestamp_ns@
hs_bindgen_60490049e30ac729 ::
BG.Ptr DuckDBTimestampNs
-> IO DuckDBValue
hs_bindgen_60490049e30ac729 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_60490049e30ac729_base (BG.toFFIType x0))
{-|
Creates a TIMESTAMP_NS value from a t'DuckDBTimestampNs'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBTimestampNs' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_timestamp_ns@
__defined at:__ @duckdb.h 8835:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_timestamp_ns ::
DuckDBTimestampNs
{- ^
[__@input@__]: The t'DuckDBTimestampNs' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_timestamp_ns =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_60490049e30ac729 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_interval@
foreign import ccall safe "hs_bindgen_83efabe4062e8681" hs_bindgen_83efabe4062e8681_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_interval@
hs_bindgen_83efabe4062e8681 ::
BG.Ptr DuckDBInterval
-> IO DuckDBValue
hs_bindgen_83efabe4062e8681 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_83efabe4062e8681_base (BG.toFFIType x0))
{-| Creates a value from an interval
history:
* stable: v1.1.0
[__@input@__]: The interval value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_interval@
__defined at:__ @duckdb.h 8848:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_interval ::
DuckDBInterval
{- ^
[__@input@__]: The interval value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_interval =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_83efabe4062e8681 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_blob@
foreign import ccall safe "hs_bindgen_cf735e94c5bac60d" hs_bindgen_cf735e94c5bac60d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_blob@
hs_bindgen_cf735e94c5bac60d ::
PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_cf735e94c5bac60d =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_cf735e94c5bac60d_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a value from a blob
history:
* stable: v1.1.0
[__@data@__]: The blob data
[__@length@__]: The length of the blob data
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_blob@
__defined at:__ @duckdb.h 8862:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_blob ::
PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
{- ^
[__@data@__]: The blob data
__C declaration:__ @data@
-}
-> DuckDBIdx
{- ^
[__@length@__]: The length of the blob data
__C declaration:__ @length@
-}
-> IO DuckDBValue
c_duckdb_create_blob = hs_bindgen_cf735e94c5bac60d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bit@
foreign import ccall safe "hs_bindgen_c7b4b1a06cda2f10" hs_bindgen_c7b4b1a06cda2f10_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_bit@
hs_bindgen_c7b4b1a06cda2f10 ::
BG.Ptr DuckDBBit
-> IO DuckDBValue
hs_bindgen_c7b4b1a06cda2f10 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c7b4b1a06cda2f10_base (BG.toFFIType x0))
{-|
Creates a BIT value from a t'DuckDBBit'
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBBit' value
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_bit@
__defined at:__ @duckdb.h 8875:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_bit ::
DuckDBBit
{- ^
[__@input@__]: The t'DuckDBBit' value
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_bit =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_c7b4b1a06cda2f10 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uuid@
foreign import ccall safe "hs_bindgen_b9b73a0a629f9c40" hs_bindgen_b9b73a0a629f9c40_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_uuid@
hs_bindgen_b9b73a0a629f9c40 ::
BG.Ptr DuckDBUHugeInt
-> IO DuckDBValue
hs_bindgen_b9b73a0a629f9c40 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b9b73a0a629f9c40_base (BG.toFFIType x0))
{-| Creates a UUID value from a uhugeint
history:
* stable: v1.2.0
[__@input@__]: The t'DuckDBUHugeInt' containing the UUID
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_uuid@
__defined at:__ @duckdb.h 8888:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_uuid ::
DuckDBUHugeInt
{- ^
[__@input@__]: The t'DuckDBUHugeInt' containing the UUID
__C declaration:__ @input@
-}
-> IO DuckDBValue
c_duckdb_create_uuid =
\input0 ->
BG.with input0 (\input1 ->
hs_bindgen_b9b73a0a629f9c40 input1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bool@
foreign import ccall safe "hs_bindgen_8daa08114c4aa357" hs_bindgen_8daa08114c4aa357_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bool@
hs_bindgen_8daa08114c4aa357 ::
DuckDBValue
-> IO BG.CBool
hs_bindgen_8daa08114c4aa357 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8daa08114c4aa357_base (BG.toFFIType x0))
{-| Returns the boolean value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a boolean
__Returns:__ bool
__C declaration:__ @duckdb_get_bool@
__defined at:__ @duckdb.h 8901:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_bool ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a boolean
__C declaration:__ @val@
-}
-> IO BG.CBool
c_duckdb_get_bool = hs_bindgen_8daa08114c4aa357
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int8@
foreign import ccall safe "hs_bindgen_8635bf99c840171b" hs_bindgen_8635bf99c840171b_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int8@
hs_bindgen_8635bf99c840171b ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Int8
hs_bindgen_8635bf99c840171b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_8635bf99c840171b_base (BG.toFFIType x0))
{-| Returns the int8_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a tinyint
__Returns:__ int8_t
__C declaration:__ @duckdb_get_int8@
__defined at:__ @duckdb.h 8914:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_int8 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a tinyint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Int8
c_duckdb_get_int8 = hs_bindgen_8635bf99c840171b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint8@
foreign import ccall safe "hs_bindgen_9bcba9c2ddd830e0" hs_bindgen_9bcba9c2ddd830e0_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint8@
hs_bindgen_9bcba9c2ddd830e0 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Word8
hs_bindgen_9bcba9c2ddd830e0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_9bcba9c2ddd830e0_base (BG.toFFIType x0))
{-| Returns the uint8_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a utinyint
__Returns:__ uint8_t
__C declaration:__ @duckdb_get_uint8@
__defined at:__ @duckdb.h 8927:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uint8 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a utinyint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Word8
c_duckdb_get_uint8 = hs_bindgen_9bcba9c2ddd830e0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int16@
foreign import ccall safe "hs_bindgen_c63af2c95b187ed9" hs_bindgen_c63af2c95b187ed9_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int16
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int16@
hs_bindgen_c63af2c95b187ed9 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Int16
hs_bindgen_c63af2c95b187ed9 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c63af2c95b187ed9_base (BG.toFFIType x0))
{-| Returns the int16_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a smallint
__Returns:__ int16_t
__C declaration:__ @duckdb_get_int16@
__defined at:__ @duckdb.h 8940:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_int16 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a smallint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Int16
c_duckdb_get_int16 = hs_bindgen_c63af2c95b187ed9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint16@
foreign import ccall safe "hs_bindgen_b1dacf42f5095365" hs_bindgen_b1dacf42f5095365_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word16
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint16@
hs_bindgen_b1dacf42f5095365 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_b1dacf42f5095365 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b1dacf42f5095365_base (BG.toFFIType x0))
{-| Returns the uint16_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a usmallint
__Returns:__ uint16_t
__C declaration:__ @duckdb_get_uint16@
__defined at:__ @duckdb.h 8953:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uint16 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a usmallint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Word16
c_duckdb_get_uint16 = hs_bindgen_b1dacf42f5095365
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int32@
foreign import ccall safe "hs_bindgen_6340bd0360a949a3" hs_bindgen_6340bd0360a949a3_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int32@
hs_bindgen_6340bd0360a949a3 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Int32
hs_bindgen_6340bd0360a949a3 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6340bd0360a949a3_base (BG.toFFIType x0))
{-| Returns the int32_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing an integer
__Returns:__ int32_t
__C declaration:__ @duckdb_get_int32@
__defined at:__ @duckdb.h 8966:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_int32 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing an integer
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Int32
c_duckdb_get_int32 = hs_bindgen_6340bd0360a949a3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint32@
foreign import ccall safe "hs_bindgen_2da280f7709cce18" hs_bindgen_2da280f7709cce18_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint32@
hs_bindgen_2da280f7709cce18 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_2da280f7709cce18 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2da280f7709cce18_base (BG.toFFIType x0))
{-| Returns the uint32_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a uinteger
__Returns:__ uint32_t
__C declaration:__ @duckdb_get_uint32@
__defined at:__ @duckdb.h 8979:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uint32 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a uinteger
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Word32
c_duckdb_get_uint32 = hs_bindgen_2da280f7709cce18
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int64@
foreign import ccall safe "hs_bindgen_c2dd8141b4a3022f" hs_bindgen_c2dd8141b4a3022f_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_int64@
hs_bindgen_c2dd8141b4a3022f ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_c2dd8141b4a3022f =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_c2dd8141b4a3022f_base (BG.toFFIType x0))
{-| Returns the int64_t value of the given value.
history:
* stable: v0.3.3
[__@val@__]: A t'DuckDBValue' containing a bigint
__Returns:__ int64_t
__C declaration:__ @duckdb_get_int64@
__defined at:__ @duckdb.h 8992:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_int64 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a bigint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_get_int64 = hs_bindgen_c2dd8141b4a3022f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint64@
foreign import ccall safe "hs_bindgen_6a3f2f6242c76931" hs_bindgen_6a3f2f6242c76931_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uint64@
hs_bindgen_6a3f2f6242c76931 ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Word64
hs_bindgen_6a3f2f6242c76931 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_6a3f2f6242c76931_base (BG.toFFIType x0))
{-| Returns the uint64_t value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a ubigint
__Returns:__ uint64_t
__C declaration:__ @duckdb_get_uint64@
__defined at:__ @duckdb.h 9005:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uint64 ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a ubigint
__C declaration:__ @val@
-}
-> IO HsBindgen.Runtime.LibC.Word64
c_duckdb_get_uint64 = hs_bindgen_6a3f2f6242c76931
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_hugeint@
foreign import ccall safe "hs_bindgen_1c6181d93fbc8796" hs_bindgen_1c6181d93fbc8796_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_hugeint@
hs_bindgen_1c6181d93fbc8796 ::
DuckDBValue
-> BG.Ptr DuckDBHugeInt
-> IO ()
hs_bindgen_1c6181d93fbc8796 =
\x0 ->
\x1 ->
hs_bindgen_1c6181d93fbc8796_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the hugeint value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a hugeint
__Returns:__ t'DuckDBHugeInt'
__C declaration:__ @duckdb_get_hugeint@
__defined at:__ @duckdb.h 9018:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_hugeint ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a hugeint
__C declaration:__ @val@
-}
-> IO DuckDBHugeInt
c_duckdb_get_hugeint =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_1c6181d93fbc8796 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uhugeint@
foreign import ccall safe "hs_bindgen_b5857fae8dc89273" hs_bindgen_b5857fae8dc89273_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uhugeint@
hs_bindgen_b5857fae8dc89273 ::
DuckDBValue
-> BG.Ptr DuckDBUHugeInt
-> IO ()
hs_bindgen_b5857fae8dc89273 =
\x0 ->
\x1 ->
hs_bindgen_b5857fae8dc89273_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the uhugeint value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a uhugeint
__Returns:__ t'DuckDBUHugeInt'
__C declaration:__ @duckdb_get_uhugeint@
__defined at:__ @duckdb.h 9031:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uhugeint ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a uhugeint
__C declaration:__ @val@
-}
-> IO DuckDBUHugeInt
c_duckdb_get_uhugeint =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_b5857fae8dc89273 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bignum@
foreign import ccall safe "hs_bindgen_74fbc7e89c0460ed" hs_bindgen_74fbc7e89c0460ed_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bignum@
hs_bindgen_74fbc7e89c0460ed ::
DuckDBValue
-> BG.Ptr DuckDBBignum
-> IO ()
hs_bindgen_74fbc7e89c0460ed =
\x0 ->
\x1 ->
hs_bindgen_74fbc7e89c0460ed_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBBignum' value of the given value. The @data@ field must be destroyed with @'c_duckdb_free'@ .
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a BIGNUM
__Returns:__ t'DuckDBBignum'
__C declaration:__ @duckdb_get_bignum@
__defined at:__ @duckdb.h 9044:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_bignum ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a BIGNUM
__C declaration:__ @val@
-}
-> IO DuckDBBignum
c_duckdb_get_bignum =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_74fbc7e89c0460ed val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_decimal@
foreign import ccall safe "hs_bindgen_84e4f424589f16de" hs_bindgen_84e4f424589f16de_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_decimal@
hs_bindgen_84e4f424589f16de ::
DuckDBValue
-> BG.Ptr DuckDBDecimal
-> IO ()
hs_bindgen_84e4f424589f16de =
\x0 ->
\x1 ->
hs_bindgen_84e4f424589f16de_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBDecimal' value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a DECIMAL
__Returns:__ t'DuckDBDecimal'
__C declaration:__ @duckdb_get_decimal@
__defined at:__ @duckdb.h 9057:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_decimal ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a DECIMAL
__C declaration:__ @val@
-}
-> IO DuckDBDecimal
c_duckdb_get_decimal =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_84e4f424589f16de val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_float@
foreign import ccall safe "hs_bindgen_615a351162dd38b0" hs_bindgen_615a351162dd38b0_base ::
BG.Ptr BG.Void
-> IO BG.CFloat
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_float@
hs_bindgen_615a351162dd38b0 ::
DuckDBValue
-> IO BG.CFloat
hs_bindgen_615a351162dd38b0 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_615a351162dd38b0_base (BG.toFFIType x0))
{-| Returns the float value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a float
__Returns:__ float
__C declaration:__ @duckdb_get_float@
__defined at:__ @duckdb.h 9070:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_float ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a float
__C declaration:__ @val@
-}
-> IO BG.CFloat
c_duckdb_get_float = hs_bindgen_615a351162dd38b0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_double@
foreign import ccall safe "hs_bindgen_3b54cae80b78d7a6" hs_bindgen_3b54cae80b78d7a6_base ::
BG.Ptr BG.Void
-> IO BG.CDouble
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_double@
hs_bindgen_3b54cae80b78d7a6 ::
DuckDBValue
-> IO BG.CDouble
hs_bindgen_3b54cae80b78d7a6 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3b54cae80b78d7a6_base (BG.toFFIType x0))
{-| Returns the double value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a double
__Returns:__ double
__C declaration:__ @duckdb_get_double@
__defined at:__ @duckdb.h 9083:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_double ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a double
__C declaration:__ @val@
-}
-> IO BG.CDouble
c_duckdb_get_double = hs_bindgen_3b54cae80b78d7a6
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_date@
foreign import ccall safe "hs_bindgen_022973e5005ce823" hs_bindgen_022973e5005ce823_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_date@
hs_bindgen_022973e5005ce823 ::
DuckDBValue
-> BG.Ptr DuckDBDate
-> IO ()
hs_bindgen_022973e5005ce823 =
\x0 ->
\x1 ->
hs_bindgen_022973e5005ce823_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the date value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a date
__Returns:__ t'DuckDBDate'
__C declaration:__ @duckdb_get_date@
__defined at:__ @duckdb.h 9096:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_date ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a date
__C declaration:__ @val@
-}
-> IO DuckDBDate
c_duckdb_get_date =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_022973e5005ce823 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time@
foreign import ccall safe "hs_bindgen_d90d0681c12eaba7" hs_bindgen_d90d0681c12eaba7_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time@
hs_bindgen_d90d0681c12eaba7 ::
DuckDBValue
-> BG.Ptr DuckDBTime
-> IO ()
hs_bindgen_d90d0681c12eaba7 =
\x0 ->
\x1 ->
hs_bindgen_d90d0681c12eaba7_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the time value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a time
__Returns:__ t'DuckDBTime'
__C declaration:__ @duckdb_get_time@
__defined at:__ @duckdb.h 9109:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_time ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a time
__C declaration:__ @val@
-}
-> IO DuckDBTime
c_duckdb_get_time =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_d90d0681c12eaba7 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time_ns@
foreign import ccall safe "hs_bindgen_5e6ada8cebf82fef" hs_bindgen_5e6ada8cebf82fef_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time_ns@
hs_bindgen_5e6ada8cebf82fef ::
DuckDBValue
-> BG.Ptr DuckDBTimeNs
-> IO ()
hs_bindgen_5e6ada8cebf82fef =
\x0 ->
\x1 ->
hs_bindgen_5e6ada8cebf82fef_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the time_ns value of the given value.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@val@__]: A t'DuckDBValue' containing a time_ns
__Returns:__ t'DuckDBTimeNs'
__C declaration:__ @duckdb_get_time_ns@
__defined at:__ @duckdb.h 9123:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_time_ns ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a time_ns
__C declaration:__ @val@
-}
-> IO DuckDBTimeNs
c_duckdb_get_time_ns =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_5e6ada8cebf82fef val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time_tz@
foreign import ccall safe "hs_bindgen_d756e565b6bce9f1" hs_bindgen_d756e565b6bce9f1_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_time_tz@
hs_bindgen_d756e565b6bce9f1 ::
DuckDBValue
-> BG.Ptr DuckDBTimeTz
-> IO ()
hs_bindgen_d756e565b6bce9f1 =
\x0 ->
\x1 ->
hs_bindgen_d756e565b6bce9f1_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the time_tz value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a time_tz
__Returns:__ t'DuckDBTimeTz'
__C declaration:__ @duckdb_get_time_tz@
__defined at:__ @duckdb.h 9136:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_time_tz ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a time_tz
__C declaration:__ @val@
-}
-> IO DuckDBTimeTz
c_duckdb_get_time_tz =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_d756e565b6bce9f1 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp@
foreign import ccall safe "hs_bindgen_d9df571bb20b335a" hs_bindgen_d9df571bb20b335a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp@
hs_bindgen_d9df571bb20b335a ::
DuckDBValue
-> BG.Ptr DuckDBTimestamp
-> IO ()
hs_bindgen_d9df571bb20b335a =
\x0 ->
\x1 ->
hs_bindgen_d9df571bb20b335a_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the TIMESTAMP value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP
__Returns:__ t'DuckDBTimestamp'
__C declaration:__ @duckdb_get_timestamp@
__defined at:__ @duckdb.h 9149:31@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP
__C declaration:__ @val@
-}
-> IO DuckDBTimestamp
c_duckdb_get_timestamp =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_d9df571bb20b335a val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_tz@
foreign import ccall safe "hs_bindgen_b755f602a03467f7" hs_bindgen_b755f602a03467f7_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_tz@
hs_bindgen_b755f602a03467f7 ::
DuckDBValue
-> BG.Ptr DuckDBTimestamp
-> IO ()
hs_bindgen_b755f602a03467f7 =
\x0 ->
\x1 ->
hs_bindgen_b755f602a03467f7_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the TIMESTAMP_TZ value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_TZ
__Returns:__ t'DuckDBTimestamp'
__C declaration:__ @duckdb_get_timestamp_tz@
__defined at:__ @duckdb.h 9162:31@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp_tz ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_TZ
__C declaration:__ @val@
-}
-> IO DuckDBTimestamp
c_duckdb_get_timestamp_tz =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_b755f602a03467f7 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_tz_ns@
foreign import ccall safe "hs_bindgen_c0cc85ed29a0cab5" hs_bindgen_c0cc85ed29a0cab5_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_tz_ns@
hs_bindgen_c0cc85ed29a0cab5 ::
DuckDBValue
-> BG.Ptr DuckDBTimestampNs
-> IO ()
hs_bindgen_c0cc85ed29a0cab5 =
\x0 ->
\x1 ->
hs_bindgen_c0cc85ed29a0cab5_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the TIMESTAMP_TZ_NS value of the given value.
history:
* unstable: v1.5.4
* stable: v1.5.6
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_TZ_NS
__Returns:__ t'DuckDBTimestampNs'
__C declaration:__ @duckdb_get_timestamp_tz_ns@
__defined at:__ @duckdb.h 9176:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp_tz_ns ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_TZ_NS
__C declaration:__ @val@
-}
-> IO DuckDBTimestampNs
c_duckdb_get_timestamp_tz_ns =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_c0cc85ed29a0cab5 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_s@
foreign import ccall safe "hs_bindgen_94661a923251c477" hs_bindgen_94661a923251c477_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_s@
hs_bindgen_94661a923251c477 ::
DuckDBValue
-> BG.Ptr DuckDBTimestampS
-> IO ()
hs_bindgen_94661a923251c477 =
\x0 ->
\x1 ->
hs_bindgen_94661a923251c477_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBTimestampS' value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_S
__Returns:__ t'DuckDBTimestampS'
__C declaration:__ @duckdb_get_timestamp_s@
__defined at:__ @duckdb.h 9189:33@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp_s ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_S
__C declaration:__ @val@
-}
-> IO DuckDBTimestampS
c_duckdb_get_timestamp_s =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_94661a923251c477 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_ms@
foreign import ccall safe "hs_bindgen_ef716f499f99907a" hs_bindgen_ef716f499f99907a_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_ms@
hs_bindgen_ef716f499f99907a ::
DuckDBValue
-> BG.Ptr DuckDBTimestampMs
-> IO ()
hs_bindgen_ef716f499f99907a =
\x0 ->
\x1 ->
hs_bindgen_ef716f499f99907a_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBTimestampMs' value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_MS
__Returns:__ t'DuckDBTimestampMs'
__C declaration:__ @duckdb_get_timestamp_ms@
__defined at:__ @duckdb.h 9202:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp_ms ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_MS
__C declaration:__ @val@
-}
-> IO DuckDBTimestampMs
c_duckdb_get_timestamp_ms =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_ef716f499f99907a val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_ns@
foreign import ccall safe "hs_bindgen_7b25b0eed2d77001" hs_bindgen_7b25b0eed2d77001_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_timestamp_ns@
hs_bindgen_7b25b0eed2d77001 ::
DuckDBValue
-> BG.Ptr DuckDBTimestampNs
-> IO ()
hs_bindgen_7b25b0eed2d77001 =
\x0 ->
\x1 ->
hs_bindgen_7b25b0eed2d77001_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBTimestampNs' value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_NS
__Returns:__ t'DuckDBTimestampNs'
__C declaration:__ @duckdb_get_timestamp_ns@
__defined at:__ @duckdb.h 9215:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_timestamp_ns ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a TIMESTAMP_NS
__C declaration:__ @val@
-}
-> IO DuckDBTimestampNs
c_duckdb_get_timestamp_ns =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_7b25b0eed2d77001 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_interval@
foreign import ccall safe "hs_bindgen_988b285b39137a9f" hs_bindgen_988b285b39137a9f_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_interval@
hs_bindgen_988b285b39137a9f ::
DuckDBValue
-> BG.Ptr DuckDBInterval
-> IO ()
hs_bindgen_988b285b39137a9f =
\x0 ->
\x1 ->
hs_bindgen_988b285b39137a9f_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the interval value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a interval
__Returns:__ t'DuckDBInterval'
__C declaration:__ @duckdb_get_interval@
__defined at:__ @duckdb.h 9228:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_interval ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a interval
__C declaration:__ @val@
-}
-> IO DuckDBInterval
c_duckdb_get_interval =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_988b285b39137a9f val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_value_type@
foreign import ccall safe "hs_bindgen_068c34db6e614c9a" hs_bindgen_068c34db6e614c9a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_value_type@
hs_bindgen_068c34db6e614c9a ::
DuckDBValue
-> IO DuckDBLogicalType
hs_bindgen_068c34db6e614c9a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_068c34db6e614c9a_base (BG.toFFIType x0))
{-| Returns the type of the given value. The type is valid as long as the value is not destroyed. The type itself must not be destroyed.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue'
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_get_value_type@
__defined at:__ @duckdb.h 9242:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_value_type ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue'
__C declaration:__ @val@
-}
-> IO DuckDBLogicalType
c_duckdb_get_value_type = hs_bindgen_068c34db6e614c9a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_blob@
foreign import ccall safe "hs_bindgen_26638b96308a8043" hs_bindgen_26638b96308a8043_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_blob@
hs_bindgen_26638b96308a8043 ::
DuckDBValue
-> BG.Ptr DuckDBBlob
-> IO ()
hs_bindgen_26638b96308a8043 =
\x0 ->
\x1 ->
hs_bindgen_26638b96308a8043_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Returns the blob value of the given value.
history:
* stable: v1.1.0
[__@val@__]: A t'DuckDBValue' containing a blob
__Returns:__ t'DuckDBBlob'
__C declaration:__ @duckdb_get_blob@
__defined at:__ @duckdb.h 9255:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_blob ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a blob
__C declaration:__ @val@
-}
-> IO DuckDBBlob
c_duckdb_get_blob =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_26638b96308a8043 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bit@
foreign import ccall safe "hs_bindgen_450ea2e919fd9d26" hs_bindgen_450ea2e919fd9d26_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_bit@
hs_bindgen_450ea2e919fd9d26 ::
DuckDBValue
-> BG.Ptr DuckDBBit
-> IO ()
hs_bindgen_450ea2e919fd9d26 =
\x0 ->
\x1 ->
hs_bindgen_450ea2e919fd9d26_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns the t'DuckDBBit' value of the given value. The @data@ field must be destroyed with @'c_duckdb_free'@ .
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a BIT
__Returns:__ t'DuckDBBit'
__C declaration:__ @duckdb_get_bit@
__defined at:__ @duckdb.h 9268:25@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_bit ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a BIT
__C declaration:__ @val@
-}
-> IO DuckDBBit
c_duckdb_get_bit =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_450ea2e919fd9d26 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uuid@
foreign import ccall safe "hs_bindgen_4799e633564120e9" hs_bindgen_4799e633564120e9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_uuid@
hs_bindgen_4799e633564120e9 ::
DuckDBValue
-> BG.Ptr DuckDBUHugeInt
-> IO ()
hs_bindgen_4799e633564120e9 =
\x0 ->
\x1 ->
hs_bindgen_4799e633564120e9_base (BG.toFFIType x0) (BG.toFFIType x1)
{-|
Returns a t'DuckDBUHugeInt' representing the UUID value of the given value.
history:
* stable: v1.2.0
[__@val@__]: A t'DuckDBValue' containing a UUID
__Returns:__ t'DuckDBUHugeInt'
__C declaration:__ @duckdb_get_uuid@
__defined at:__ @duckdb.h 9281:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_uuid ::
DuckDBValue
{- ^
[__@val@__]: A t'DuckDBValue' containing a UUID
__C declaration:__ @val@
-}
-> IO DuckDBUHugeInt
c_duckdb_get_uuid =
\val0 ->
BG.allocaAndPeek (\res1 ->
hs_bindgen_4799e633564120e9 val0 res1)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_varchar@
foreign import ccall safe "hs_bindgen_06b79afac44ffc3b" hs_bindgen_06b79afac44ffc3b_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_varchar@
hs_bindgen_06b79afac44ffc3b ::
DuckDBValue
-> IO (BG.Ptr BG.CChar)
hs_bindgen_06b79afac44ffc3b =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_06b79afac44ffc3b_base (BG.toFFIType x0))
{-| Obtains a string representation of the given value. The result must be destroyed with @'c_duckdb_free'@ .
history:
* stable: v0.3.3
[__@value@__]: The value
__Returns:__ char*
__C declaration:__ @duckdb_get_varchar@
__defined at:__ @duckdb.h 9294:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_varchar ::
DuckDBValue
{- ^
[__@value@__]: The value
__C declaration:__ @value@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_get_varchar = hs_bindgen_06b79afac44ffc3b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_struct_value@
foreign import ccall safe "hs_bindgen_95eb7d0f1c818e7b" hs_bindgen_95eb7d0f1c818e7b_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_struct_value@
hs_bindgen_95eb7d0f1c818e7b ::
DuckDBLogicalType
-> BG.Ptr DuckDBValue
-> IO DuckDBValue
hs_bindgen_95eb7d0f1c818e7b =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_95eb7d0f1c818e7b_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a struct value from a type and an array of values. Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v0.10.0
[__@type@__]: The type of the struct
[__@values@__]: The values for the struct fields
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_struct_value@
__defined at:__ @duckdb.h 9308:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_struct_value ::
DuckDBLogicalType
{- ^
[__@type@__]: The type of the struct
__C declaration:__ @type@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@values@__]: The values for the struct fields
__C declaration:__ @values@
-}
-> IO DuckDBValue
c_duckdb_create_struct_value =
hs_bindgen_95eb7d0f1c818e7b
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_list_value@
foreign import ccall safe "hs_bindgen_8b254090503c2df0" hs_bindgen_8b254090503c2df0_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_list_value@
hs_bindgen_8b254090503c2df0 ::
DuckDBLogicalType
-> BG.Ptr DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_8b254090503c2df0 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_8b254090503c2df0_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Creates a list value from a child (element) type and an array of values of length @value_count@ . Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v0.10.0
[__@type@__]: The type of the list
[__@values@__]: The values for the list
[__@value_count@__]: The number of values in the list
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_list_value@
__defined at:__ @duckdb.h 9324:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_list_value ::
DuckDBLogicalType
{- ^
[__@type@__]: The type of the list
__C declaration:__ @type@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@values@__]: The values for the list
__C declaration:__ @values@
-}
-> DuckDBIdx
{- ^
[__@value_count@__]: The number of values in the list
__C declaration:__ @value_count@
-}
-> IO DuckDBValue
c_duckdb_create_list_value =
hs_bindgen_8b254090503c2df0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_array_value@
foreign import ccall safe "hs_bindgen_d1f6dce6518d2db5" hs_bindgen_d1f6dce6518d2db5_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_array_value@
hs_bindgen_d1f6dce6518d2db5 ::
DuckDBLogicalType
-> BG.Ptr DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_d1f6dce6518d2db5 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_d1f6dce6518d2db5_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Creates an array value from a child (element) type and an array of values of length @value_count@ . Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v0.10.1
[__@type@__]: The type of the array
[__@values@__]: The values for the array
[__@value_count@__]: The number of values in the array
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_array_value@
__defined at:__ @duckdb.h 9340:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_array_value ::
DuckDBLogicalType
{- ^
[__@type@__]: The type of the array
__C declaration:__ @type@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@values@__]: The values for the array
__C declaration:__ @values@
-}
-> DuckDBIdx
{- ^
[__@value_count@__]: The number of values in the array
__C declaration:__ @value_count@
-}
-> IO DuckDBValue
c_duckdb_create_array_value =
hs_bindgen_d1f6dce6518d2db5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_map_value@
foreign import ccall safe "hs_bindgen_fa95b21d02a873be" hs_bindgen_fa95b21d02a873be_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_map_value@
hs_bindgen_fa95b21d02a873be ::
DuckDBLogicalType
-> BG.Ptr DuckDBValue
-> BG.Ptr DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_fa95b21d02a873be =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
fmap BG.fromFFIType (hs_bindgen_fa95b21d02a873be_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3))
{-| Creates a map value from a map type and two arrays, one for the keys and one for the values, each of length @entry_count@ . Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@map_type@__]: The map type
[__@keys@__]: The keys of the map
[__@values@__]: The values of the map
[__@entry_count@__]: The number of entries (key-value pairs) in the map
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_map_value@
__defined at:__ @duckdb.h 9358:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_map_value ::
DuckDBLogicalType
{- ^
[__@map_type@__]: The map type
__C declaration:__ @map_type@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@keys@__]: The keys of the map
__C declaration:__ @keys@
-}
-> BG.Ptr DuckDBValue
{- ^
[__@values@__]: The values of the map
__C declaration:__ @values@
-}
-> DuckDBIdx
{- ^
[__@entry_count@__]: The number of entries (key-value pairs) in the map
__C declaration:__ @entry_count@
-}
-> IO DuckDBValue
c_duckdb_create_map_value =
hs_bindgen_fa95b21d02a873be
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_union_value@
foreign import ccall safe "hs_bindgen_11c281d6e5e06b0d" hs_bindgen_11c281d6e5e06b0d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_union_value@
hs_bindgen_11c281d6e5e06b0d ::
DuckDBLogicalType
-> DuckDBIdx
-> DuckDBValue
-> IO DuckDBValue
hs_bindgen_11c281d6e5e06b0d =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_11c281d6e5e06b0d_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| Creates a union value from a union type, a tag index, and a value. Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@union_type@__]: The union type
[__@tag_index@__]: The index of the tag of the union
[__@value@__]: The value of the union for that tag
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_union_value@
__defined at:__ @duckdb.h 9375:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_union_value ::
DuckDBLogicalType
{- ^
[__@union_type@__]: The union type
__C declaration:__ @union_type@
-}
-> DuckDBIdx
{- ^
[__@tag_index@__]: The index of the tag of the union
__C declaration:__ @tag_index@
-}
-> DuckDBValue
{- ^
[__@value@__]: The value of the union for that tag
__C declaration:__ @value@
-}
-> IO DuckDBValue
c_duckdb_create_union_value =
hs_bindgen_11c281d6e5e06b0d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_size@
foreign import ccall safe "hs_bindgen_997728635cf0ac64" hs_bindgen_997728635cf0ac64_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_size@
hs_bindgen_997728635cf0ac64 ::
DuckDBValue
-> IO DuckDBIdx
hs_bindgen_997728635cf0ac64 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_997728635cf0ac64_base (BG.toFFIType x0))
{-| Returns the number of elements in a MAP value.
history:
* stable: v1.1.0
[__@value@__]: The MAP value.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_get_map_size@
__defined at:__ @duckdb.h 9389:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_map_size ::
DuckDBValue
{- ^
[__@value@__]: The MAP value.
__C declaration:__ @value@
-}
-> IO DuckDBIdx
c_duckdb_get_map_size = hs_bindgen_997728635cf0ac64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_key@
foreign import ccall safe "hs_bindgen_4abc412f4cbf3b1c" hs_bindgen_4abc412f4cbf3b1c_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_key@
hs_bindgen_4abc412f4cbf3b1c ::
DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_4abc412f4cbf3b1c =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_4abc412f4cbf3b1c_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Returns the MAP key at index as a t'DuckDBValue' .
history:
* stable: v1.1.0
[__@value@__]: The MAP value.
[__@index@__]: The index of the key.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_get_map_key@
__defined at:__ @duckdb.h 9403:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_map_key ::
DuckDBValue
{- ^
[__@value@__]: The MAP value.
__C declaration:__ @value@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the key.
__C declaration:__ @index@
-}
-> IO DuckDBValue
c_duckdb_get_map_key = hs_bindgen_4abc412f4cbf3b1c
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_value@
foreign import ccall safe "hs_bindgen_95db52b9cb363226" hs_bindgen_95db52b9cb363226_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_map_value@
hs_bindgen_95db52b9cb363226 ::
DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_95db52b9cb363226 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_95db52b9cb363226_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Returns the MAP value at index as a t'DuckDBValue' .
history:
* stable: v1.1.0
[__@value@__]: The MAP value.
[__@index@__]: The index of the value.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_get_map_value@
__defined at:__ @duckdb.h 9417:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_map_value ::
DuckDBValue
{- ^
[__@value@__]: The MAP value.
__C declaration:__ @value@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the value.
__C declaration:__ @index@
-}
-> IO DuckDBValue
c_duckdb_get_map_value = hs_bindgen_95db52b9cb363226
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_null_value@
foreign import ccall safe "hs_bindgen_816a2cdca59a31ab" hs_bindgen_816a2cdca59a31ab_base ::
BG.Ptr BG.Void
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_is_null_value@
hs_bindgen_816a2cdca59a31ab ::
DuckDBValue
-> IO BG.CBool
hs_bindgen_816a2cdca59a31ab =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_816a2cdca59a31ab_base (BG.toFFIType x0))
{-| Returns whether the value\'s type is SQLNULL or not.
history:
* stable: v1.2.0
[__@value@__]: The value to check.
__Returns:__ bool
__C declaration:__ @duckdb_is_null_value@
__defined at:__ @duckdb.h 9430:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_is_null_value ::
DuckDBValue
{- ^
[__@value@__]: The value to check.
__C declaration:__ @value@
-}
-> IO BG.CBool
c_duckdb_is_null_value = hs_bindgen_816a2cdca59a31ab
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_null_value@
foreign import ccall safe "hs_bindgen_3e293eeed247ba3e" hs_bindgen_3e293eeed247ba3e_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_null_value@
hs_bindgen_3e293eeed247ba3e :: IO DuckDBValue
hs_bindgen_3e293eeed247ba3e =
fmap BG.fromFFIType hs_bindgen_3e293eeed247ba3e_base
{-| Creates a value of type SQLNULL.
history:
* stable: v1.2.0
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_null_value@
__defined at:__ @duckdb.h 9442:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_null_value :: IO DuckDBValue
c_duckdb_create_null_value =
hs_bindgen_3e293eeed247ba3e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_list_size@
foreign import ccall safe "hs_bindgen_014e65c8024e4108" hs_bindgen_014e65c8024e4108_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_list_size@
hs_bindgen_014e65c8024e4108 ::
DuckDBValue
-> IO DuckDBIdx
hs_bindgen_014e65c8024e4108 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_014e65c8024e4108_base (BG.toFFIType x0))
{-| Returns the number of elements in a LIST value.
history:
* stable: v1.2.0
[__@value@__]: The LIST value.
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_get_list_size@
__defined at:__ @duckdb.h 9455:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_list_size ::
DuckDBValue
{- ^
[__@value@__]: The LIST value.
__C declaration:__ @value@
-}
-> IO DuckDBIdx
c_duckdb_get_list_size = hs_bindgen_014e65c8024e4108
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_list_child@
foreign import ccall safe "hs_bindgen_e73a36f9bfcfe5a0" hs_bindgen_e73a36f9bfcfe5a0_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_list_child@
hs_bindgen_e73a36f9bfcfe5a0 ::
DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_e73a36f9bfcfe5a0 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_e73a36f9bfcfe5a0_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Returns the LIST child at index as a t'DuckDBValue' .
history:
* stable: v1.2.0
[__@value@__]: The LIST value.
[__@index@__]: The index of the child.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_get_list_child@
__defined at:__ @duckdb.h 9469:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_list_child ::
DuckDBValue
{- ^
[__@value@__]: The LIST value.
__C declaration:__ @value@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the child.
__C declaration:__ @index@
-}
-> IO DuckDBValue
c_duckdb_get_list_child = hs_bindgen_e73a36f9bfcfe5a0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_enum_value@
foreign import ccall safe "hs_bindgen_76712e93d9d2ee84" hs_bindgen_76712e93d9d2ee84_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_enum_value@
hs_bindgen_76712e93d9d2ee84 ::
DuckDBLogicalType
-> HsBindgen.Runtime.LibC.Word64
-> IO DuckDBValue
hs_bindgen_76712e93d9d2ee84 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_76712e93d9d2ee84_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates an enum value from a type and a value. Must be destroyed with @'c_duckdb_destroy_value'@ .
history:
* stable: v1.2.0
[__@type@__]: The type of the enum
[__@value@__]: The value for the enum
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_create_enum_value@
__defined at:__ @duckdb.h 9483:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_enum_value ::
DuckDBLogicalType
{- ^
[__@type@__]: The type of the enum
__C declaration:__ @type@
-}
-> HsBindgen.Runtime.LibC.Word64
{- ^
[__@value@__]: The value for the enum
__C declaration:__ @value@
-}
-> IO DuckDBValue
c_duckdb_create_enum_value =
hs_bindgen_76712e93d9d2ee84
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_enum_value@
foreign import ccall safe "hs_bindgen_f88bdd4fc6a804da" hs_bindgen_f88bdd4fc6a804da_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_enum_value@
hs_bindgen_f88bdd4fc6a804da ::
DuckDBValue
-> IO HsBindgen.Runtime.LibC.Word64
hs_bindgen_f88bdd4fc6a804da =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_f88bdd4fc6a804da_base (BG.toFFIType x0))
{-| Returns the enum value of the given value.
history:
* stable: v1.2.0
[__@value@__]: A t'DuckDBValue' containing an enum
__Returns:__ uint64_t
__C declaration:__ @duckdb_get_enum_value@
__defined at:__ @duckdb.h 9496:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_enum_value ::
DuckDBValue
{- ^
[__@value@__]: A t'DuckDBValue' containing an enum
__C declaration:__ @value@
-}
-> IO HsBindgen.Runtime.LibC.Word64
c_duckdb_get_enum_value = hs_bindgen_f88bdd4fc6a804da
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_struct_child@
foreign import ccall safe "hs_bindgen_bd541a73d7b73adb" hs_bindgen_bd541a73d7b73adb_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_get_struct_child@
hs_bindgen_bd541a73d7b73adb ::
DuckDBValue
-> DuckDBIdx
-> IO DuckDBValue
hs_bindgen_bd541a73d7b73adb =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_bd541a73d7b73adb_base (BG.toFFIType x0) (BG.toFFIType x1))
{-|
Returns the STRUCT child at index as a t'DuckDBValue' .
history:
* stable: v1.2.0
[__@value@__]: The STRUCT value.
[__@index@__]: The index of the child.
__Returns:__ t'DuckDBValue'
__C declaration:__ @duckdb_get_struct_child@
__defined at:__ @duckdb.h 9510:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_get_struct_child ::
DuckDBValue
{- ^
[__@value@__]: The STRUCT value.
__C declaration:__ @value@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The index of the child.
__C declaration:__ @index@
-}
-> IO DuckDBValue
c_duckdb_get_struct_child =
hs_bindgen_bd541a73d7b73adb
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_to_string@
foreign import ccall safe "hs_bindgen_3154db7693be8381" hs_bindgen_3154db7693be8381_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_to_string@
hs_bindgen_3154db7693be8381 ::
DuckDBValue
-> IO (BG.Ptr BG.CChar)
hs_bindgen_3154db7693be8381 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_3154db7693be8381_base (BG.toFFIType x0))
{-| Returns the SQL string representation of the given value.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@value@__]: A t'DuckDBValue' .
__Returns:__ char*
__C declaration:__ @duckdb_value_to_string@
__defined at:__ @duckdb.h 9524:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_to_string ::
DuckDBValue
{- ^
[__@value@__]: A t'DuckDBValue' .
__C declaration:__ @value@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_value_to_string =
hs_bindgen_3154db7693be8381
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_boolean@
foreign import ccall safe "hs_bindgen_6b857667aad1bb1a" hs_bindgen_6b857667aad1bb1a_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_boolean@
hs_bindgen_6b857667aad1bb1a ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO BG.CBool
hs_bindgen_6b857667aad1bb1a =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_6b857667aad1bb1a_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ bool
__C declaration:__ @duckdb_value_boolean@
__defined at:__ @duckdb.h 9540:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_boolean ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO BG.CBool
c_duckdb_value_boolean = hs_bindgen_6b857667aad1bb1a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int8@
foreign import ccall safe "hs_bindgen_31a9050aade5103f" hs_bindgen_31a9050aade5103f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Int8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int8@
hs_bindgen_31a9050aade5103f ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Int8
hs_bindgen_31a9050aade5103f =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_31a9050aade5103f_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ int8_t
__C declaration:__ @duckdb_value_int8@
__defined at:__ @duckdb.h 9556:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_int8 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Int8
c_duckdb_value_int8 = hs_bindgen_31a9050aade5103f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int16@
foreign import ccall safe "hs_bindgen_8f6b84207e5703cf" hs_bindgen_8f6b84207e5703cf_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Int16
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int16@
hs_bindgen_8f6b84207e5703cf ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Int16
hs_bindgen_8f6b84207e5703cf =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_8f6b84207e5703cf_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ int16_t
__C declaration:__ @duckdb_value_int16@
__defined at:__ @duckdb.h 9572:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_int16 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Int16
c_duckdb_value_int16 = hs_bindgen_8f6b84207e5703cf
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int32@
foreign import ccall safe "hs_bindgen_2a73adc304a9275f" hs_bindgen_2a73adc304a9275f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Int32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int32@
hs_bindgen_2a73adc304a9275f ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Int32
hs_bindgen_2a73adc304a9275f =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_2a73adc304a9275f_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ int32_t
__C declaration:__ @duckdb_value_int32@
__defined at:__ @duckdb.h 9588:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_int32 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Int32
c_duckdb_value_int32 = hs_bindgen_2a73adc304a9275f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int64@
foreign import ccall safe "hs_bindgen_666edda1d74b4198" hs_bindgen_666edda1d74b4198_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Int64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_int64@
hs_bindgen_666edda1d74b4198 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_666edda1d74b4198 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_666edda1d74b4198_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ int64_t
__C declaration:__ @duckdb_value_int64@
__defined at:__ @duckdb.h 9604:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_int64 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Int64
c_duckdb_value_int64 = hs_bindgen_666edda1d74b4198
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_hugeint@
foreign import ccall safe "hs_bindgen_02dd46eda1283da9" hs_bindgen_02dd46eda1283da9_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_hugeint@
hs_bindgen_02dd46eda1283da9 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBHugeInt
-> IO ()
hs_bindgen_02dd46eda1283da9 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_02dd46eda1283da9_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBHugeInt'
__C declaration:__ @duckdb_value_hugeint@
__defined at:__ @duckdb.h 9620:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_hugeint ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBHugeInt
c_duckdb_value_hugeint =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_02dd46eda1283da9 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uhugeint@
foreign import ccall safe "hs_bindgen_3b48fdeb7cde3ab3" hs_bindgen_3b48fdeb7cde3ab3_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uhugeint@
hs_bindgen_3b48fdeb7cde3ab3 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBUHugeInt
-> IO ()
hs_bindgen_3b48fdeb7cde3ab3 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_3b48fdeb7cde3ab3_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.10.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBUHugeInt'
__C declaration:__ @duckdb_value_uhugeint@
__defined at:__ @duckdb.h 9636:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_uhugeint ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBUHugeInt
c_duckdb_value_uhugeint =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_3b48fdeb7cde3ab3 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_decimal@
foreign import ccall safe "hs_bindgen_bc05565e60bda0c6" hs_bindgen_bc05565e60bda0c6_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_decimal@
hs_bindgen_bc05565e60bda0c6 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBDecimal
-> IO ()
hs_bindgen_bc05565e60bda0c6 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_bc05565e60bda0c6_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.3.3
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBDecimal'
__C declaration:__ @duckdb_value_decimal@
__defined at:__ @duckdb.h 9652:29@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_decimal ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBDecimal
c_duckdb_value_decimal =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_bc05565e60bda0c6 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint8@
foreign import ccall safe "hs_bindgen_fdfcd21851e7aa44" hs_bindgen_fdfcd21851e7aa44_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word8
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint8@
hs_bindgen_fdfcd21851e7aa44 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Word8
hs_bindgen_fdfcd21851e7aa44 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_fdfcd21851e7aa44_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.5
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ uint8_t
__C declaration:__ @duckdb_value_uint8@
__defined at:__ @duckdb.h 9668:22@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_uint8 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Word8
c_duckdb_value_uint8 = hs_bindgen_fdfcd21851e7aa44
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint16@
foreign import ccall safe "hs_bindgen_33587e7ddcd16a45" hs_bindgen_33587e7ddcd16a45_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word16
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint16@
hs_bindgen_33587e7ddcd16a45 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_33587e7ddcd16a45 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_33587e7ddcd16a45_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.5
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ uint16_t
__C declaration:__ @duckdb_value_uint16@
__defined at:__ @duckdb.h 9684:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_uint16 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Word16
c_duckdb_value_uint16 = hs_bindgen_33587e7ddcd16a45
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint32@
foreign import ccall safe "hs_bindgen_7af7c542181749f0" hs_bindgen_7af7c542181749f0_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint32@
hs_bindgen_7af7c542181749f0 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_7af7c542181749f0 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_7af7c542181749f0_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.5
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ uint32_t
__C declaration:__ @duckdb_value_uint32@
__defined at:__ @duckdb.h 9700:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_uint32 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Word32
c_duckdb_value_uint32 = hs_bindgen_7af7c542181749f0
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint64@
foreign import ccall safe "hs_bindgen_30ad3196e505ee32" hs_bindgen_30ad3196e505ee32_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_uint64@
hs_bindgen_30ad3196e505ee32 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO HsBindgen.Runtime.LibC.Word64
hs_bindgen_30ad3196e505ee32 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_30ad3196e505ee32_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.5
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ uint64_t
__C declaration:__ @duckdb_value_uint64@
__defined at:__ @duckdb.h 9716:23@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_uint64 ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO HsBindgen.Runtime.LibC.Word64
c_duckdb_value_uint64 = hs_bindgen_30ad3196e505ee32
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_float@
foreign import ccall safe "hs_bindgen_848e3a7b82d399ae" hs_bindgen_848e3a7b82d399ae_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CFloat
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_float@
hs_bindgen_848e3a7b82d399ae ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO BG.CFloat
hs_bindgen_848e3a7b82d399ae =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_848e3a7b82d399ae_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ float
__C declaration:__ @duckdb_value_float@
__defined at:__ @duckdb.h 9732:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_float ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO BG.CFloat
c_duckdb_value_float = hs_bindgen_848e3a7b82d399ae
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_double@
foreign import ccall safe "hs_bindgen_80756391f00963b4" hs_bindgen_80756391f00963b4_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CDouble
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_double@
hs_bindgen_80756391f00963b4 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO BG.CDouble
hs_bindgen_80756391f00963b4 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_80756391f00963b4_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ double
__C declaration:__ @duckdb_value_double@
__defined at:__ @duckdb.h 9748:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_double ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO BG.CDouble
c_duckdb_value_double = hs_bindgen_80756391f00963b4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_date@
foreign import ccall safe "hs_bindgen_b01230d807dca469" hs_bindgen_b01230d807dca469_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_date@
hs_bindgen_b01230d807dca469 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBDate
-> IO ()
hs_bindgen_b01230d807dca469 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_b01230d807dca469_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBDate'
__C declaration:__ @duckdb_value_date@
__defined at:__ @duckdb.h 9764:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_date ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBDate
c_duckdb_value_date =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_b01230d807dca469 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_time@
foreign import ccall safe "hs_bindgen_18390c0158b2c517" hs_bindgen_18390c0158b2c517_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_time@
hs_bindgen_18390c0158b2c517 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBTime
-> IO ()
hs_bindgen_18390c0158b2c517 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_18390c0158b2c517_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBTime'
__C declaration:__ @duckdb_value_time@
__defined at:__ @duckdb.h 9780:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_time ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBTime
c_duckdb_value_time =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_18390c0158b2c517 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_timestamp@
foreign import ccall safe "hs_bindgen_bd4e0af7e013790b" hs_bindgen_bd4e0af7e013790b_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_timestamp@
hs_bindgen_bd4e0af7e013790b ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBTimestamp
-> IO ()
hs_bindgen_bd4e0af7e013790b =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_bd4e0af7e013790b_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBTimestamp'
__C declaration:__ @duckdb_value_timestamp@
__defined at:__ @duckdb.h 9796:31@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_timestamp ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBTimestamp
c_duckdb_value_timestamp =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_bd4e0af7e013790b result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_interval@
foreign import ccall safe "hs_bindgen_646a763945377be5" hs_bindgen_646a763945377be5_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_interval@
hs_bindgen_646a763945377be5 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBInterval
-> IO ()
hs_bindgen_646a763945377be5 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_646a763945377be5_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBInterval'
__C declaration:__ @duckdb_value_interval@
__defined at:__ @duckdb.h 9812:30@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_interval ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBInterval
c_duckdb_value_interval =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_646a763945377be5 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_varchar@
foreign import ccall safe "hs_bindgen_a9ba2c181c1b3356" hs_bindgen_a9ba2c181c1b3356_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_varchar@
hs_bindgen_a9ba2c181c1b3356 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_a9ba2c181c1b3356 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_a9ba2c181c1b3356_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.1.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ char*
__C declaration:__ @duckdb_value_varchar@
__defined at:__ @duckdb.h 9828:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_varchar ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_value_varchar = hs_bindgen_a9ba2c181c1b3356
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_string@
foreign import ccall safe "hs_bindgen_13010e42068fb039" hs_bindgen_13010e42068fb039_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_string@
hs_bindgen_13010e42068fb039 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBString
-> IO ()
hs_bindgen_13010e42068fb039 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_13010e42068fb039_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.6.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBString'
__C declaration:__ @duckdb_value_string@
__defined at:__ @duckdb.h 9844:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_string ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBString
c_duckdb_value_string =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_13010e42068fb039 result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_varchar_internal@
foreign import ccall safe "hs_bindgen_71da9a67e7c01761" hs_bindgen_71da9a67e7c01761_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_varchar_internal@
hs_bindgen_71da9a67e7c01761 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO (BG.Ptr BG.CChar)
hs_bindgen_71da9a67e7c01761 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_71da9a67e7c01761_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ char*
__C declaration:__ @duckdb_value_varchar_internal@
__defined at:__ @duckdb.h 9860:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_varchar_internal ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO (BG.Ptr BG.CChar)
c_duckdb_value_varchar_internal =
hs_bindgen_71da9a67e7c01761
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_string_internal@
foreign import ccall safe "hs_bindgen_65b73058a4eafeaa" hs_bindgen_65b73058a4eafeaa_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_string_internal@
hs_bindgen_65b73058a4eafeaa ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBString
-> IO ()
hs_bindgen_65b73058a4eafeaa =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_65b73058a4eafeaa_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.6.0
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBString'
__C declaration:__ @duckdb_value_string_internal@
__defined at:__ @duckdb.h 9876:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_string_internal ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBString
c_duckdb_value_string_internal =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_65b73058a4eafeaa result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_blob@
foreign import ccall safe "hs_bindgen_d9b2a307bf4c994e" hs_bindgen_d9b2a307bf4c994e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_blob@
hs_bindgen_d9b2a307bf4c994e ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> BG.Ptr DuckDBBlob
-> IO ()
hs_bindgen_d9b2a307bf4c994e =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_d9b2a307bf4c994e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.5
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ t'DuckDBBlob'
__C declaration:__ @duckdb_value_blob@
__defined at:__ @duckdb.h 9892:26@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_blob ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO DuckDBBlob
c_duckdb_value_blob =
\result0 ->
\col1 ->
\row2 ->
BG.allocaAndPeek (\res3 ->
hs_bindgen_d9b2a307bf4c994e result0 col1 row2 res3)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_is_null@
foreign import ccall safe "hs_bindgen_4f187070ae13bdb4" hs_bindgen_4f187070ae13bdb4_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_value_is_null@
hs_bindgen_4f187070ae13bdb4 ::
BG.Ptr DuckDBResult
-> DuckDBIdx
-> DuckDBIdx
-> IO BG.CBool
hs_bindgen_4f187070ae13bdb4 =
\x0 ->
\x1 ->
\x2 ->
fmap BG.fromFFIType (hs_bindgen_4f187070ae13bdb4_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2))
{-| __DEPRECATION NOTICE__ : This method is scheduled for removal in a future release.
history:
* stable: v0.2.9
* deprecated: v1.0.0
[__@result@__]:
[__@col@__]:
[__@row@__]:
__Returns:__ bool
__C declaration:__ @duckdb_value_is_null@
__defined at:__ @duckdb.h 9908:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_value_is_null ::
BG.Ptr DuckDBResult
{- ^
[__@result@__]:
__C declaration:__ @result@
-}
-> DuckDBIdx
{- ^
[__@col@__]:
__C declaration:__ @col@
-}
-> DuckDBIdx
{- ^
[__@row@__]:
__C declaration:__ @row@
-}
-> IO BG.CBool
c_duckdb_value_is_null = hs_bindgen_4f187070ae13bdb4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_vector@
foreign import ccall safe "hs_bindgen_5a72a174d3b35592" hs_bindgen_5a72a174d3b35592_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_vector@
hs_bindgen_5a72a174d3b35592 ::
DuckDBLogicalType
-> DuckDBIdx
-> IO DuckDBVector
hs_bindgen_5a72a174d3b35592 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_5a72a174d3b35592_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Creates a flat vector. Must be destroyed with @'c_duckdb_destroy_vector'@ .
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@type@__]: The logical type of the vector.
[__@capacity@__]: The capacity of the vector.
__Returns:__ t'DuckDBVector'
__C declaration:__ @duckdb_create_vector@
__defined at:__ @duckdb.h 9941:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_vector ::
DuckDBLogicalType
{- ^
[__@type@__]: The logical type of the vector.
__C declaration:__ @type@
-}
-> DuckDBIdx
{- ^
[__@capacity@__]: The capacity of the vector.
__C declaration:__ @capacity@
-}
-> IO DuckDBVector
c_duckdb_create_vector = hs_bindgen_5a72a174d3b35592
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_vector@
foreign import ccall safe "hs_bindgen_b7d6d6c4c6a20da5" hs_bindgen_b7d6d6c4c6a20da5_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_vector@
hs_bindgen_b7d6d6c4c6a20da5 ::
BG.Ptr DuckDBVector
-> IO ()
hs_bindgen_b7d6d6c4c6a20da5 =
\x0 ->
hs_bindgen_b7d6d6c4c6a20da5_base (BG.toFFIType x0)
{-| Destroys the vector and de-allocates its memory.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@vector@__]: A pointer to the vector.
__Returns:__ void
__C declaration:__ @duckdb_destroy_vector@
__defined at:__ @duckdb.h 9955:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_vector ::
BG.Ptr DuckDBVector
{- ^
[__@vector@__]: A pointer to the vector.
__C declaration:__ @vector@
-}
-> IO ()
c_duckdb_destroy_vector = hs_bindgen_b7d6d6c4c6a20da5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_column_type@
foreign import ccall safe "hs_bindgen_cf2be23e58c169ae" hs_bindgen_cf2be23e58c169ae_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_column_type@
hs_bindgen_cf2be23e58c169ae ::
DuckDBVector
-> IO DuckDBLogicalType
hs_bindgen_cf2be23e58c169ae =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_cf2be23e58c169ae_base (BG.toFFIType x0))
{-| Retrieves the column type of the specified vector.
The result must be destroyed with @'c_duckdb_destroy_logical_type'@ .
history:
* stable: v0.3.3
[__@vector@__]: The vector get the data from
__Returns:__ t'DuckDBLogicalType'
__C declaration:__ @duckdb_vector_get_column_type@
__defined at:__ @duckdb.h 9970:34@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_get_column_type ::
DuckDBVector
{- ^
[__@vector@__]: The vector get the data from
__C declaration:__ @vector@
-}
-> IO DuckDBLogicalType
c_duckdb_vector_get_column_type =
hs_bindgen_cf2be23e58c169ae
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_data@
foreign import ccall safe "hs_bindgen_07e2e0f2f46d24a5" hs_bindgen_07e2e0f2f46d24a5_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_data@
hs_bindgen_07e2e0f2f46d24a5 ::
DuckDBVector
-> IO (BG.Ptr BG.Void)
hs_bindgen_07e2e0f2f46d24a5 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_07e2e0f2f46d24a5_base (BG.toFFIType x0))
{-| Retrieves the data pointer of the vector.
The data pointer can be used to read or write values from the vector. How to read or write values depends on the type of the vector.
history:
* stable: v0.3.3
[__@vector@__]: The vector to get the data from
__Returns:__ void*
__C declaration:__ @duckdb_vector_get_data@
__defined at:__ @duckdb.h 9986:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_get_data ::
DuckDBVector
{- ^
[__@vector@__]: The vector to get the data from
__C declaration:__ @vector@
-}
-> IO (BG.Ptr BG.Void)
c_duckdb_vector_get_data =
hs_bindgen_07e2e0f2f46d24a5
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_validity@
foreign import ccall safe "hs_bindgen_28185ea7bb3758c3" hs_bindgen_28185ea7bb3758c3_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_get_validity@
hs_bindgen_28185ea7bb3758c3 ::
DuckDBVector
-> IO (BG.Ptr HsBindgen.Runtime.LibC.Word64)
hs_bindgen_28185ea7bb3758c3 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_28185ea7bb3758c3_base (BG.toFFIType x0))
{-| Retrieves the validity mask pointer of the specified vector.
If all values are valid, this function MIGHT return NULL!
The validity mask is a bitset that signifies null-ness within the data chunk. It is a series of uint64_t values, where each uint64_t value contains validity for 64 tuples. The bit is set to 1 if the value is valid (i.e. not NULL) or 0 if the value is invalid (i.e. NULL).
Validity of a specific value can be obtained like this:
t'DuckDBIdx' entry_idx = row_idx / 64; t'DuckDBIdx' idx_in_entry = row_idx % 64; bool is_valid = validity_mask[entry_idx] & (1 << idx_in_entry);
Alternatively, the (slower) duckdb_validity_row_is_valid function can be used.
history:
* stable: v0.3.3
[__@vector@__]: The vector to get the data from
__Returns:__ uint64_t*
__C declaration:__ @duckdb_vector_get_validity@
__defined at:__ @duckdb.h 10012:24@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_get_validity ::
DuckDBVector
{- ^
[__@vector@__]: The vector to get the data from
__C declaration:__ @vector@
-}
-> IO (BG.Ptr HsBindgen.Runtime.LibC.Word64)
c_duckdb_vector_get_validity =
hs_bindgen_28185ea7bb3758c3
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_ensure_validity_writable@
foreign import ccall safe "hs_bindgen_77e4922622421a6f" hs_bindgen_77e4922622421a6f_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_ensure_validity_writable@
hs_bindgen_77e4922622421a6f ::
DuckDBVector
-> IO ()
hs_bindgen_77e4922622421a6f =
\x0 ->
hs_bindgen_77e4922622421a6f_base (BG.toFFIType x0)
{-| Ensures the validity mask is writable by allocating it.
After this function is called, @'c_duckdb_vector_get_validity'@ will ALWAYS return non-NULL. This allows NULL values to be written to the vector, regardless of whether a validity mask was present before.
history:
* stable: v0.3.3
[__@vector@__]: The vector to alter
__Returns:__ void
__C declaration:__ @duckdb_vector_ensure_validity_writable@
__defined at:__ @duckdb.h 10028:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_ensure_validity_writable ::
DuckDBVector
{- ^
[__@vector@__]: The vector to alter
__C declaration:__ @vector@
-}
-> IO ()
c_duckdb_vector_ensure_validity_writable =
hs_bindgen_77e4922622421a6f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_assign_string_element@
foreign import ccall safe "hs_bindgen_7236c6c4ac76f787" hs_bindgen_7236c6c4ac76f787_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_assign_string_element@
hs_bindgen_7236c6c4ac76f787 ::
DuckDBVector
-> DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> IO ()
hs_bindgen_7236c6c4ac76f787 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_7236c6c4ac76f787_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Assigns a string element in the vector at the specified location. For VARCHAR vectors, the input is validated as UTF-8; if invalid, a NULL value is assigned at that index.
Superseded by @'c_duckdb_unsafe_vector_assign_string_element_len'@ , optionally combined with @'c_duckdb_valid_utf8_check'@ .
history:
* stable: v0.3.3
[__@vector@__]: The vector to alter
[__@index@__]: The row position in the vector to assign the string to
[__@str@__]: The null-terminated string
__Returns:__ void
__C declaration:__ @duckdb_vector_assign_string_element@
__defined at:__ @duckdb.h 10046:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_assign_string_element ::
DuckDBVector
{- ^
[__@vector@__]: The vector to alter
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The row position in the vector to assign the string to
__C declaration:__ @index@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@str@__]: The null-terminated string
__C declaration:__ @str@
-}
-> IO ()
c_duckdb_vector_assign_string_element =
hs_bindgen_7236c6c4ac76f787
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_assign_string_element_len@
foreign import ccall safe "hs_bindgen_d73453c618ddc22f" hs_bindgen_d73453c618ddc22f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_assign_string_element_len@
hs_bindgen_d73453c618ddc22f ::
DuckDBVector
-> DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO ()
hs_bindgen_d73453c618ddc22f =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_d73453c618ddc22f_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| Assigns a string element in the vector at the specified location. For VARCHAR vectors, the input is validated as UTF-8; if invalid, a NULL value is assigned at that index. For BLOB vectors, no validation is performed.
Superseded by @'c_duckdb_unsafe_vector_assign_string_element_len'@ , optionally combined with @'c_duckdb_valid_utf8_check'@ .
history:
* stable: v0.3.3
[__@vector@__]: The vector to alter
[__@index@__]: The row position in the vector to assign the string to
[__@str@__]: The string
[__@str_len@__]: The length of the string (in bytes)
__Returns:__ void
__C declaration:__ @duckdb_vector_assign_string_element_len@
__defined at:__ @duckdb.h 10065:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_assign_string_element_len ::
DuckDBVector
{- ^
[__@vector@__]: The vector to alter
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The row position in the vector to assign the string to
__C declaration:__ @index@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@str@__]: The string
__C declaration:__ @str@
-}
-> DuckDBIdx
{- ^
[__@str_len@__]: The length of the string (in bytes)
__C declaration:__ @str_len@
-}
-> IO ()
c_duckdb_vector_assign_string_element_len =
hs_bindgen_d73453c618ddc22f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_unsafe_vector_assign_string_element_len@
foreign import ccall safe "hs_bindgen_17556343e48a077e" hs_bindgen_17556343e48a077e_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_unsafe_vector_assign_string_element_len@
hs_bindgen_17556343e48a077e ::
DuckDBVector
-> DuckDBIdx
-> PtrConst.PtrConst BG.CChar
-> DuckDBIdx
-> IO ()
hs_bindgen_17556343e48a077e =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
hs_bindgen_17556343e48a077e_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3)
{-| Assigns a string element in the vector at the specified location without UTF-8 validation. The caller is responsible for ensuring the input is valid UTF-8. Use @'c_duckdb_valid_utf8_check'@ to validate strings before calling this function if needed. If the input is known to be valid UTF-8, this function can be called directly for better performance, avoiding the overhead of redundant validation.
history:
* unstable: v1.5.0
* stable: v1.5.6
[__@vector@__]: The vector to alter
[__@index@__]: The row position in the vector to assign the string to
[__@str@__]: The string
[__@str_len@__]: The length of the string (in bytes)
__Returns:__ void
__C declaration:__ @duckdb_unsafe_vector_assign_string_element_len@
__defined at:__ @duckdb.h 10086:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_unsafe_vector_assign_string_element_len ::
DuckDBVector
{- ^
[__@vector@__]: The vector to alter
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The row position in the vector to assign the string to
__C declaration:__ @index@
-}
-> PtrConst.PtrConst BG.CChar
{- ^
[__@str@__]: The string
__C declaration:__ @str@
-}
-> DuckDBIdx
{- ^
[__@str_len@__]: The length of the string (in bytes)
__C declaration:__ @str_len@
-}
-> IO ()
c_duckdb_unsafe_vector_assign_string_element_len =
hs_bindgen_17556343e48a077e
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_get_child@
foreign import ccall safe "hs_bindgen_b10dc3841ec1d1ad" hs_bindgen_b10dc3841ec1d1ad_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_get_child@
hs_bindgen_b10dc3841ec1d1ad ::
DuckDBVector
-> IO DuckDBVector
hs_bindgen_b10dc3841ec1d1ad =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_b10dc3841ec1d1ad_base (BG.toFFIType x0))
{-| Retrieves the child vector of a list vector.
The resulting vector is valid as long as the parent vector is valid.
history:
* stable: v0.3.3
[__@vector@__]: The vector
__Returns:__ t'DuckDBVector'
__C declaration:__ @duckdb_list_vector_get_child@
__defined at:__ @duckdb.h 10102:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_list_vector_get_child ::
DuckDBVector
{- ^
[__@vector@__]: The vector
__C declaration:__ @vector@
-}
-> IO DuckDBVector
c_duckdb_list_vector_get_child =
hs_bindgen_b10dc3841ec1d1ad
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_get_size@
foreign import ccall safe "hs_bindgen_ec3353c36510d274" hs_bindgen_ec3353c36510d274_base ::
BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_get_size@
hs_bindgen_ec3353c36510d274 ::
DuckDBVector
-> IO DuckDBIdx
hs_bindgen_ec3353c36510d274 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_ec3353c36510d274_base (BG.toFFIType x0))
{-| Returns the size of the child vector of the list.
history:
* stable: v0.3.3
[__@vector@__]: The vector
__Returns:__ t'DuckDBIdx'
__C declaration:__ @duckdb_list_vector_get_size@
__defined at:__ @duckdb.h 10115:20@
__exported by:__ @duckdb.h@
-}
c_duckdb_list_vector_get_size ::
DuckDBVector
{- ^
[__@vector@__]: The vector
__C declaration:__ @vector@
-}
-> IO DuckDBIdx
c_duckdb_list_vector_get_size =
hs_bindgen_ec3353c36510d274
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_set_size@
foreign import ccall safe "hs_bindgen_87686fe663edd51f" hs_bindgen_87686fe663edd51f_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_set_size@
hs_bindgen_87686fe663edd51f ::
DuckDBVector
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_87686fe663edd51f =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_87686fe663edd51f_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Sets the size of the underlying child-vector of a list vector. Note that this does NOT reserve the memory in the child buffer, and that it is possible to set a size exceeding the capacity. To set the capacity, use @'c_duckdb_list_vector_reserve'@ .
history:
* stable: v0.7.0
[__@vector@__]: The list vector.
[__@size@__]: The size of the child list.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_list_vector_set_size@
__defined at:__ @duckdb.h 10131:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_list_vector_set_size ::
DuckDBVector
{- ^
[__@vector@__]: The list vector.
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@size@__]: The size of the child list.
__C declaration:__ @size@
-}
-> IO DuckDBState
c_duckdb_list_vector_set_size =
hs_bindgen_87686fe663edd51f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_reserve@
foreign import ccall safe "hs_bindgen_ccc0fe7414005ff4" hs_bindgen_ccc0fe7414005ff4_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CUInt
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_list_vector_reserve@
hs_bindgen_ccc0fe7414005ff4 ::
DuckDBVector
-> DuckDBIdx
-> IO DuckDBState
hs_bindgen_ccc0fe7414005ff4 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_ccc0fe7414005ff4_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Sets the capacity of the underlying child-vector of a list vector. We increment to the next power of two, based on the required capacity. Thus, the capacity might not match the size of the list (capacity >= size), which is set via @'c_duckdb_list_vector_set_size'@ .
history:
* stable: v0.7.0
[__@vector@__]: The list vector.
[__@required_capacity@__]: The child buffer capacity to reserve.
__Returns:__ t'DuckDBState'
__C declaration:__ @duckdb_list_vector_reserve@
__defined at:__ @duckdb.h 10147:27@
__exported by:__ @duckdb.h@
-}
c_duckdb_list_vector_reserve ::
DuckDBVector
{- ^
[__@vector@__]: The list vector.
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@required_capacity@__]: The child buffer capacity to reserve.
__C declaration:__ @required_capacity@
-}
-> IO DuckDBState
c_duckdb_list_vector_reserve =
hs_bindgen_ccc0fe7414005ff4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_vector_get_child@
foreign import ccall safe "hs_bindgen_f99a59b3c10f16bc" hs_bindgen_f99a59b3c10f16bc_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_struct_vector_get_child@
hs_bindgen_f99a59b3c10f16bc ::
DuckDBVector
-> DuckDBIdx
-> IO DuckDBVector
hs_bindgen_f99a59b3c10f16bc =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_f99a59b3c10f16bc_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Retrieves the child vector of a struct vector. The resulting vector is valid as long as the parent vector is valid.
history:
* stable: v0.3.3
[__@vector@__]: The vector
[__@index@__]: The child index
__Returns:__ t'DuckDBVector'
__C declaration:__ @duckdb_struct_vector_get_child@
__defined at:__ @duckdb.h 10161:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_struct_vector_get_child ::
DuckDBVector
{- ^
[__@vector@__]: The vector
__C declaration:__ @vector@
-}
-> DuckDBIdx
{- ^
[__@index@__]: The child index
__C declaration:__ @index@
-}
-> IO DuckDBVector
c_duckdb_struct_vector_get_child =
hs_bindgen_f99a59b3c10f16bc
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_vector_get_child@
foreign import ccall safe "hs_bindgen_2b6cd48bef7c1c5a" hs_bindgen_2b6cd48bef7c1c5a_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_array_vector_get_child@
hs_bindgen_2b6cd48bef7c1c5a ::
DuckDBVector
-> IO DuckDBVector
hs_bindgen_2b6cd48bef7c1c5a =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_2b6cd48bef7c1c5a_base (BG.toFFIType x0))
{-| Retrieves the child vector of an array vector. The resulting vector is valid as long as the parent vector is valid. The resulting vector has the size of the parent vector multiplied by the array size.
history:
* stable: v0.10.1
[__@vector@__]: The vector
__Returns:__ t'DuckDBVector'
__C declaration:__ @duckdb_array_vector_get_child@
__defined at:__ @duckdb.h 10175:28@
__exported by:__ @duckdb.h@
-}
c_duckdb_array_vector_get_child ::
DuckDBVector
{- ^
[__@vector@__]: The vector
__C declaration:__ @vector@
-}
-> IO DuckDBVector
c_duckdb_array_vector_get_child =
hs_bindgen_2b6cd48bef7c1c5a
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_slice_vector@
foreign import ccall safe "hs_bindgen_53d9e13117c90e3f" hs_bindgen_53d9e13117c90e3f_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_slice_vector@
hs_bindgen_53d9e13117c90e3f ::
DuckDBVector
-> DuckDBSelectionVector
-> DuckDBIdx
-> IO ()
hs_bindgen_53d9e13117c90e3f =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_53d9e13117c90e3f_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| Slice a vector with a selection vector. The length of the selection vector must be less than or equal to the length of the vector. Turns the vector into a dictionary vector.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@vector@__]: The vector to slice.
[__@sel@__]: The selection vector.
[__@len@__]: The length of the selection vector.
__Returns:__ void
__C declaration:__ @duckdb_slice_vector@
__defined at:__ @duckdb.h 10192:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_slice_vector ::
DuckDBVector
{- ^
[__@vector@__]: The vector to slice.
__C declaration:__ @vector@
-}
-> DuckDBSelectionVector
{- ^
[__@sel@__]: The selection vector.
__C declaration:__ @sel@
-}
-> DuckDBIdx
{- ^
[__@len@__]: The length of the selection vector.
__C declaration:__ @len@
-}
-> IO ()
c_duckdb_slice_vector = hs_bindgen_53d9e13117c90e3f
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_copy_sel@
foreign import ccall safe "hs_bindgen_d572a377573f3568" hs_bindgen_d572a377573f3568_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_copy_sel@
hs_bindgen_d572a377573f3568 ::
DuckDBVector
-> DuckDBVector
-> DuckDBSelectionVector
-> DuckDBIdx
-> DuckDBIdx
-> DuckDBIdx
-> IO ()
hs_bindgen_d572a377573f3568 =
\x0 ->
\x1 ->
\x2 ->
\x3 ->
\x4 ->
\x5 ->
hs_bindgen_d572a377573f3568_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2) (BG.toFFIType x3) (BG.toFFIType x4) (BG.toFFIType x5)
{-| Copy the src vector to the dst with a selection vector that identifies which indices to copy.
history:
* unstable: v1.4.0
* stable: v1.5.6
[__@src@__]: The vector to copy from.
[__@dst@__]: The vector to copy to.
[__@sel@__]: The selection vector. The length of the selection vector should not be more than the length of the src vector
[__@src_count@__]: The number of entries from selection vector to copy. Think of this as the effective length of the selection vector starting from index 0
[__@src_offset@__]: The offset in the selection vector to copy from (important: actual number of items copied = src_count - src_offset).
[__@dst_offset@__]: The offset in the dst vector to start copying to.
__Returns:__ void
__C declaration:__ @duckdb_vector_copy_sel@
__defined at:__ @duckdb.h 10214:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_copy_sel ::
DuckDBVector
{- ^
[__@src@__]: The vector to copy from.
__C declaration:__ @src@
-}
-> DuckDBVector
{- ^
[__@dst@__]: The vector to copy to.
__C declaration:__ @dst@
-}
-> DuckDBSelectionVector
{- ^
[__@sel@__]: The selection vector. The length of the selection vector should not be more than the length of the src vector
__C declaration:__ @sel@
-}
-> DuckDBIdx
{- ^
[__@src_count@__]: The number of entries from selection vector to copy. Think of this as the effective length of the selection vector starting from index 0
__C declaration:__ @src_count@
-}
-> DuckDBIdx
{- ^
[__@src_offset@__]: The offset in the selection vector to copy from (important: actual number of items copied = src_count - src_offset).
__C declaration:__ @src_offset@
-}
-> DuckDBIdx
{- ^
[__@dst_offset@__]: The offset in the dst vector to start copying to.
__C declaration:__ @dst_offset@
-}
-> IO ()
c_duckdb_vector_copy_sel =
hs_bindgen_d572a377573f3568
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_reference_value@
foreign import ccall safe "hs_bindgen_eff3eb026da85750" hs_bindgen_eff3eb026da85750_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_reference_value@
hs_bindgen_eff3eb026da85750 ::
DuckDBVector
-> DuckDBValue
-> IO ()
hs_bindgen_eff3eb026da85750 =
\x0 ->
\x1 ->
hs_bindgen_eff3eb026da85750_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| Copies the value from @value@ to @vector@ .
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@vector@__]: The receiving vector.
[__@value@__]: The value to copy into the vector.
__Returns:__ void
__C declaration:__ @duckdb_vector_reference_value@
__defined at:__ @duckdb.h 10230:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_reference_value ::
DuckDBVector
{- ^
[__@vector@__]: The receiving vector.
__C declaration:__ @vector@
-}
-> DuckDBValue
{- ^
[__@value@__]: The value to copy into the vector.
__C declaration:__ @value@
-}
-> IO ()
c_duckdb_vector_reference_value =
hs_bindgen_eff3eb026da85750
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_reference_vector@
foreign import ccall safe "hs_bindgen_b59dd1dfed56f6d9" hs_bindgen_b59dd1dfed56f6d9_base ::
BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_vector_reference_vector@
hs_bindgen_b59dd1dfed56f6d9 ::
DuckDBVector
-> DuckDBVector
-> IO ()
hs_bindgen_b59dd1dfed56f6d9 =
\x0 ->
\x1 ->
hs_bindgen_b59dd1dfed56f6d9_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| __C declaration:__ @duckdb_vector_reference_vector@
__defined at:__ @duckdb.h 10245:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_vector_reference_vector ::
DuckDBVector
-- ^ __C declaration:__ @to_vector@
-> DuckDBVector
-- ^ __C declaration:__ @from_vector@
-> IO ()
c_duckdb_vector_reference_vector =
hs_bindgen_b59dd1dfed56f6d9
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_row_is_valid@
foreign import ccall safe "hs_bindgen_951c8fba6822ef9d" hs_bindgen_951c8fba6822ef9d_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_row_is_valid@
hs_bindgen_951c8fba6822ef9d ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
-> DuckDBIdx
-> IO BG.CBool
hs_bindgen_951c8fba6822ef9d =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_951c8fba6822ef9d_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| Changes @to_vector@ to reference `from_vector. After, the vectors share ownership of the data.
history:
* unstable: v1.3.0
* stable: v1.5.6
#if @DUCKDB_API_VERSION_AT_LEAST(0, 3, 3)@ /*! Returns whether or not a row is valid (i.e. not NULL) in the given validity mask.
[__@to_vector@__]: The receiving vector.
[__@from_vector@__]: The vector to reference.
__Returns:__ void */ DUCKDB_C_API void duckdb_vector_reference_vector(duckdb_vector to_vector, duckdb_vector from_vector); #endif
history:
* stable: v0.3.3
[__@validity@__]: The validity mask, as obtained through @'c_duckdb_vector_get_validity'@
[__@row@__]: The row index
__Returns:__ bool
__C declaration:__ @duckdb_validity_row_is_valid@
__defined at:__ @duckdb.h 10259:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_validity_row_is_valid ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
{- ^
[__@validity@__]: The validity mask, as obtained through @'c_duckdb_vector_get_validity'@
__C declaration:__ @validity@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The row index
__C declaration:__ @row@
-}
-> IO BG.CBool
c_duckdb_validity_row_is_valid =
hs_bindgen_951c8fba6822ef9d
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_validity@
foreign import ccall safe "hs_bindgen_552c2923fb858ce4" hs_bindgen_552c2923fb858ce4_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> BG.CBool
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_validity@
hs_bindgen_552c2923fb858ce4 ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
-> DuckDBIdx
-> BG.CBool
-> IO ()
hs_bindgen_552c2923fb858ce4 =
\x0 ->
\x1 ->
\x2 ->
hs_bindgen_552c2923fb858ce4_base (BG.toFFIType x0) (BG.toFFIType x1) (BG.toFFIType x2)
{-| In a validity mask, sets a specific row to either valid or invalid.
Note that @'c_duckdb_vector_ensure_validity_writable'@ should be called before calling @'c_duckdb_vector_get_validity'@ , to ensure that there is a validity mask to write to.
history:
* stable: v0.3.3
[__@validity@__]: The validity mask, as obtained through @'c_duckdb_vector_get_validity'@ .
[__@row@__]: The row index
[__@valid@__]: Whether or not to set the row to valid, or invalid
__Returns:__ void
__C declaration:__ @duckdb_validity_set_row_validity@
__defined at:__ @duckdb.h 10277:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_validity_set_row_validity ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
{- ^
[__@validity@__]: The validity mask, as obtained through @'c_duckdb_vector_get_validity'@ .
__C declaration:__ @validity@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The row index
__C declaration:__ @row@
-}
-> BG.CBool
{- ^
[__@valid@__]: Whether or not to set the row to valid, or invalid
__C declaration:__ @valid@
-}
-> IO ()
c_duckdb_validity_set_row_validity =
hs_bindgen_552c2923fb858ce4
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_invalid@
foreign import ccall safe "hs_bindgen_9e881366869db236" hs_bindgen_9e881366869db236_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_invalid@
hs_bindgen_9e881366869db236 ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
-> DuckDBIdx
-> IO ()
hs_bindgen_9e881366869db236 =
\x0 ->
\x1 ->
hs_bindgen_9e881366869db236_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| In a validity mask, sets a specific row to invalid.
Equivalent to @'c_duckdb_validity_set_row_validity'@ with valid set to false.
history:
* stable: v0.3.3
[__@validity@__]: The validity mask
[__@row@__]: The row index
__Returns:__ void
__C declaration:__ @duckdb_validity_set_row_invalid@
__defined at:__ @duckdb.h 10293:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_validity_set_row_invalid ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
{- ^
[__@validity@__]: The validity mask
__C declaration:__ @validity@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The row index
__C declaration:__ @row@
-}
-> IO ()
c_duckdb_validity_set_row_invalid =
hs_bindgen_9e881366869db236
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_valid@
foreign import ccall safe "hs_bindgen_1c76442784687a97" hs_bindgen_1c76442784687a97_base ::
BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_validity_set_row_valid@
hs_bindgen_1c76442784687a97 ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
-> DuckDBIdx
-> IO ()
hs_bindgen_1c76442784687a97 =
\x0 ->
\x1 ->
hs_bindgen_1c76442784687a97_base (BG.toFFIType x0) (BG.toFFIType x1)
{-| In a validity mask, sets a specific row to valid.
Equivalent to @'c_duckdb_validity_set_row_validity'@ with valid set to true.
history:
* stable: v0.3.3
[__@validity@__]: The validity mask
[__@row@__]: The row index
__Returns:__ void
__C declaration:__ @duckdb_validity_set_row_valid@
__defined at:__ @duckdb.h 10309:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_validity_set_row_valid ::
BG.Ptr HsBindgen.Runtime.LibC.Word64
{- ^
[__@validity@__]: The validity mask
__C declaration:__ @validity@
-}
-> DuckDBIdx
{- ^
[__@row@__]: The row index
__C declaration:__ @row@
-}
-> IO ()
c_duckdb_validity_set_row_valid =
hs_bindgen_1c76442784687a97
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_selection_vector@
foreign import ccall safe "hs_bindgen_e0f1c7465a41fac7" hs_bindgen_e0f1c7465a41fac7_base ::
HsBindgen.Runtime.LibC.Word64
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_create_selection_vector@
hs_bindgen_e0f1c7465a41fac7 ::
DuckDBIdx
-> IO DuckDBSelectionVector
hs_bindgen_e0f1c7465a41fac7 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_e0f1c7465a41fac7_base (BG.toFFIType x0))
{-| Creates a new selection vector of size @size@ . Must be destroyed with @'c_duckdb_destroy_selection_vector'@ .
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@size@__]: The size of the selection vector.
__Returns:__ t'DuckDBSelectionVector'
__C declaration:__ @duckdb_create_selection_vector@
__defined at:__ @duckdb.h 10323:38@
__exported by:__ @duckdb.h@
-}
c_duckdb_create_selection_vector ::
DuckDBIdx
{- ^
[__@size@__]: The size of the selection vector.
__C declaration:__ @size@
-}
-> IO DuckDBSelectionVector
c_duckdb_create_selection_vector =
hs_bindgen_e0f1c7465a41fac7
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_selection_vector@
foreign import ccall safe "hs_bindgen_131b24a6de70ad66" hs_bindgen_131b24a6de70ad66_base ::
BG.Ptr BG.Void
-> IO ()
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_destroy_selection_vector@
hs_bindgen_131b24a6de70ad66 ::
DuckDBSelectionVector
-> IO ()
hs_bindgen_131b24a6de70ad66 =
\x0 ->
hs_bindgen_131b24a6de70ad66_base (BG.toFFIType x0)
{-| Destroys the selection vector and de-allocates its memory.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@sel@__]: The selection vector.
__Returns:__ void
__C declaration:__ @duckdb_destroy_selection_vector@
__defined at:__ @duckdb.h 10337:19@
__exported by:__ @duckdb.h@
-}
c_duckdb_destroy_selection_vector ::
DuckDBSelectionVector
{- ^
[__@sel@__]: The selection vector.
__C declaration:__ @sel@
-}
-> IO ()
c_duckdb_destroy_selection_vector =
hs_bindgen_131b24a6de70ad66
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_selection_vector_get_data_ptr@
foreign import ccall safe "hs_bindgen_efad6679c4838832" hs_bindgen_efad6679c4838832_base ::
BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
-- __unique:__ @Database_DuckDB_FFI_Database.DuckDB.FFI_Safe_duckdb_selection_vector_get_data_ptr@
hs_bindgen_efad6679c4838832 ::
DuckDBSelectionVector
-> IO (BG.Ptr DuckDBSel)
hs_bindgen_efad6679c4838832 =
\x0 ->
fmap BG.fromFFIType (hs_bindgen_efad6679c4838832_base (BG.toFFIType x0))
{-| Access the data pointer of a selection vector.
history:
* unstable: v1.3.0
* stable: v1.5.6
[__@sel@__]: The selection vector.
__Returns:__ sel_t*
__C declaration:__ @duckdb_selection_vector_get_data_ptr@
__defined at:__ @duckdb.h 10351:21@
__exported by:__ @duckdb.h@
-}
c_duckdb_selection_vector_get_data_ptr ::
DuckDBSelectionVector
{- ^
[__@sel@__]: The selection vector.
__C declaration:__ @sel@
-}
-> IO (BG.Ptr DuckDBSel)
c_duckdb_selection_vector_get_data_ptr =
hs_bindgen_efad6679c4838832