@@ -18,12 +18,7 @@ class Pgsql extends PDO
1818 {
1919 public const ATTR_DISABLE_PREPARES = PDO ::PGSQL_ATTR_DISABLE_PREPARES ;
2020
21- public function __construct (
22- string $ dsn ,
23- ?string $ username = null ,
24- ?string $ password = null ,
25- ?array $ options = null
26- )
21+ public function __construct (string $ dsn , ?string $ username = null , ?string $ password = null , ?array $ options = null )
2722 {
2823 parent ::__construct ($ dsn , $ username , $ password , $ options );
2924
@@ -33,48 +28,25 @@ public function __construct(
3328 }
3429 }
3530
36- public function copyFromArray (
37- string $ tableName ,
38- array $ rows ,
39- string $ separator = "\t" ,
40- string $ nullAs = "\\\\N " ,
41- ?string $ fields = null
42- ): bool
31+ public function copyFromArray (string $ tableName , array $ rows , string $ separator = "\t" , string $ nullAs = "\\\\N " , ?string $ fields = null ): bool
4332 {
4433 return $ this ->pgsqlCopyFromArray ($ tableName , $ rows , $ separator , $ nullAs , $ fields );
4534 }
4635
47- public function copyFromFile (
48- string $ tableName ,
49- string $ filename ,
50- string $ separator = "\t" ,
51- string $ nullAs = "\\\\N " ,
52- ?string $ fields = null
53- ): bool
36+ public function copyFromFile (string $ tableName , string $ filename , string $ separator = "\t" , string $ nullAs = "\\\\N " , ?string $ fields = null ): bool
5437 {
5538 return $ this ->pgsqlCopyFromFile ($ tableName , $ filename , $ separator , $ nullAs , $ fields );
5639 }
5740
5841 /**
5942 * @return array|false
6043 */
61- public function copyToArray (
62- string $ tableName ,
63- string $ separator = "\t" ,
64- string $ nullAs = "\\\\N " ,
65- ?string $ fields = null
66- )
44+ public function copyToArray (string $ tableName , string $ separator = "\t" , string $ nullAs = "\\\\N " , ?string $ fields = null )
6745 {
6846 return $ this ->pgsqlCopyToArray ($ tableName , $ separator , $ nullAs , $ fields );
6947 }
7048
71- public function copyToFile (
72- string $ tableName ,
73- string $ filename ,
74- string $ separator = "\t" ,
75- string $ nullAs = "\\\\N " ,
76- ?string $ fields = null
77- ): bool
49+ public function copyToFile (string $ tableName , string $ filename , string $ separator = "\t" , string $ nullAs = "\\\\N " , ?string $ fields = null ): bool
7850 {
7951 return $ this ->pgsqlCopyToFile ($ tableName , $ filename , $ separator , $ nullAs , $ fields );
8052 }
0 commit comments