@@ -32,5 +32,76 @@ public function __construct(
3232 throw new PDOException ("Pdo\Pgsql::__construct() cannot be used for connecting to the \"$ driver \" driver " );
3333 }
3434 }
35+
36+ public function copyFromArray (
37+ string $ tableName ,
38+ array $ rows ,
39+ string $ separator = "\t" ,
40+ string $ nullAs = "\\\\N " ,
41+ ?string $ fields = null
42+ ): bool
43+ {
44+ return $ this ->pgsqlCopyFromArray ($ tableName , $ rows , $ separator , $ nullAs , $ fields );
45+ }
46+
47+ public function copyFromFile (
48+ string $ tableName ,
49+ string $ filename ,
50+ string $ separator = "\t" ,
51+ string $ nullAs = "\\\\N " ,
52+ ?string $ fields = null
53+ ): bool
54+ {
55+ return $ this ->pgsqlCopyFromFile ($ tableName , $ filename , $ separator , $ nullAs , $ fields );
56+ }
57+
58+ public function copyToArray (
59+ string $ tableName ,
60+ string $ separator = "\t" ,
61+ string $ nullAs = "\\\\N " ,
62+ ?string $ fields = null
63+ ): array |false
64+ {
65+ return $ this ->pgsqlCopyToArray ($ tableName , $ separator , $ nullAs , $ fields );
66+ }
67+
68+ public function copyToFile (
69+ string $ tableName ,
70+ string $ filename ,
71+ string $ separator = "\t" ,
72+ string $ nullAs = "\\\\N " ,
73+ ?string $ fields = null
74+ ): bool
75+ {
76+ return $ this ->pgsqlCopyToFile ($ tableName , $ filename , $ separator , $ nullAs , $ fields );
77+ }
78+
79+ public function getNotify (int $ fetchMode = PDO ::FETCH_DEFAULT , int $ timeoutMilliseconds = 0 ): array |false
80+ {
81+ return $ this ->pgsqlGetNotify ($ fetchMode , $ timeoutMilliseconds );
82+ }
83+
84+ public function getPid (): int
85+ {
86+ return $ this ->pgsqlGetPid ();
87+ }
88+
89+ public function lobCreate (): string |false
90+ {
91+ return $ this ->pgsqlLOBCreate ();
92+ }
93+
94+ /**
95+ * @return resource|false
96+ */
97+ public function lobOpen (string $ oid , string $ mode = "rb " )
98+ {
99+ return $ this ->pgsqlLOBOpen ($ oid , $ mode );
100+ }
101+
102+ public function lobUnlink (string $ oid ): bool
103+ {
104+ return $ this ->pgsqlLOBUnlink ($ oid );
105+ }
35106 }
36107}
0 commit comments