-{"hierarchy":{"paths":[["doc:\/\/Kuzu\/documentation\/Kuzu","doc:\/\/Kuzu\/documentation\/Kuzu\/Connection"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/kuzu\/connection\/execute(_:_:)"]}],"kind":"symbol","primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"execute","kind":"identifier"},{"text":"<","kind":"text"},{"text":"T","kind":"genericParameter"},{"text":">(","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"preparedStatement","kind":"internalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:4Kuzu17PreparedStatementC","text":"PreparedStatement","kind":"typeIdentifier","identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/PreparedStatement"},{"text":", ","kind":"text"},{"text":"_","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"parameters","kind":"internalParam"},{"text":": [","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"text":" : ","kind":"text"},{"text":"T","kind":"typeIdentifier"},{"text":"?]) ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"text":"QueryResult","identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/QueryResult","kind":"typeIdentifier","preciseIdentifier":"s:4Kuzu11QueryResultC"}]}],"kind":"declarations"},{"parameters":[{"name":"preparedStatement","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The prepared statement to execute"}]}]},{"name":"parameters","content":[{"inlineContent":[{"type":"text","text":"A dictionary mapping parameter names to their values"}],"type":"paragraph"}]}],"kind":"parameters"},{"content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"A QueryResult containing the results of the query"}],"type":"paragraph"}],"kind":"content"},{"content":[{"text":"Discussion","type":"heading","level":2,"anchor":"discussion"},{"style":"note","type":"aside","name":"Throws","content":[{"type":"paragraph","inlineContent":[{"text":"KuzuError if query execution fails","type":"text"}]}]}],"kind":"content"}],"sections":[],"abstract":[{"text":"Executes the specified prepared statement with the given parameters and returns the result.","type":"text"}],"schemaVersion":{"patch":0,"major":0,"minor":3},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/Kuzu\/documentation\/Kuzu\/Connection\/execute(_:_:)"},"metadata":{"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"execute","kind":"identifier"},{"text":"<","kind":"text"},{"text":"T","kind":"genericParameter"},{"text":">(","kind":"text"},{"preciseIdentifier":"s:4Kuzu17PreparedStatementC","text":"PreparedStatement","kind":"typeIdentifier"},{"text":", [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" : ","kind":"text"},{"text":"T","kind":"typeIdentifier"},{"text":"?]) ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:4Kuzu11QueryResultC","text":"QueryResult","kind":"typeIdentifier"}],"externalID":"s:4Kuzu10ConnectionC7executeyAA11QueryResultCAA17PreparedStatementC_SDySSxSgGtKlF","symbolKind":"method","modules":[{"name":"Kuzu"}],"role":"symbol","title":"execute(_:_:)","roleHeading":"Instance Method"},"references":{"doc://Kuzu/documentation/Kuzu":{"abstract":[],"type":"topic","title":"Kuzu","url":"\/documentation\/kuzu","kind":"symbol","role":"collection","identifier":"doc:\/\/Kuzu\/documentation\/Kuzu"},"doc://Kuzu/documentation/Kuzu/Connection":{"abstract":[{"text":"Represents a connection to a Kuzu database.","type":"text"}],"identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/Connection","url":"\/documentation\/kuzu\/connection","title":"Connection","role":"symbol","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"Connection"}],"navigatorTitle":[{"kind":"identifier","text":"Connection"}],"type":"topic","kind":"symbol"},"doc://Kuzu/documentation/Kuzu/Connection/execute(_:_:)":{"identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/Connection\/execute(_:_:)","role":"symbol","url":"\/documentation\/kuzu\/connection\/execute(_:_:)","kind":"symbol","title":"execute(_:_:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"execute","kind":"identifier"},{"text":"<","kind":"text"},{"text":"T","kind":"genericParameter"},{"text":">(","kind":"text"},{"preciseIdentifier":"s:4Kuzu17PreparedStatementC","text":"PreparedStatement","kind":"typeIdentifier"},{"text":", [","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":" : ","kind":"text"},{"text":"T","kind":"typeIdentifier"},{"text":"?]) ","kind":"text"},{"text":"throws","kind":"keyword"},{"text":" -> ","kind":"text"},{"preciseIdentifier":"s:4Kuzu11QueryResultC","text":"QueryResult","kind":"typeIdentifier"}],"abstract":[{"text":"Executes the specified prepared statement with the given parameters and returns the result.","type":"text"}],"type":"topic"},"doc://Kuzu/documentation/Kuzu/PreparedStatement":{"type":"topic","kind":"symbol","title":"PreparedStatement","url":"\/documentation\/kuzu\/preparedstatement","abstract":[{"text":"A class representing a prepared statement in Kuzu.","type":"text"},{"text":" ","type":"text"},{"text":"PreparedStatement can be used to execute a query with parameters.","type":"text"},{"text":" ","type":"text"},{"text":"It is returned by the ","type":"text"},{"code":"prepare","type":"codeVoice"},{"text":" method of Connection.","type":"text"}],"identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/PreparedStatement","role":"symbol","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"text":"PreparedStatement","kind":"identifier"}],"navigatorTitle":[{"text":"PreparedStatement","kind":"identifier"}]},"doc://Kuzu/documentation/Kuzu/QueryResult":{"identifier":"doc:\/\/Kuzu\/documentation\/Kuzu\/QueryResult","kind":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"QueryResult"}],"role":"symbol","abstract":[{"type":"text","text":"A class representing the result of a query, which can be used to iterate over the result set."},{"type":"text","text":" "},{"type":"text","text":"QueryResult is returned by the "},{"type":"codeVoice","code":"query"},{"type":"text","text":" and "},{"type":"codeVoice","code":"execute"},{"type":"text","text":" methods of Connection."},{"type":"text","text":" "},{"type":"text","text":"It conforms to "},{"type":"codeVoice","code":"CustomStringConvertible"},{"type":"text","text":" and "},{"type":"codeVoice","code":"Sequence"},{"type":"text","text":" protocols for easy string representation and iteration."}],"navigatorTitle":[{"kind":"identifier","text":"QueryResult"}],"title":"QueryResult","url":"\/documentation\/kuzu\/queryresult"}}}
0 commit comments