Skip to content

Commit

Permalink
Merge pull request #143 from burner/docs_exec
Browse files Browse the repository at this point in the history
Doc for Issue #142
  • Loading branch information
denizzzka authored Aug 5, 2019
2 parents 8ef4afc + 77d870d commit e0e6218
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dpq2/query.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import std.exception: enforce;
mixin template Queries()
{
/// Perform SQL query to DB
/// It uses the old wire protocol and all values are returned in textual
/// form. This means that the dpq2.conv.to_d_types.as template will likely
/// not work for anything but strings.
/// Try to used execParams instead, even if now parameters are present.
immutable (Answer) exec( string SQLcmd )
{
auto pgResult = PQexec(conn, toStringz( SQLcmd ));
Expand Down

0 comments on commit e0e6218

Please sign in to comment.