Called by MySQL and PostgreSQL plugins to write a file on the back-end DBMS underlying file system
(self, fileName, encoding, single, chunkSize=256)
| 122 | return sqlQueries |
| 123 | |
| 124 | def fileEncode(self, fileName, encoding, single, chunkSize=256): |
| 125 | """ |
| 126 | Called by MySQL and PostgreSQL plugins to write a file on the |
| 127 | back-end DBMS underlying file system |
| 128 | """ |
| 129 | |
| 130 | checkFile(fileName) |
| 131 | |
| 132 | with open(fileName, "rb") as f: |
| 133 | content = f.read() |
| 134 | |
| 135 | return self.fileContentEncode(content, encoding, single, chunkSize) |
| 136 | |
| 137 | def fileContentEncode(self, content, encoding, single, chunkSize=256): |
| 138 | retVal = [] |
no test coverage detected