Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
SPI_prepare_extended
Prev Up45.1. Interface FunctionsHome Next

SPI_prepare_extended

SPI_prepare_extended — prepare a statement, without executing it yet

Synopsis

SPIPlanPtr SPI_prepare_extended(const char *command,                                const SPIPrepareOptions *options)

Description

SPI_prepare_extended creates and returns a prepared statement for the specified command, but doesn't execute the command. This function is equivalent toSPI_prepare, with the addition that the caller can specify options to control the parsing of external parameter references, as well as other facets of query parsing and planning.

Arguments

const char *command

command string

const SPIPrepareOptions *options

struct containing optional arguments

Callers should always zero out the entireoptions struct, then fill whichever fields they want to set. This ensures forward compatibility of code, since any fields that are added to the struct in future will be defined to behave backwards-compatibly if they are zero. The currently availableoptions fields are:

ParserSetupHookparserSetup

Parser hook setup function

void *parserSetupArg

pass-through argument forparserSetup

RawParseModeparseMode

mode for raw parsing;RAW_PARSE_DEFAULT (zero) produces default behavior

intcursorOptions

integer bit mask of cursor options; zero produces default behavior

Return Value

SPI_prepare_extended has the same return conventions asSPI_prepare.


Prev Up Next
SPI_prepare_cursor Home SPI_prepare_params
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp