You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pg_azure_storage extension provides extensibility, to seamlessly manipulate and load data in different file formats, to your Azure Cosmos DB for PostgreSQL cluster directly from Azure Blob Storage. Containers with access level “Private” or “Blob” requires adding private access key.
16
+
The pg_azure_storage extension allows you to load data in multiple file formats directly from Azure blob storage to your Azure Cosmos DB for PostgreSQL cluster. Containers with access level “Private” or “Blob” requires adding private access key.
17
17
18
18
You can create the extension from psql by running:
19
19
```postgresql
20
-
CREATE EXTENSION azure_storage;
20
+
SELECT create_extension('azure_storage');
21
21
```
22
22
23
23
## COPY FROM
@@ -171,13 +171,13 @@ The URI for a container is similar to:
returns file from blob container with matching string initials.
174
+
Returns file from blob container with matching string initials.
175
175
#### path
176
-
full qualified path of Azure blob directory.
176
+
Full qualified path of Azure blob directory.
177
177
#### bytes
178
-
size of file object in bytes.
178
+
Size of file object in bytes.
179
179
#### last_modified
180
-
when was the file content last modified.
180
+
When was the file content last modified.
181
181
#### etag
182
182
An ETag property is used for optimistic concurrency during updates. It isn't a timestamp as there's another property called Timestamp that stores the last time a record was updated. For example, if you load an entity and want to update it, the ETag must match what is currently stored. Setting the appropriate ETag is important because if you have multiple users editing the same item, you don't want them overwriting each other's changes.
183
183
#### content_type
@@ -231,9 +231,9 @@ A container name must be a valid DNS name, as it forms part of the unique URI us
231
231
#### path
232
232
Blob name existing in the container.
233
233
#### rec
234
-
define the record output structure.
234
+
Define the record output structure.
235
235
#### decoder
236
-
specify the blob format
236
+
Specify the blob format
237
237
Decoder can be set to auto (default) or any of the following values
238
238
#### decoder description
239
239
|**Format**|**Description**|
@@ -244,9 +244,9 @@ Decoder can be set to auto (default) or any of the following values
244
244
| text | A file containing a single text value (for example, large JSON or XML) |
245
245
246
246
#### compression
247
-
defines the compression format. Available options are `auto`, `gzip` & `none`. The use of the `auto` option (default), guesses the compression based on the file extension (.gz == gzip). The option `none` forces to ignore the extension and not attempt to decode. While gzip forces using the gzip decoder (for when you have a gzipped file with a non-standard extension). We currently don't support any other compression formats for the extension.
247
+
Defines the compression format. Available options are `auto`, `gzip` & `none`. The use of the `auto` option (default), guesses the compression based on the file extension (.gz == gzip). The option `none` forces to ignore the extension and not attempt to decode. While gzip forces using the gzip decoder (for when you have a gzipped file with a non-standard extension). We currently don't support any other compression formats for the extension.
248
248
#### options
249
-
for handling custom headers, custom separators, escape characters etc., `options` works in similar fashion to `COPY` command in PostgreSQL, parameter utilizes to blob_get function.
249
+
For handling custom headers, custom separators, escape characters etc., `options` works in similar fashion to `COPY` command in PostgreSQL, parameter utilizes to blob_get function.
0 commit comments