Permalink
Browse files

[Pg] stub in a few functions needed for prepared statements

  • Loading branch information...
1 parent a7cfbbe commit 824b42a1470ef4b1ba5de7e91f8282f27731627c @moritz moritz committed Apr 21, 2012
Showing with 26 additions and 0 deletions.
  1. +26 −0 lib/MiniDBD/Pg.pm6
View
@@ -12,6 +12,32 @@ sub PQexec (OpaquePointer $conn, Str $statement)
is native('libpq')
{ ... }
+sub PQprepare (OpaquePointer $conn, Str $statement_name, Str $query, Int $n_params, OpaquePointer $paramTypes)
+ returns OpaquePointer
+ is native('libpq')
+ { ... }
+
+# PGresult *PQexecPrepared(PGconn *conn,
+# const char *stmtName,
+# int nParams,
+# const char * const *paramValues,
+# const int *paramLengths,
+# const int *paramFormats,
+# int resultFormat);
+#
+sub PQexecPrepared(
+ OpaquePointer $conn,
+ Str $statement_name,
+ Int $n_params,
+ CArray[Str] $param_values,
+ CArray[int] $param_length,
+ CArray[int] $param_formats,
+ Int $resultFormat
+ )
+ returns OpaquePointer
+ is native('libpq')
+ { ... }
+
sub PQresultStatus (OpaquePointer $result)
returns Int
is native('libpq')

0 comments on commit 824b42a

Please sign in to comment.