@@ -32,5 +32,85 @@ 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+ /**
59+ * @return array|false
60+ */
61+ public function copyToArray (
62+ string $ tableName ,
63+ string $ separator = "\t" ,
64+ string $ nullAs = "\\\\N " ,
65+ ?string $ fields = null
66+ )
67+ {
68+ return $ this ->pgsqlCopyToArray ($ tableName , $ separator , $ nullAs , $ fields );
69+ }
70+
71+ public function copyToFile (
72+ string $ tableName ,
73+ string $ filename ,
74+ string $ separator = "\t" ,
75+ string $ nullAs = "\\\\N " ,
76+ ?string $ fields = null
77+ ): bool
78+ {
79+ return $ this ->pgsqlCopyToFile ($ tableName , $ filename , $ separator , $ nullAs , $ fields );
80+ }
81+
82+ /**
83+ * @return array|false
84+ */
85+ public function getNotify (int $ fetchMode = PDO ::FETCH_DEFAULT , int $ timeoutMilliseconds = 0 )
86+ {
87+ return $ this ->pgsqlGetNotify ($ fetchMode , $ timeoutMilliseconds );
88+ }
89+
90+ public function getPid (): int
91+ {
92+ return $ this ->pgsqlGetPid ();
93+ }
94+
95+ /**
96+ * @return string|false
97+ */
98+ public function lobCreate ()
99+ {
100+ return $ this ->pgsqlLOBCreate ();
101+ }
102+
103+ /**
104+ * @return resource|false
105+ */
106+ public function lobOpen (string $ oid , string $ mode = "rb " )
107+ {
108+ return $ this ->pgsqlLOBOpen ($ oid , $ mode );
109+ }
110+
111+ public function lobUnlink (string $ oid ): bool
112+ {
113+ return $ this ->pgsqlLOBUnlink ($ oid );
114+ }
35115 }
36116}
0 commit comments