mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-23 22:45:11 +02:00
сделал postgres_pgx
This commit is contained in:
@@ -431,6 +431,11 @@ func GetConnection_WithApplicationName(ApplicationName string) *pgx.Conn {
|
||||
}
|
||||
|
||||
// RawMultipleSQL - выполняет текст запроса, отдельно для каждого запроса
|
||||
// после вызова, в конце необходимо закрыть rows!
|
||||
// if err != nil {
|
||||
// }
|
||||
// defer rows.Close()
|
||||
|
||||
func RawMultipleSQL(tx pgx.Tx, TextSQL string) (pgx.Rows, error) {
|
||||
var rows pgx.Rows
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user