PostgreSQL.Database is a Power Query M function that returns a table of SQL tables and views available in a PostgreSQL database on a specified server and database instance. The function returns the table with control over options like navigation properties, hierarchical navigation, and timeouts.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
PostgreSQL.Database(
server as text,
database as text,
optional options as nullable record,
) as table
Description
Returns a table of SQL tables and views available in a PostgreSQL database on server server
in the database instance named database
. The port may be optionally specified with the server, separated by a colon. An optional record parameter, options
, may be specified to control the following options:
CreateNavigationProperties
: A logical (true/false) that sets whether to generate navigation properties on the returned values (default is true).NavigationPropertyNameGenerator
: A function that is used for the creation of names for navigation properties.Query
: A native SQL query used to retrieve data. If the query produces multiple result sets, only the first will be returned.CommandTimeout
: A duration that controls how long the server-side query is allowed to run before it is canceled. The default value is ten minutes.ConnectionTimeout
: A duration that controls how long to wait before abandoning an attempt to make a connection to the server. The default value is driver-dependent.HierarchicalNavigation
: A logical (true/false) that sets whether to view the tables grouped by their schema names (default is false).
Related articles
Learn more about PostgreSQL.Database in the following articles:
- Query Folding on Native Queries
This article delves into using Query Folding for Native Queries. It also provides a list of connectors that currently supports this. » Read more - PostgreSQL Connector
This article provides information on the PostgreSQL connector. » Read more
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy