2
0

Add automatic statement cache

This commit is contained in:
Jack Christensen
2019-08-24 20:29:54 -05:00
parent 180dfe6954
commit 0c3e59b07a
7 changed files with 349 additions and 22 deletions
+6
View File
@@ -179,6 +179,12 @@ can create a transaction with a specified isolation level.
return err
}
Prepared Statements
Prepared statements can be manually created with the Prepare method. However, this is rarely necessary because pgx
includes an automatic statement cache by default. Queries run through the normal Query, QueryRow, and Exec functions are
automatically prepared on first execution and the prepared statement is reused on subsequent executions.
Copy Protocol
Use CopyFrom to efficiently insert multiple rows at a time using the PostgreSQL