CData Python Connector for WordPress

Build 26.0.9655

CData Python Connector for WordPress

Overview

The CData Python Connector for WordPress allows developers to write Python scripts with connectivity to WordPress. The connector wraps the complexity of accessing WordPress data in an interface commonly used by Python connectors to common database systems.

Key Features

  • WHL installation packages that enable installation with "pip install".
  • Supported for Python 3.10 or newer on Windows, Linux, and macOS.
  • Write and execute SQL queries to fetch and update data in WordPress.
  • Custom dialect class that enables SQLAlchemy 1.3 and 1.4 to use this connector.

Getting Started

See Getting Started to install the connector to your Python distribution and to create a basic connection to WordPress.

Using the Python Connector/Using from Tools

See Using the Connector for examples of executing basic SELECT, INSERT, UPDATE, DELETE, and EXECUTE queries with the module's provided classes.

See Using from Tools to connect WordPress data to tools such as Pandas or Petl.

SQLAlchemy ORM

SQLAlchemy can be leveraged to model the tables in WordPress with mapped classes. See From SQLAlchemy for instructions for configuring the Python connector with SQLAlchemy.

Pandas

Pandas' DataFrames can be used alongside the connector to generate analytical graphics. See From Pandas for a guide.

Schema Discovery

See Schema Discovery to query the provided system tables, which allows users to discover the available tables, views, and stored procedure, alongside additional information about their columns or parameters.

Advanced Features

Advanced Features details additional features supported by the connector, such as defining user defined views, ssl configuration, remoting, caching, firewall/proxy settings, and advanced logging.

SQL Compliance

See SQL Compliance for a syntax reference and code examples outlining the supported SQL.

Data Model

See Data Model for the available database objects. This section also provides more detailed information on querying specific WordPress entities.

Connection String Options

The Connection properties describe the various options that can be used to establish a connection.

CData Python Connector for WordPress

Getting Started

Connecting to WordPress

For information on the available WHL files for supported environments, and how to install the appropriate file for your Python distribution, see Package Installation.

For information on the module to import, and how to configure the necessary connection properties in a connection string, see Establishing a Connection.

Other available connection properties can be used to configure other aspects of the connector capabilities.

Python Version Support

The CData Python Connector for WordPress can be installed and used in Python 3.10 or newer.

WordPress Version Support

The connector models entities in version 2.x of the WordPress REST API as relational tables.

See Also

  • Using the Connector: Establish connections and query WordPress through Python code.
  • From SQLAlchemy: Use SQLAlchemy to establish a connection with dialect URL, and interact with WordPress data using mapped classes and Sessions.

CData Python Connector for WordPress

Package Installation

Dependencies

The Python connectors require that Python 3.10 or newer be installed.

Installation

The CData Python Connector for WordPress is available as a WHL file for Windows, Linux, and Mac. Each connector is built using the Python 3.10 Stable ABI (indicated by the abi3 tag in the filename), so a single wheel supports any Python 3.10 or newer installation — there is no need to match your exact Python minor version. Use the "pip install" command with the appropriate WHL file for your platform.

Windows:

pip install cdata_wordpress_connector-26.0.9655-cp310-abi3-win_amd64.whl

Linux:

pip install cdata_wordpress_connector-26.0.9655-cp310-abi3-linux_x86_64.whl

macOS:

pip install cdata_wordpress_connector-26.0.9655-cp310-abi3-macosx_12_0_arm64.whl

The macOS wheel supports arm64 (Apple Silicon) architectures only on macOS 12 and newer.

Regardless of the environment, certain distributions might require that the "pip3 install" command be used instead, to differentiate from a Python 2 distribution that might exist already. After installation, confirm whether the connector is successfully installed by running the "pip list" command. If "cdata_wordpress_connector" is present in the list output by the command, then the installation was successful.

Upgrading

When upgrading, "pip install" does not automatically clean up old JRE files. To avoid leftover files that could cause JVM errors, uninstall the previous version before installing the new one.

Licensing

After the installation is complete, a separate step is needed to activate a license for the connector. Among the CData assets in the distribution's site packages, there is an install-license tool that activates this license. From within the distribution's site-packages folder, after navigating to the "cdata/installlic_wordpress" folder, simply use a command like the below to activate the license. Omitting the <key> argument activates a trial license:

  • Windows:
    ./install-license.exe <key>
  • Linux / Mac:
    ./install-license.sh <key>

Sometimes, file access issues may cause pip to install the connector in a fallback file path that is not the python distribution's main or primary site-packages location. This can make it difficult to find where the connector was installed, and from there, the license activator. In that event, this python script below will print out the full file path of the connector's native file. This file will be stored in the mentioned cdata folder, from which the installlic_wordpress folder is trivial to find:

import os
import cdata.wordpress
path = os.path.abspath(cdata.wordpress.__file__)
print(path)

Uninstallation

If the connector needs to be uninstalled for any reason, do so by running the pip uninstall command, as in the example below:

pip uninstall cdata-wordpress-connector

CData Python Connector for WordPress

Establishing a Connection

The objects available within our connector are accessible from the "cdata.wordpress" module. To use the module's objects directly:

  1. Import the module as follows:
    import cdata.wordpress as mod
  2. To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
    mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

Connecting to WordPress

CData Python Connector for WordPress supports connecting to self-hosted WordPress instances and WordPress Online instances.

  • If you are connecting to self-hosted WordPress, you must provide the URL of your WordPress site and then authenticate.
  • If you are connecting to WordPress Online, you can choose between OAuth 2.0 and OAuth Password authentication.

Connecting to Self-Hosted WordPress

For self-hosted WordPress instances, to connect to data, provide the full URL for your WordPress site, and then authenticate as described below. For example, if your site is hosted at http://localhost/wp/wordpress, you should enter it as http://localhost/wp/wordpress, not just http://localhost. Failing to provide the complete URL will lead to a 'site not found' error.

Self-hosted WordPress instances support two types of authentication:

  • Basic authentication: This method is recommended for use in testing environments. It provides a way to access your WordPress instance.
  • OAuth 2.0 authentication: This method supports secure, browser-based access from various platforms, including desktop applications, web applications, and headless machines.
Note: Choose the method that fits your needs based on the environment and level of security required.

Basic Authentication

Before you configure WordPress to use Basic Authentication, follow these guidelines:

  • Ensure that your WordPress login has administrative privileges.
  • Be aware of the version of WordPress running on the local host. Note: Versions 4.7 and later support the WordPress REST API natively, while earlier versions require a Basic Authentication plug-in to secure REST API access.

To configure Basic Authentication:

  1. Log into your WordPress host.
  2. If you are running an earlier WordPress version than 4.7, install the REST API plugin.
  3. Install the Basic Authentication plugin.
  4. To create custom taxonomies, install the Simple Taxonomy Refreshed plugin.
    If you prefer installing the plugins manually, extract the compressed folders to the wp-content\plugins folder and then enable the plugins via the WordPress admin interface.
  5. Next, set the following connection properties:

You are now ready to connect.

OAuth 2.0 Authentication

For all non-testing environments, WordPress supports OAuth authentication only. To enable this authentication from all OAuth flows, you must set AuthScheme to OAuth, and you must create a custom OAuth application.

The following subsections describe how to authenticate to WordPress from three common authentication flows. For information about how to create a custom OAuth application, see Creating a Custom OAuth Application. For a complete list of connection string properties available in WordPress, see Connection.

Desktop Applications
To authenticate with the credentials for a custom OAuth application, you must get and refresh the OAuth access token. After you do that, you are ready to connect.

Get and refresh the OAuth access token:

  • InitiateOAuth: Set this to GETANDREFRESH. Used to automatically get and refresh the OAuthAccessToken.
  • OAuthClientId: The client Id assigned when you registered your application.
  • OAuthClientSecret: The client secret that was assigned when you registered your application.
  • CallbackURL: The redirect URI that was defined when you registered your application.

When you connect, the connector opens WordPress's OAuth endpoint in your default browser. Log in and grant permissions to the application.

After you grant permissions to the application, the connector then completes the OAuth process:

  1. The connector obtains an access token from WordPress and uses it to request data.
  2. The OAuth values are saved in the path specified in OAuthSettingsLocation. These values persist across connections.

When the access token expires, the connector refreshes it automatically.

Web Applications
Authenticating via the Web requires you to create and register a custom OAuth application with WordPress, as described in Creating a Custom OAuth Application. You can then use the connector to get and manage the OAuth token values.

This section describes how to get the OAuth access token, and how to have the driver refresh the OAuth access token automatically.

Get the OAuth access token:

  1. Set the following connection properties to obtain the OAuthAccessToken:

  2. Call stored procedures to complete the OAuth exchange:
    • Call the GetOAuthAuthorizationURL stored procedure. Set the AuthMode input to WEB and the CallbackURL to the Redirect URI you specified in your application settings. The stored procedure returns the URL to the OAuth endpoint.
    • Navigate to the URL that the stored procedure returned in Step 1. Log in and authorize the web application. You are redirected back to the callback URL.
    • Call the GetOAuthAccessToken stored procedure. Set the AuthMode input to WEB. Set the Verifier input to the code parameter in the query string of the redirect URI.

After you obtain the access and refresh tokens, you can connect to data and refresh the OAuth access token automatically.

Automatic refresh of the OAuth access token:

To have the connector automatically refresh the OAuth access token, do the following:

  1. Before connecting to data for the first time, set the following connection parameters:
  2. On subsequent data connections, set the following:

OAuthClient Authentication
The client credentials grant type allows authentication from desktop applications or the web. To enable this authscheme, set AuthScheme to OAuthClient. This method requires a custom OAuth application, as described in Creating a Custom OAuth Application.

To connect, set these properties:

  • InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the access token in the connection string.
  • AuthScheme: Set the AuthScheme to OAuthClient to perform authentication with the client credentials grant type.
  • OAuthClientId: The client Id specified in your custom OAuth application.
  • OAuthClientSecret: The client secret specified in your custom OAuth application.
Headless Machines

If you need to log in to a resource that resides on a headless machine, you must authenticate on another device that has an internet browser. You can do this in either of the following ways:

  • Option 1: Obtain the OAuthVerifier value.
  • Option 2: Install the connector on a machine with an internet browser and transfer the OAuth authentication values after you authenticate through the usual browser-based flow.

After you execute either Option 1 or Option 2, configure the driver to automatically refresh the access token on the headless machine.

Option 1: Obtaining and Exchanging a Verifier Code

To obtain a verifier code, you must authenticate at the OAuth authorization URL. Do the following:

  1. Authenticate from the machine with an internet browser, and obtain the OAuthVerifier connection property.

    Set the following properties:

  2. Call the GetOAuthAuthorizationURL stored procedure. The stored procedure returns the CallbackURL established when the custom OAuth application was registered. (See Creating a Custom OAuth Application.)

    Copy this URL and paste it into a new browser tab.

  3. Log in and grant permissions to the connector. The OAuth application redirects you the redirect URI, with a parameter called code appended. Note the value of this parameter; you will need it later to configure the OAuthVerifier connection property.

  4. Exchange the OAuth verifier code for OAuth refresh and access tokens. On the headless machine, set the following connection properties to obtain the OAuth authentication values:

  5. Test the connection to generate the OAuth settings file.

  6. After you re-set the following properties, you are ready to connect:

    • InitiateOAuth: Set this to REFRESH.
    • OAuthSettingsLocation: The file containing the encrypted OAuth authentication values. To enable the automatic refreshing of the access token, be sure that this file gives read and write permissions to the connector.
    • OAuthClientId: The client Id assigned when you registered your application.
    • OAuthClientSecret: The client secret assigned when you registered your application.

Option 2: Transferring OAuth Settings

Prior to connecting on a headless machine, you must install and create a connection with the driver on a device that supports an internet browser. Set the connection properties as described above in "Desktop Applications".

After completing the instructions in "Desktop Applications", the resulting authentication values are encrypted and written to the path specified by OAuthSettingsLocation. The default filename is OAuthSettings.txt.

Test the connection to generate the OAuth settings file, then copy the OAuth settings file to your headless machine.

To connect to data via the headless machine, set the following connection properties:

  • InitiateOAuth: Set this to REFRESH.
  • OAuthSettingsLocation: The path to the OAuth settings file you copied from the machine with the browser. To enable automatic refreshing of the access token, ensure that this file gives read and write permissions to the connector.
  • OAuthClientId: The client Id assigned when you registered your custom OAuth application.
  • OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.

Okta

To connect to Okta, set these properties:

  • AuthScheme: Okta.
  • User: The authentiating Okta user.
  • Password: The password of the authenticating Okta user.
  • SSOLoginURL: The SSO provider's login URL.
  • SSOExchangeURL: The url used for the exchange of the SAML token for WordPress credentials. This is optional and if it is NULL WordPress will construct it.

If you are either using a trusted application or proxy that overrides the Okta client request OR configuring MFA, you must use combinations of SSOProperties to authenticate using Okta. Set any of the following, as applicable:

  • APIToken: When authenticating a user via a trusted application or proxy that overrides the Okta client request context, set this to the API Token the customer created from the Okta organization.
  • MFAType: If you have configured the MFA flow, set this to one of the following supported types: OktaVerify, Email, or SMS.
  • MFAPassCode: If you have configured the MFA flow, set this to a valid passcode.
    If you set this to empty or an invalid value, the connector issues a one-time password challenge to your device or email. After the passcode is received, reopen the connection where the retrieved one-time password value is set to the MFAPassCode connection property.
  • MFARememberDevice: True by default. Okta supports remembering devices when MFA is required. If remembering devices is allowed according to the configured authentication policies, the connector sends a device token to extend MFA authentication lifetime. If you do not want MFA to be remembered, set this variable to False.

Example connection string:

AuthScheme=Okta;SSOLoginURL='https://example.okta.com/home/appType/0bg4ivz6cJRZgCz5d6/46';User=oktaUserName;Password=oktaPassword;URL=YourWordpressSiteURL;

Azure AD

This configuration requires two separate Azure AD applications:

  • The "WordPress" application used for single sign-on, and
  • A custom OAuth application with user_impersonation permission on the Azure Active Directory.

To connect to Azure AD, set the AuthScheme to AzureAD, and set these properties:

  • SSOExchangeURL: The url used for the exchange of the SAML token for WordPress credentials. This is optional and if it is NULL WordPress will construct it.
  • OAuthClientId: The application Id of the connector application, listed in the Overview section of the app registration.
  • OAuthClientSecret: The client secret value of the connector application. Azure AD displays this when you create a new client secret.
  • CallbackURL: The redirect URI of the connector application. For example: https://localhost:33333.
  • InitiateOAuth: Set this to GETANDREFRESH.

To authenticate to Azure AD, set these required properties in SSOProperties:

  • Resource: The application Id URI of the WordPress application, listed in the app registration's Overview section. In most cases this is the URL of your custom WordPress domain.
  • AzureTenant: The Id of the Azure AD tenant where the applications are registered.

Example connection string:

AuthScheme=AzureAD;URL=YourWordpressSiteURL;InitiateOAuth=GETANDREFRESH;OAuthClientId=3ea1c786-d527-4399-8c3b-2e3696ae4b48;OauthClientSecret=xxx;CallbackUrl=https://localhost:33333;SSOProperties='Resource=https://YourWordpressSite/wp-content/plugins/miniorange-saml-20-single-sign-on;AzureTenant=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
You are now ready to connect.

PingFederate

To connect to PingFederate, set the AuthScheme to PingFederate.

Before connecting, ensure that your WordPress site is configured with a PingFederate SSO plugin and that the authenticating user is provisioned in the PingFederate Data Store.

Set the following connection properties:

  • User: The PingFederate user. You must also add this user to PingFederate Data Stores. When connecting with a browser, you are redirected to the PingFederate login page to complete authentication.
  • Password: The PingFederate user's password.
  • SSOLoginURL: The PingFederate SSO login URL.
  • SSOExchangeURL (optional): The URL used for exchanging the SAML token for WordPress credentials. If not provided, the connector attempts to construct it automatically.

Example connection string:

AuthScheme=PingFederate;URL=https://yourwordpresssite.com;User=myuser@mydomain;Password=mypassword;SSOLoginURL=https://idp.example.com/idp/startSSO.ping;

Connecting to WordPress Online

WordPress Online supports two types of authentication methods:

  1. OAuth 2.0 authentication
  2. OAuth Password authentication

OAuth 2.0 Authentication

OAuth 2.0 is a protocol that allows applications to interact with blogs on WordPress, Your Way, and self-hosted WordPress sites running Jetpack.

The two authentication endpoints are the authorization endpoint and the token request endpoint.

  • https://public-api.wordpress.com/oauth2/authorize
  • https://public-api.wordpress.com/oauth2/token

Before you begin, you must create and register a custom OAuth application with WordPress.com, as described in Creating a Custom OAuth Application. This application provides the client Id, client secret, and redirect URI required to authenticate your application and verify API calls. You can create or manage your applications in the WordPress Applications Manager.

Use these values with the authorization endpoints, which require the following parameters:

When you are ready to connect, set the following connection properties:

There is an optional parameter available that can be used:

  • Scope: Defines the level of access that the authentication token grants to your application. Depending on the value set (or omitted), different access is allowed. Supported values include:
    • Auth: Grants access to /me endpoints for WordPress.com Connect.
    • Global: Grants full access to all the blogs associated with the user's account, including any Jetpack-connected sites. If omitted, access is limited to a single blog.

OAuth Password Authentication

Set the following connection properties:

  • Schema: WordPressOnline.
  • AuthScheme: OAuthPassword.
  • URL: Your WordPress Online URL.
  • OAuthClientId: The client Id assigned when you registered your custom OAuth application.
  • OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.
  • User: Your username.
  • Password: Your password.

Example connection strings:

AuthScheme=OAuthPassword;Schema=WordPressOnline;URL=https://example.wordpress.com;OAuthClientId=yourClientId;OAuthClientSecret=yourClientSecret;User=yourUser;Password=yourPassword;

AuthScheme=OAuth;Schema=WordPressOnline;URL=https://example.wordpress.com;InitiateOAuth=GETANDREFRESH;OAuthClientId=yourClientId;OAuthClientSecret=yourClientSecret;

CData Python Connector for WordPress

Configuring JNI

Java Native Interface (JNI) is a standard programming interface for writing Java native methods and embedding the Java virtual machine into native applications.

The connector leverages the JNI for improved performance on Mac and Linux.

Configure the Config INI File

The Linux and Mac editions of the WordPress python connector are configured with an ini file. This file is used to set several parameters, including JNI behavior. This file is to be located in:

{path_to_distribution_site-packages}/cdata/config.ini

Ensure that any configuration properties you set in the ini file fall under the following section name (adjust the 311 number if you are using an different python version from 3.11):

  • For Linux:
    [wordpress.cpython-311-x86_64-linux-gnu.so]
  • For Mac:
    [wordpress.cpython-311-darwin.so]

Configure the JNI connector's behavior by editing the properties in the connector's config.ini file. The connector can be configured as follows:

  • LOGFILE: Set this the same way as the CDATA_LOGFILE envrionment variable below.
  • JAVA_HOME: Configure the path to the JVM library location used to launch the JVM.
  • CLASS_PATH: Use a colon-separated list to configure the paths to the third-party jar libraries.

Configure Environment Variables

Additionally, set the following environment variables:

  • CDATA_JAVA_HOME: Configure the path to the JVM library location used to launch the JVM.
  • CDATA_JVM_OPTIONS: Place JVM options here.
  • CDATA_LOGFILE: Set this in the following scheme: <SCHEME>://<TAG>[|<LEVEL>]

    • SCHEME: The options are STDOUT, FILE.
      • STDOUT: Both the native wrapper and odbc core log into stdout. The Logfile and Verbosity properties can override the behavior of ODBC core.
      • FILE: The native wrapper logs into <FILENAME> while the odbc core logs into <FILENAME>.driver.log. The Logfile and Verbosity properties can override the behavior of ODBC core.
    • TAG
      • For STDOUT, set this to 1. For FILE, set this to the filename.
    • LEVEL
      • Set to one of: FATAL | ERROR | WARNING | INFO | DEBUG

The following are some examples of this syntax:

  • STDOUT://1|DEBUG
  • FILE:///tmp/my_py.log|DEBUG

Custom Logger

The Python connector supports a custom logging mechanism for redirecting log output to any destination, such as a cloud storage service or logging framework. Use setCustomLoggerFactory() to register a factory function that creates a logger instance for each connection.

The factory function receives the context string from the Logfile connection property (the portion after CUSTOM://) and must return an object with a writeLog(verbosity, message) method.

To enable custom logging:

  1. Call setCustomLoggerFactory() with your factory function before opening connections.
  2. Set Logfile to CUSTOM:// followed by a context string to identify the connection.
  3. Set Verbosity to the desired log level.

The following example demonstrates a custom logger factory that creates a separate logger instance per connection:

import cdata.wordpress as mod
import time

class MyLogger:
    def __init__(self, loggerId):
        self.loggerId = loggerId
    def writeLog(self, verbosity, message):
        print("[MyLogger " + self.loggerId + "] " + message)

def createLogger(context):
    return MyLogger(context[len("MyLoggerId="):])

mod.setCustomLoggerFactory(createLogger)

conn1 = mod.connect("...;Logfile=CUSTOM://MyLoggerId=1;Verbosity=2;")
# do something with conn1
time.sleep(1)  # Wait for logs to flush from conn1

conn2 = mod.connect("...;Logfile=CUSTOM://MyLoggerId=2;Verbosity=2;")
# do something with conn2
time.sleep(1)  # Wait for logs to flush from conn2

CData Python Connector for WordPress

Advanced Settings

Customizing the SSL Configuration

By default, the connector attempts to negotiate SSL/TLS by checking the server's certificate against the system's trusted certificate store. To specify another certificate, see the SSLServerCert property for the available formats to do so.

Connecting Through a Firewall or Proxy

HTTP Proxies

To connect through the Windows system proxy, you do not need to set any additional connection properties. To connect to other proxies, set ProxyAutoDetect to false.

In addition, to authenticate to an HTTP proxy, set ProxyAuthScheme, ProxyUser, and ProxyPassword, in addition to ProxyServer and ProxyPort.

Other Proxies

Set the following properties:

CData Python Connector for WordPress

Changelog

General Changes

DateVersionSourceCategoryTypeDescription
2026-05-2726.0.9643GeneralConnectionRemoved
  • Removed the deprecated ReplaceInvalidTypesWithNull connection property. Use the ReplaceInvalidValuesWithNull property instead.
2026-05-2226.0.9638PythonRemoved
  • Remove support for Intel x64 architecture on macOS
2026-05-1526.0.9631WordPressData ModelAdded
  • Added the following entities: AgencySites and AgencySitesPending views, StagingSites table, and ProvisionAgencySite and GetAutomatedTransferStatus stored procedures.
2026-05-0726.0.9623GeneralData ModelAdded
  • Added the ColumnCapabilities column to the sys_tablecolumns system table. This column is a bit mask denoting the column's write capabilities.
2026-05-0726.0.9623PythonChanged
  • Updated embedded JRE to jre-17.0.19+10 (Linux x64 / MacOs x64).
2026-04-1526.0.9601GeneralQuery ExecChanged
  • String comparisons using GREATER, LESS, and CONTAINS operators are now case-insensitive by default.
2026-04-0826.0.9594WordPressSecurityChanged
  • TLS 1.3 is now supported by default for HTTP connections.
2026-03-2325.0.9578WordPressData ModelRemoved
  • Removed support for the Members table.
2026-01-1325.0.9509GeneralAdded
  • Added support for the REGEXP_REPLACE() string function.
2025-12-2125.0.9486PythonAdded
  • Added support for custom loggers in Python connectors on Linux and macOS.
2025-12-0525.0.9470GeneralAdded
  • Added support for the INSERT INTO SELECT statement, with driver-side execution for providers that do not support the operation natively.
2025-11-1225.0.9447WordPressAdded
  • Added the DeleteUser stored procedure to the WordPress schema.
2025-10-3025.0.9434PythonChanged
  • Updated embedded JRE to jre-17.0.17+10 (Linux x64 / MacOs x64).
2025-10-0625.0.9410GeneralAdded
  • Support for parsing datetime formats using ".S" and ",S" for milliseconds and nanoseconds.
2025-09-2625.0.9400WordPressChanged
  • Changed the default behavior of the Posts table in the WordPress Data Model to return posts from all statuses instead of only published posts.
2025-09-2325.0.9397WordPressAdded
  • Added support for the WordPress Types endpoint, which lists the types associated with each WordPress post.
2025-09-1225.0.9386GeneralAdded
  • Added the IsInsertable, IsUpdateable, and IsDeleteable columns to the sys_tables table.
2025-09-1025.0.9384GeneralChanged
  • All columns in statically defined Views are now reported as read-only.
2025-09-0325.0.9377GeneralChanged
  • Corrected the behavior when IN criteria with NULL values are used in the projection part. It now returns NULL instead of 0. For example, "NULL IN (1,2)" returns "NULL".
2025-09-0125.0.9375GeneralAdded
  • Added support for using the CAST function with infinity values. This function can cast "inf" and "-inf" to DOUBLE, FLOAT, or REAL.
2025-08-2125.0.9364GeneralChanged
  • Report behavior change:
    • Fixed inconsistent string value comparisons in non-table queries.
    • For example, "SELECT 'A' = 'a'" previously returned false, but it now returns true.
2025-08-1325.0.9356GeneralChanged
  • Changed the maximum number of pages held in memory from 15 to 5 for the page providers to decrease heap usage.
2025-07-2125.0.9333WordPressAdded
  • Added the Scope connection property.
2025-07-0725.0.9319PythonRemoved
  • Removed the 32-bit version of Windows Python.
2025-07-0225.0.9314PythonRemoved
  • Removed support for Python 3.9.
2025-06-2525.0.9307GeneralRemoved
  • Removed the "ADLS Gen 1" value from the ConnectionType property.
2025-06-2525.0.9307PythonAdded
  • Added support for Python 3.13 in Windows, Linux, and Mac editions.
2025-06-2525.0.9307PythonRemoved
  • Removed support for Python 3.8 as it is no longer supported.
2025-06-2425.0.9306WordPressAdded
  • Added support for Okta, Ping Federate, and Azure AD IDP.
2025-06-2025.0.9302GeneralAdded
  • Created the following functions:
    • TEXT_ENCODE: encodes a string into a different charset (UTF8 → UTF7 and returns a binary array as the result).
    • TEXT_DECODE: takes a binary array and decodes it back into a string when provided the charset.
    • BASE64_ENCODE: takes a binary array and encodes it as a base64 string (varchar).
    • BASE64_DECODE: takes a base 64-encoded string and decodes it into a binary array.
2025-06-1825.0.9300GeneralChanged
  • The internal code for exception handling has been refactored. Exception messages returned during certain error conditions may now have different wording or formatting.
2025-06-1825.0.9300WordPressRemoved
  • Removed the implementation for INSERT for the Media table.
2025-06-1225.0.9294WordPressChanged
  • in the Pages table, renamed the MediaId column to FeaturedMediaId.
  • In the Posts table, renamed the Url column to Link, and the MediaId column to FeaturedMediaId.
2025-05-2725.0.9278GeneralRemoved
  • Removed the "Proprietary" enum option from ProxyAuthscheme.
2025-05-1225.0.9263PythonChanged
  • Updated embedded JRE to jre-17.0.15+6 (Linux x64 / MacOS x64) and jre-17.0.15+6 (MacOS aarch64).
2025-02-1524.0.9177GeneralAdded
  • Added support for converting unsigned integer types to the nearest signed data type that has enough precision to hold the unsigned value.This is done for JDBC only because it does not have support for unsigned data types.
2024-12-0624.0.9106WordPressAdded
  • Added the OAuthClient AuthScheme.
2024-11-2724.0.9097GeneralAdded
  • Added ThreadId to LogModule output. Logfile lines now include the Thread ID associated with the action being performed.
2024-09-2724.0.9036WordPressAdded
  • Added support for the Members table.
2024-06-0524.0.8922PythonAdded
  • Added support for Python 3.12.
2024-05-0924.0.8895GeneralChanged
  • The ROUND function previously did not accept negative precision values. That feature has now been restored.
2024-03-1523.0.8840GeneralAdded
  • Created a new SQL function called STRING_COMPARE that provides java's String.compare() ability to SQL queries. Returns a number representative of the compared value of two strings
2023-12-0823.0.8742WordPressAdded
  • Added Plugins table.
2023-11-2923.0.8733GeneralChanged
  • The ROUND function doesn't accept the negative precision values anymore.
2023-11-2923.0.8733GeneralChanged
  • The returning types of the FDMonth, FDQuarter, FDWeek, LDMonth, LDQuarter, LDWeek functions are changed from Timestamp to Date.
  • The return type of the ABS function will be consistent with the parameter value type.
2023-11-2823.0.8732GeneralAdded
  • Added the HMACSHA256 formatter to allow for secrets to be decoded if it is in base64 format
2023-09-1623.0.8659WordPressAdded
  • Added Context pseudo column to Posts, Users, Comments, and Taxonomies tables.
2023-08-2923.0.8641PythonAdded
  • Added support for SQLAlchemy 2.0.
2023-06-2023.0.8571GeneralAdded
  • Added the new sys_lastresultinfo system table.
2023-05-1923.0.8539PythonAdded
  • Added support for Python 3.11 on Windows, Linux and Mac.
2023-05-1623.0.8536PythonRemoved
  • Removed support for Python 3.7 on Windows and Linux
2023-04-2523.0.8515GeneralRemoved
  • Removed support for the SELECT INTO CSV statement. The core code doesn't support it anymore.
2022-12-1422.0.8383GeneralChanged
  • Added the Default column to the sys_procedureparameters table.
2022-11-1522.0.8354PythonChanged
  • Updated embedded JRE to jre8u345-b01(Linux x64 / MacOS x64) and jre-17.0.5+8(MacOS aarch64).
2022-09-3022.0.8308GeneralChanged
  • Added the IsPath column to the sys_procedureparameters table.
2022-05-1822.0.8173PythonAdded
  • Added support for Python 3.10 on Windows, Linux, and Mac
  • Added support for Python 3.9 on Mac
  • Added support for Mac M1
2022-05-1822.0.8173PythonRemoved
  • Removed support for Python 3.6 on Windows and Linux
2021-09-0221.0.7915GeneralAdded
  • Added support for the STRING_SPLIT table-valued function in the CROSS APPLY clause.
2021-08-0721.0.7889GeneralChanged
  • Added the KeySeq column to the sys_foreignkeys table.
2021-08-0621.0.7888GeneralChanged
  • Added the new sys_primarykeys system table.
2021-07-2321.0.7874GeneralChanged
  • Updated the Literal Function Names for relative date/datetime functions. Previously, relative date/datetime functions resolved to a different value when used in the projection as opposed to the predicate. For example: SELECT LAST_MONTH() AS lm, Col FROM Table WHERE Col > LAST_MONTH(). Formerly, the two LAST_MONTH() methods would resolve to different datetimes. Now, they will match.
  • As a replacement for the previous behavior, the relative date/datetime functions in the criteria may have an 'L' appended to them. For example: WHERE col > L_LAST_MONTH(). This will continue to resolve to the same values that were previously calculated in the criteria. Note that the "L_" prefix will only work in the predicate - it not available for the projection.
2021-04-2521.0.7785GeneralAdded
  • Added support for handling client side formulas during insert / update. For example: UPDATE Table SET Col1 = CONCAT(Col1, " - ", Col2) WHERE Col2 LIKE 'A%'
2021-04-2321.0.7783GeneralChanged
  • Updated how display sizes are determined for varchar primary key and foreign key columns so they will match the reported length of the column.
2021-04-1621.0.7776GeneralAdded
  • Non-conditional updates between two columns is now available to all drivers. For example: UPDATE Table SET Col1=Col2
2021-04-1621.0.7776GeneralChanged
  • Reduced the length to 255 for varchar primary key and foreign key columns.
2021-04-1621.0.7776GeneralChanged
  • Updated implicit and metadata caching to improve performance and support for multiple connections. Old metadata caches are not compatible - you need to generate new metadata caches if you are currently using CacheMetadata.
2021-04-1621.0.7776GeneralChanged
  • Updated index naming convention to avoid duplicates.

CData Python Connector for WordPress

Using the Connector

This section provides a walk-through for writing WordPress data access code in Python script.

For more information on the available data source entities and how to query them with SQL, see Data Model. For the SQL syntax, see SQL Compliance.

Connecting from Code

For information on how to deploy the connector and configure the connection to WordPress, see Package Installation and Establishing a Connection.

For information on how to connect with the wordpress.connector module and its related classes, see Connecting.

Executing SQL

The connection's cursor object is used to directly execute SQL queries. For information on how to execute SELECT statements and process the returned result sets, see Querying Data. For information on to modify the data in WordPress with INSERT, UPDATE, and DELETE statements, see Modifying Data .

Executing Stored Procedures

You can call stored procedures by using the EXECUTE statement. For further information, see Calling Stored Procedures.

CData Python Connector for WordPress

Connecting

Connecting with the cdata.wordpress Module:

The connector's module is used directly to establish a connection with the data source. It does this by using a connection string as its argument. For example:
import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

Once the connection is created, you can use it to execute subsequent SQL queries.

CData Python Connector for WordPress

Querying Data

After connecting as described in Connecting, you can use the open connection to execute SQL statements.

Executing Queries

To execute SQL statements that return data, use the execute() method. Once a query is executed, the result set is fetched from the cursor. This result set can then be iterated over to process the records individually.

For example:

cur = conn.execute("SELECT Id, Name FROM Categories")
rs = cur.fetchall()
for row in rs:
	print(row)

Parameterized Queries

Various Python collections, such as arrays and tuples, can act as additional arguments for the execute() method. This enables you to parameterize the queries executed and help to prevent SQL Injection.

For example:

cmd = "SELECT Id, Name FROM Categories WHERE Id = ?"
params = ["1668776136772254"]
cur = conn.execute(cmd, params)
rs = cur.fetchall()
for row in rs:
	print(row)

CData Python Connector for WordPress

Modifying Data

The connection is also used to issue INSERT, UPDATE, and DELETE commands to the data source. Parameters can be used with these statements if desired.

Note that the connector does not support transactions. As with normal write operations, all SQL statements executed by this connector affect the data source immediately. Call the connection's commit() method following the execution.

Insert

The following example adds a new record to the table:
cmd = "INSERT INTO Categories (Id, Name) VALUES (?, ?)"
params = ["1668776136772254", "My goldfish"]
cur = conn.execute(cmd, params)
print("Records affected: ", cur.rowcount)

Update

The following example modifies an existing record in the table:
cmd = "UPDATE Categories SET Name = ? WHERE Id = ?"
params = ["My goldfish", "25"]
cur = conn.execute(cmd, params)
print("Records affected: ", cur.rowcount)

Delete

The following example removes an existing record from the table:

cmd = "DELETE FROM Categories WHERE Id = ?"
params = ["25"]
cur = conn.execute(cmd, params)
print("Records affected: ", cur.rowcount)

CData Python Connector for WordPress

Calling Stored Procedures

You can execute stored procedures using either the execute() or callproc() method of the connection.

Calling Stored Procedures Using Execute()

When you call stored procedures by issuing EXECUTE commands, the stored procedure arguments are parameterized. For example:
cmd = "EXECUTE SelectEntries ObjectName = ?"
params = ["Account"]
conn.execute(cmd, params)

Calling Stored Procedures Using Callproc()

When you call stored procedured by issuing the callproc() method, the stored procedure arguments are a procedure name and a list of parameters. For example:
cur = conn.cursor()
params = ["Account"]
cur.callproc("SelectEntries", params)

CData Python Connector for WordPress

Using from Tools

The connector is integrated with other tools and packages within Python.

Python Integration Guides

The following sections show how to create and use connections with the connector in common packages in Python:

Complete List of WordPress Integration Quickstarts

For information on connecting from other applications, see WordPress integration guides.

CData Python Connector for WordPress

From SQLAlchemy

The CData Python Connector for WordPress includes a Dialect class that enables integration with SQLAlchemy. Bear in mind that several aspects of connector functionality are not currently supported in SQLAlchemy 2.0 or above. If necessary, downgrade SQLAlchemy to version 1.4 or 1.3 before using this connector.

The following sections detail various aspects of this integration:

Connecting From SQLAlchemy

To construct a URL with which SQLAlchemy loads and uses the appropriate connector automatically, see Connecting

Reflecting Metadata With SQLAlchemy

To learn how to model WordPress tables with mapped classes, see Reflecting Metadata.

Querying Data From SQLAlchemy

To learn how to use mapped classes to query the associated tables, see Querying Data.

Modifying Data From SQLAlchemy

The connector provides INSERT/UPDATE/DELETE functionality in SQLAlchemy. To learn how to call the session's execute() method to affect the data in the data source, see Modifying Data.

CData Python Connector for WordPress

Connecting

Connecting With a Dialect URL

Establishing a connection using SQLAlchemy requires a specific URL format. For this connector, you can create the engine using either of the following URL formats:

Format 1


from sqlalchemy import create_engine
engine = create_engine("wordpress:///?URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

Format 2


from sqlalchemy import create_engine
engine = create_engine("wordpress://User:Password@/?URL=http://www.yourwordpresshost.com")

For SQLAlchemy 2.0, the dialect name is wordpress_2. To establish a connection, use the following URL format:

from sqlalchemy import create_engine
engine = create_engine("wordpress_2:///?URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

CData Python Connector for WordPress

Reflecting Metadata

SQLAlchemy can act as an Object-relational Map (ORM). This enables you to treat records of a database table as instantiable records. To leverage this functionality, you must reflect the underlying metadata in one of the following ways.

Note: The following examples employ SQLAlchemy 1.4.

Modeling Data Using a Mapping Class

Use "sqlalchemy.ext.declarative.declarative_base" to declare a mapping class for the table you wish to model in the ORM. A known table in the data model is modeled either partially or completely, as shown in the following example:
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Categories(Base):
	__tablename__ = "Categories"
	Id = Column(String, primary_key=True)
	Id = Column(String)
	Name = Column(String)

Automatically Reflecting Metadata

Rather than mapping tables manually, SQLAlchemy can discover the metadata for one or more tables automatically. To accomplish this across the entire data model, use automap_base:
from sqlalchemy import MetaData
from sqlalchemy.ext.automap import automap_base
meta = MetaData()
abase = automap_base(metadata=meta)
abase.prepare(autoload_with=engine)
Categories = abase.classes.Categories

You can also reflect a single table with an inspector. When reflecting this way, providing a list of specific columns to map is optional:

from sqlalchemy import MetaData, Table
from sqlalchemy import inspect
meta = MetaData()
insp = inspect(engine)
Categories_table = Table("Categories", meta)
insp.reflect_table(Categories_table, ["Id","Name"])

CData Python Connector for WordPress

Querying Data

After you use the steps in Connecting to connect, and use one of the methods in Reflecting Metadata to reflect some of the metadata, you can use a session object to query data.

Querying Data Using the Query Method

If the mapping class has been prepared, use it with a session object to query the data source. After binding the engine to the session, provide the mapping class to the session's query method.

For example:

engine = create_engine("wordpress:///?URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
factory = sessionmaker(bind=engine)
session = factory()
for instance in session.query(Categories).filter_by(Id="1668776136772254"):
	print("Id: ", instance.Id)
	print("Id: ", instance.Id)
	print("Name: ", instance.Name)
	print("---------")

Querying Data Using the Execute Method

The session object can also run the query with the execute() method alongside the appropriate Table object. Assuming you have an active session, the following is just as viable:
Categories_table = Categories.metadata.tables["Categories"]
for instance in session.execute(Categories_table.select().where(Categories_table.c.Id == "1668776136772254")):
	print("Id: ", instance.Id)
	print("FullName: ", instance.Name)
	print("City: ", instance.BillingCity)
	print("---------")

CData Python Connector for WordPress

Executing JOINs

Implicit Joining

If mapped classes of related WordPress objects have a singular foreign key relationship, the classes are implicitly joined. After importing the necessary objects, a relationship is established between your two mapped classes, as in the example below:
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer, DateTime, ForeignKey
from sqlalchemy.orm import sessionmaker, relationship

Base = declarative_base()
class Contact(Base):
	__tablename__ = "Contact"
	Id = Column(Integer, primary_key=True)
	Name = Column(String)
	Email = Column(String)
	BirthDate = Column(DateTime)
	AccountId = Column(String, ForeignKey("Account.Id"))
	Account_Link = relationship("Account", back_populates="Contact_Link")

class Account(Base):
	__tablename__ = "Account"
	Id = Column(String, primary_key=True)
	Name = Column(String)
	BillingCity = Column(String)
	NumberOfEmployees = Column(Integer)
	Contact_Link = relationship("Contact", order_by=Contact.Id, back_populates="Account_Link")

Once the relationship is established, the tables are queried simultaneously using the session's query() method. For example:

rs = session.query(Account, Contact).filter(Account.Id == Contact.AccountId)
for Ac, Ct in rs:
  print("AccountId: ", Ac.Id)
  print("AccountName: ", Ac.Name)
  print("ContactId: ", Ct.Id)
  print("ContactName: ", Ct.Name)

Other Join Forms

In situations where mapped classes have either no foreign keys or multiple foreign keys, you may need different forms of the JOIN query to accommodate them. Using the earlier classes as examples, the following JOIN queries are possible as well:
  • Explicit condition (necessary if there are no foreign keys in your mapped classes):
    rs = session.query(Account, Contact).join(Contact, Account.Id == Contact.AccountId)
    for Ac, Ct in rs:
  • Left-to-right relationship:
    rs = session.query(Account, Contact).join(Account.Contact_Link)
    for Ac, Ct in rs:
  • Left-to-right relationship with explicit target:
    rs = session.query(Account, Contact).join(Contact, Account.Contact_Link)
    for Ac, Ct in rs:
  • String form of a left-to-right relationship:
    rs = session.query(Account, Contact).join("Contact_Link")
    for Ac, Ct in rs:

CData Python Connector for WordPress

Other SQL Clauses

SQLAlchemy ORM also exposes support for other clauses in SQL, such as ORDER BY, GROUP BY, LIMIT, and OFFSET. All of these are supported by this connector:

ORDER BY

The following example sorts by a specified column using the session object's query() method:
rs = session.query(Categories).order_by(Categories.Count)
for instance in rs:
	print("Id: ", instance.Id)
	print("Id: ", instance.Id)
	print("Name: ", instance.Name)
	print("---------")

You can also use the session object's execute() method perform an ORDER BY. For example:

rs = session.execute(Categories_table.select().order_by(Categories_table.c.Count))
for instance in rs:

GROUP BY

The following example uses the session object's query() method to group records with a specified column:
rs = session.query(func.count(Categories.Id).label("CustomCount"), Categories.Id).group_by(Categories.Id)
for instance in rs:
	print("Count: ", instance.CustomCount)
	print("Id: ", instance.Id)
	print("---------")

You can also use the session object's execute() method to perform a GROUP BY:

rs = session.execute(Categories_table.select().with_only_columns([func.count(Categories_table.c.Id).label("CustomCount"), Categories_table.c.Id]).group_by(Categories_table.c.Id))
for instance in rs:

LIMIT and OFFSET

The following example uses the session object's query() method to skip the first 100 records and fetch the following 25:
rs = session.query(Categories).limit(25).offset(100)
for instance in rs:
	print("Id: ", instance.Id)
	print("Id: ", instance.Id)
	print("Name: ", instance.Name)
	print("---------")

You can also use the session object's execute() method to set a LIMIT or OFFSET:

rs = session.execute(Categories_table.select().limit(25).offset(100))
for instance in rs:

CData Python Connector for WordPress

Aggregate Functions

Certain aggregate functions can also be used within SQLAlchemy by using the func module.

To import this module, execute:

from sqlalchemy.sql import func

Once func is imported, the following aggregate functions are available:

COUNT

The following example counts the number of records in a set of groups using the session object's query() method.
rs = session.query(func.count(Categories.Id).label("CustomCount"), Categories.Id).group_by(Categories.Id)
for instance in rs:
	print("Count: ", instance.CustomCount)
	print("Id: ", instance.Id)
	print("---------")

You can also execute COUNT using the session object's execute() method:

rs = session.execute(Categories_table.select().with_only_columns([func.count(Categories_table.c.Id).label("CustomCount"), Categories_table.c.Id])group_by(Categories_table.c.Id))
for instance in rs:

SUM

This example calculates the cumulative amount of a numeric column in a set of groups.

rs = session.query(func.sum(Categories.Count).label("CustomSum"), Categories.Id).group_by(Categories.Id)
for instance in rs:
	print("Sum: ", instance.CustomSum)
	print("Id: ", instance.Id)
	print("---------")

You can also invoke SUM using the session object's execute() method.

rs = session.execute(Categories_table.select().with_only_columns([func.sum(Categories_table.c.Count).label("CustomSum"), Categories_table.c.Id]).group_by(Categories_table.c.Id))
for instance in rs:

AVG

This example uses the session object's query() method to calculate the average amount of a numeric column in a set of groups:
rs = session.query(func.avg(Categories.Count).label("CustomAvg"), Categories.Id).group_by(Categories.Id)
for instance in rs:
	print("Avg: ", instance.CustomAvg)
	print("Id: ", instance.Id)
	print("---------")

You can also use the session object's execute() method to invoke AVG:

rs = session.execute(Categories_table.select().with_only_columns([func.avg(Categories_table.c.Count).label("CustomAvg"), Categories_table.c.Id]).group_by(Categories_table.c.Id))
for instance in rs:

MAX and MIN

This example finds the maximum value and minimum value of a numeric column in a set of groups.
rs = session.query(func.max(Categories.Count).label("CustomMax"), func.min(Categories.Count).label("CustomMin"), Categories.Id).group_by(Categories.Id)
for instance in rs:
	print("Max: ", instance.CustomMax)
	print("Min: ", instance.CustomMin)
	print("Id: ", instance.Id)
	print("---------")

You can also use the session object's execute() method to invoke MAX and MIN:

rs = session.execute(Categories_table.select().with_only_columns([func.max(Categories_table.c.Count).label("CustomMax"), func.min(Categories_table.c.Count).label("CustomMin"), Categories_table.c.Id]).group_by(Categories_table.c.Id))
for instance in rs:

CData Python Connector for WordPress

Modifying Data

Commands can be executed individually by the session with a call to "execute()".

Obtaining the Table Object

The query supplied to this method is constructed using the associated Table object of a mapped class. This Table object is obtained from the mapped class's metadata field, as below:

Categories_table = Categories.metadata.tables["Categories"]

Once the table object is obtained, the write operations are executed in the following ways. The queries are executed immediately without the need for a call to "commit()":

Insert

The following example adds a new record to the table:

session.execute(Categories_table.insert(), {"Id": "1668776136772254", "Name": "My goldfish"})

Update

The following example modifies an existing record in the table:

session.execute(Categories_table.update().where(Categories_table.c.Id == "25").values(Id="1668776136772254", Name="My goldfish"))

Delete

The following example removes an existing record from the table:

session.execute(Categories_table.delete().where(Categories_table.c.Id == "25"))

CData Python Connector for WordPress

From Pandas

When combined with the connector, Pandas can be used to generate data frames that contain your WordPress data. Once created, a data frame can be passed to various other Python packages.

Connecting

Pandas relies on an SQLAlchemy engine to execute queries. Before you can use Pandas you must import it:
import pandas as pd
from sqlalchemy import create_engine
engine = create_engine("wordpress:///?URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

Querying Data

In Pandas, SELECT queries are provided in a call to the read_sql() method, alongside a relevant connection object. Pandas executes the query on that connection, and returns the results in the form of a data frame, which can be used for a variety of purposes.
df = pd.read_sql("""
	SELECT
	   Id,
	   Name,
     $exNumericCol;
	FROM Categories;""", engine)
print(df)

Modifying Data

To insert new records into a table, create a new data frame, and define its fields accordingly. When that is done, call to_sql() on the data frame to perform the INSERT operation with the connector, as shown in the example below. You must set the "if _exists" argument to "append" to prevent Pandas from attempting building the table from scratch. To prevent Pandas from writing the data frame index as a column, set index=False.
df = pd.DataFrame({"Id": ["1668776136772254"], "Name": ["My goldfish"]})
df.to_sql("Categories", con=engine, if_exists="append", index=False)

CData Python Connector for WordPress

From Matplotlib

Matplotlib contains a number of tools that can graphically model WordPress data after being fed a data frame From Pandas.

Using PyPlot

Before any Matplotlib tool, such as pyplot, can be used, it must be imported:
from matplotlib import pyplot as plt

Once a Pandas data frame is obtained, it can be used to create a plot visualizing WordPress data. For example, the following plot generates and displays a bar graph relating Id and Count values:

df.plot(kind="bar", x="Id", y=["Count"])
plt.show()

CData Python Connector for WordPress

From Petl

The connector can be used to create ETL applications and pipelines for CSV data in Python using Petl.

Install Required Modules

Install the Petl modules using the pip utility.
pip install petl

Connecting

After you import the modules, including the CData Python Connector for WordPress, you can use the connector's connect function to create a connection using a valid WordPress connection string. If you prefer not to use a direct connection, you can use a SQLAlchemy engine.
import petl as etl
import cdata.wordpress as mod
cnxn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")

Extract, Transform, and Load the WordPress Data

Create a SQL query string and store the query results in a DataFrame.
sql = "SELECT	Id, Name FROM Categories "
table1 = etl.fromdb(cnxn,sql)

Loading Data

With the query results stored in a DataFrame, you can load your data into any supported Petl destination. The following example loads the data into a CSV file.
etl.tocsv(table1,'output.csv')

Modifying Data

Insert new rows into WordPress tables using Petl's appenddb function.
table1 = [['Id','Name'],['1668776136772254','My goldfish']]
etl.appenddb(table1,cnxn,'Categories')

CData Python Connector for WordPress

Schema Discovery

The extension supports schema discovery by using SQL queries to available System Tables.

Using SQL

The following sections describe the discovery of metadata through several System Tables:

CData Python Connector for WordPress

Tables and Views

The connector possesses system tables that are used to discover the tables and views available in the data model. Of these system tables, "sys_tables" and "sys_views" are used to fetch information about the available tables and views respectively:

Tables


import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tables"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

Views


import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_views"
cur.execute(cmd, params)
rs = cur.fetchall()
for row in rs:
	print(row)

CData Python Connector for WordPress

Columns

The available columns for any given table are fetched from a system table called "sys_tablecolumns". A specific table name is provided in the WHERE criteria to restrict the table from which the column information is fetched:

import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tablecolumns WHERE TableName = 'Categories'"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

CData Python Connector for WordPress

Procedures

Procedures

A system table called "sys_procedures" is queried to obtain the available stored procedures that are executed:
import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_procedures"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

Parameters

The input parameters of any stored procedure are similarly obtained from the "sys_procedureparameters" system table:
import cdata.wordpress as mod
conn = mod.connect("URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SelectEntries'"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

CData Python Connector for WordPress

Advanced Features

This section details a selection of advanced features of the WordPress connector.

User Defined Views

The connector supports the use of user defined views, virtual tables whose contents are decided by a pre-configured user defined query. These views are useful when you cannot directly control queries being issued to the drivers. For an overview of creating and configuring custom views, see User Defined Views .

SSL Configuration

Use SSL Configuration to adjust how connector handles TLS/SSL certificate negotiations. You can choose from various certificate formats;. For further information, see the SSLServerCert property under "Connection String Options" .

Firewall and Proxy

Configure the connector for compliance with Firewall and Proxy, including Windows proxies and HTTP proxies. You can also set up tunnel connections.

Caching Data

Caching Data enables faster access to data and reduces the number of API calls, improving performance. The connector supports a simple caching model where multiple connections can also share the cache over time. When configuring the cache connection, you can specify automatic or explicit data caching.

Query Processing

The connector offloads as much of the SELECT statement processing as possible to WordPress and then processes the rest of the query in memory (client-side).

For further information, see Query Processing.

Logging

For an overview of configuration settings that can be used to refine CData logging, see Logging. Only two connection properties are required for basic logging, but there are numerous features that support more refined logging, which enables you to use the LogModules connection property to specify subsets of information to be logged.

Exception Handling

For an overview of how exceptions are reported and the components of an exception, see Exception Handling.

CData Python Connector for WordPress

User Defined Views

The CData Python Connector for WordPress supports the use of user defined views: user-defined virtual tables whose contents are decided by a preconfigured query. User defined views are useful in situations where you cannot directly control the query being issued to the driver; for example, when using the driver from a tool.

Use a user defined view to define predicates that are always applied. If you specify additional predicates in the query to the view, they are combined with the query already defined as part of the view.

There are two ways to create user defined views:

  • Create a JSON-formatted configuration file defining the views you want.
  • DDL statements.

Defining Views Using a Configuration File

User defined views are defined in a JSON-formatted configuration file called UserDefinedViews.json. The connector automatically detects the views specified in this file.

You can also have multiple view definitions and control them using the UserDefinedViews connection property. When you use this property, only the specified views are seen by the connector.

This user defined view configuration file is formatted so that each root element defines the name of a view, and includes a child element, called query, which contains the custom SQL query for the view.

For example:

{
	"MyView": {
		"query": "SELECT * FROM Categories WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}
Use the UserDefinedViews connection property to specify the location of your JSON configuration file. For example:
"UserDefinedViews", "C:\\Users\\yourusername\\Desktop\\tmp\\UserDefinedViews.json"

Defining Views Using DDL Statements

The connector is also capable of creating and altering the schema via DDL Statements such as CREATE LOCAL VIEW, ALTER LOCAL VIEW, and DROP LOCAL VIEW.

Create a View

To create a new view using DDL statements, provide the view name and query as follows:

CREATE LOCAL VIEW [MyViewName] AS SELECT * FROM Customers LIMIT 20;

If no JSON file exists, the above code creates one. The view is then created in the JSON configuration file and is now discoverable. The JSON file location is specified by the UserDefinedViews connection property.

Alter a View

To alter an existing view, provide the name of an existing view alongside the new query you would like to use instead:

ALTER LOCAL VIEW [MyViewName] AS SELECT * FROM Customers WHERE TimeModified > '3/1/2020';

The view is then updated in the JSON configuration file.

Drop a View

To drop an existing view, provide the name of an existing schema alongside the new query you would like to use instead.

DROP LOCAL VIEW [MyViewName]

This removes the view from the JSON configuration file. It can no longer be queried.

Schema for User Defined Views

In order to avoid a view's name clashing with an actual entity in the data model, user defined views are exposed in the UserViews schema by default. To change the name of the schema used for UserViews, reset the UserViewsSchemaName property.

Working with User Defined Views

For example, a SQL statement with a user defined view called UserViews.RCustomers only lists customers in Raleigh:
SELECT * FROM Customers WHERE City = 'Raleigh';
An example of a query to the driver:
SELECT * FROM UserViews.RCustomers WHERE Status = 'Active';
Resulting in the effective query to the source:
SELECT * FROM Customers WHERE City = 'Raleigh' AND Status = 'Active';
That is a very simple example of a query to a user defined view that is effectively a combination of the view query and the view definition. It is possible to compose these queries in much more complex patterns. All SQL operations are allowed in both queries and are combined when appropriate.

CData Python Connector for WordPress

SSL Configuration

Customizing the SSL Configuration

To enable TLS, set the following:

  • URL: Prefix the connection string with https://

With this configuration, the connector attempts to negotiate TLS with the server. The server certificate is validated against the default system trusted certificate store. You can override how the certificate gets validated using the SSLServerCert connection property.

To specify another certificate, see the SSLServerCert connection property.

CData Python Connector for WordPress

Firewall and Proxy

Connecting Through a Firewall or Proxy

HTTP Proxies

Note: The connector uses the system proxy settings by default, without further configuration needed. If you want to connect to other proxies, set ProxyAutoDetect to False and read further.

To authenticate to an HTTP proxy, set the following:

  • ProxyServer: the hostname or IP address of the proxy server that you want to route HTTP traffic through.
  • ProxyPort: the TCP port that the proxy server is running on.
  • ProxyAuthScheme: the authentication method the connector uses when authenticating to the proxy server.
  • ProxyUser: the username of a user account registered with the proxy server.
  • ProxyPassword: the password associated with the ProxyUser.

Other Proxies

Set the following properties:

CData Python Connector for WordPress

Caching Data

Caching Data

Caching data provides several benefits, including faster access to data and reducing the number of API calls, which improve performance. The connector supports a simple caching model where multiple connections can also share the cache over time. You can enable and configure caching features by setting the necessary connection properties.

Contents

The sections in this chapter detail the connector's caching functionality and link to the corresponding connection properties, as well as SQL statements.

Configuring the Cache Connection

Configuring the Cache Connection describes the properties that you can set when configuring the cache database.

Caching Metadata

Caching Metadata describes the CacheMetadata property. This property determines whether or not to cache the table metadata to a file store.

Automatically Caching Data

Automatically Caching Data describes how the connector automatically refreshes the cache when the AutoCache property is set.

Explicitly Caching Data

Explicitly Caching Data describes how you can decide what data is stored in the cache and when it is updated.

Data Type Mapping

Data Type Mapping shows the mappings between the data types configured in the schema and the data types in the database.

CData Python Connector for WordPress

Configuring the Cache Connection

Configuring the Caching Database

This section describes the properties for caching data to the persistent store of your choice.

CacheLocation

The CacheLocation property species the path to a file-system-based database. When caching is enabled, a file-system-based database is used by default. If CacheLocation is not specified, this database is stored at the path in Location. If neither of these connection properties are specified, the connector uses a platform-dependent default location.

CacheConnection

The CacheConnection property specifies a database driver and the connection string to the caching database.

CacheDriver and CacheProvider

Both the CacheDriver and CacheProvider properties are supported. Each specifies a database driver and the connection string to the caching database. CacheDriver is designed for Linux and MacOS; CacheProvider is Windows-based.

CData Python Connector for WordPress

Automatically Caching Data

Automatically caching data is useful when you do not want to rebuild the cache for each query. When you query data for the first time, the connector automatically initializes and builds a cache in the background. When AutoCache = true, the connector uses the cache for subsequent query executions, resulting in faster response times.

Configuring Automatic Caching

Caching the Categories Table

The following example caches the Categories table in the file specified by the CacheLocation property of the connection string.

SELECT Id, Name FROM Categories WHERE Id = '1668776136772254'

Common Use Case

A common use for automatically caching data is to improve driver performance when making repeated requests to a live data source, such as building a report or creating a visualization. With auto caching enabled, repeated requests to the same data may be executed in a short period of time, but within an allowable tolerance (CacheTolerance) of what is considered "live" data.

CData Python Connector for WordPress

Explicitly Caching Data

With explicit caching (AutoCache = false), you decide exactly what data is cached and when to query the cache instead of the live data. Explicit caching gives you full control over the cache contents by using CACHE Statements. This section describes some strategies to use the caching features offered by the connector.

Creating the Cache

To load data in the cache, issue the following statement.

CACHE SELECT * FROM tableName WHERE ...

Once the statement is issued, any matching data in tableName is loaded into the corresponding table.

Updating the Cache

This section describes two ways to update the cache.

Updating with the SELECT Statement

The following example shows a statement that can update modified rows and add missing rows in the cached table. However, this statement does not delete extra rows that are already in the cache. This statement only merges the new rows or updates the existing rows.

CACHE SELECT * FROM Categories WHERE Id = '1668776136772254'

Updating with the TRUNCATE Statement

The following example shows a statement that can update modified rows and add missing rows in the cached table. This statement can also delete rows in the cache table that are not present in the live data source.

  CACHE WITH TRUNCATE SELECT * FROM Categories WHERE Id = '1668776136772254'
  

Query the Data in Online or Offline Mode

This section describes how to query the data in online or offline mode.

Online: Select Cached Tables

You can use the tableName#CACHE syntax to explicitly execute queries to the cache while still online, as shown in the following example.

SELECT * FROM Categories#CACHE

Offline: Select Cached Tables

With Offline = true, SELECT statements always execute against the local cache database, regardless of whether you explicitly specify the cached table or not. Modification of the cache is disabled in Offline mode to prevent accidentally updating only the cached data. Executing a DELETE/UPDATE/INSERT statement while in Offline mode results in an exception.

The following example selects from the local cache but not the live data source because Offline = true.

SELECT * FROM Categories WHERE Id='1668776136772254' ORDER BY Name ASC

Delete Data from the Cache

You can delete data from the cache by building a direct connection to the database. Note that the connector does not support manually deleting data from the cache.

Common Use Case

A common use for caching is to have an application always query the cached data and only update the cache at set intervals, such as once every day or every two hours. There are two ways in which this can be implemented:

  • AutoCache = false and Offline = false. All queries issued by the application explicitly reference the tableName#CACHE table. When the cache needs to be updated, the application executes a tableName#CACHE ... statement to bring the cached data up to date.
  • Offline = true. Caching is transparent to the application. All queries are executed against the table as normal, so most application code does not need to be aware that caching is done. To update the cached data, simply create a separate connection with Offline = false and execute a tableName#CACHE ... statement.

CData Python Connector for WordPress

Data Type Mapping

The connector maps types from the data source to the corresponding data type available in the chosen cache database. The following table shows the mappings between the data types configured in the schema and the data types in the database. Some schema types have synonyms which are all listed in the Schema column.

Data Type Mapping

Note: String columns can map to different data types depending on their length.

Schema .NET JDBC SQL Server Derby MySQL Oracle SQLite Access
int, integer, int32 Int32 int int INTEGER INT NUMBER integer LONG
smallint, short, int16 Int16 short smallint SMALLINT SMALLINT NUMBER integer SHORT
double, float, real Double double float DOUBLE DOUBLE NUMBER double DOUBLE
date DateTime java.sql.Date date DATE DATE DATE date DATETIME
datetime, timestamp DateTime java.sql.Date datetime TIMESTAMP DATETIME TIMESTAMP datetime DATETIME
time, timespan TimeSpan java.sql.Time time TIME TIME TIMESTAMP datetime DATETIME
string, varchar String java.lang.String If length > 4000: nvarchar(max), Otherwise: nvarchar(length)If length > 32672: LONG VARCHAR, Otherwise VARCHAR(length)If length > 255: LONGTEXT, Otherwise: VARCHAR(length)If length > 4000: CLOB, Otherwise: VARCHAR2(length)nvarchar(length)If length > 255: LONGTEXT, Otherwise: VARCHAR(length)
long, int64, bigint Int64 long bigint BIGINT BIGINT NUMBER bigint LONG
boolean, bool Boolean boolean tinyint SMALLINT BIT NUMBER tinyint BIT
decimal, numeric Decimal java.math.BigDecimal decimal DECIMAL DECIMAL DECIMAL decimal CURRENCY
uuid Guid java.util.UUID nvarchar(length) VARCHAR(length)VARCHAR(length) VARCHAR2(length)nvarchar(length) VARCHAR(length)
binary, varbinary, longvarbinary byte[] byte[] binary(1000) or varbinary(max) after SQL Server 2000, image otherwise BLOB LONGBLOB BLOB BLOB LONGBINARY

CData Python Connector for WordPress

Query Processing

Query Processing

CData has a client-side SQL engine built into the connector library. This enables support for the full capabilities that SQL-92 offers, including filters, aggregations, functions, etc.

For sources that do not support SQL-92, the connector offloads as much of SQL statement processing as possible to WordPress and then processes the rest of the query in memory (client-side). This results in optimal performance.

For data sources with limited query capabilities, the connector handles transformations of the SQL query to make it simpler for the connector. The goal is to make smart decisions based on the query capabilities of the data source to push down as much of the computation as possible. The WordPress Query Evaluation component examines SQL queries and returns information indicating what parts of the query the connector is not capable of executing natively.

The WordPress Query Slicer component is used in more specific cases to separate a single query into multiple independent queries. The client-side Query Engine makes decisions about simplifying queries, breaking queries into multiple queries, and pushing down or computing aggregations on the client-side while minimizing the size of the result set.

There's a significant trade-off in evaluating queries, even partially, client-side. There are always queries that are impossible to execute efficiently in this model, and some can be particularly expensive to compute in this manner. CData always pushes down as much of the query as is feasible for the data source to generate the most efficient query possible and provide the most flexible query capabilities.

More Information

For a full discussion of how CData handles query processing, see CData Architecture: Query Execution.

CData Python Connector for WordPress

Logging

Logging

Capturing connector logging can be very helpful when diagnosing error messages or other unexpected behavior.

Basic Logging

To begin capturing connector logging, set these properties:

  • Logfile: A filepath that designates the name and location of the log file.
  • Verbosity: A numerical value (1-5) that determines the amount of detail in the log. See the page in the Connection Properties section for an explanation of the five levels.
  • MaxLogFileSize: When the limit is hit, a new log is created in the same folder with the date and time appended to the end. The default limit is 100 MB. Values lower than 100 kB will use 100 kB as the value instead.
  • MaxLogFileCount: A string specifying the maximum file count of log files. When the limit is hit, a new log is created in the same folder with the date and time appended to the end and the oldest log file will be deleted. Minimum supported value is 2. A value of 0 or a negative value indicates no limit on the count.

Once these properties are set, the connector populates the log file as it carries out various tasks, such as when authentication is performed or queries are executed. If the specified file doesn't already exist, it is created.

Log Verbosity

The verbosity level determines the amount of detail that the connector reports to the Logfile. Supported Verbosity levels range from 1 to 5.

The following list describes each level:

1Setting Verbosity to 1 logs the query, the number of rows returned by it, the start of execution and the time taken, and any errors.
2Setting Verbosity to 2 logs everything included in Verbosity 1, cache queries, and additional information about the request.
3Setting Verbosity to 3 also logs HTTP headers, as well as the body of the request and the response.
4Setting Verbosity to 4 also logs transport-level communication with the data source. This includes SSL negotiation.
5Setting Verbosity to 5 also logs communication with the data source and additional details that may be helpful in troubleshooting problems. This includes interface commands.

For normal operations, Verbosity should not be set to greater than 1. At higher verbosities you can log substantial amounts of data, which can delay execution times.

To refine the logged content further by showing/hiding specific categories of information, see LogModules.

Sensitive Data

Verbosity levels of 3 and higher may capture information that you do not want shared outside of your organization. The following lists information of concern for each level:

  • Verbosity 3: The full body of the request and the response, which includes all the data returned by the connector
  • Verbosity 4: SSL certificates
  • Verbosity 5: Any extra transfer data not included at Verbosity 3, such as non human-readable binary transfer data

Note: Although we mask sensitive values, such as passwords, in the connection string and any request in the log, it is always best practice to review the logs for any sensitive information before sharing outside your organization.

Advanced Logging

You may want to refine the exact information that is recorded to the log file. This can be accomplished using the LogModules property. This property allows you to filter the logging using a semicolon-separated list of logging modules.

Example property value:

LogModules=INFO;EXEC;SSL;SQL;META;

Note that the logfile filtering triggered by the Verbosity connection property takes precedence over the filtering imposed by this connection property. This means that operations of a higher verbosity level than the level specified in the Verbosity connection property are not printed in the logfile, even if they belong to one of the modules specified in this connection property.

The available modules and submodules are:

Module Name Module Description Submodules
INFO General Information. Includes the connection string, product version (build number), and initial connection messages.
  • Connec – Information related to creating or destroying connections.
  • Messag – Generic label for messages pertaining to connections, the connection string, and product version. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
EXEC Query Execution. Includes execution messages for user-written SQL queries, parsed SQL queries, and normalized SQL queries. Success/failure messages for queries and query pages appear here as well.
  • Messag – Messages pertaining to query execution. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • Normlz – Query normalization steps. Query normalization is when the product takes the user-submitted query and rewrites the query to get the same results with optimal performance.
  • Origin – This label applies to any messages recording a user's original query (the exact, unaltered, non-normalized query executed by the user).
  • Page – Messages related to query paging.
  • Parsed – Query parsing steps. Parsing is the process of converting the user-submitted query into a standardized format for easier processing.
HTTP HTTP protocol messages. Includes HTTP requests/responses (including POST messages), as well as Kerberos related messages.
  • KERB – HTTP requests related to Kerberos.
  • Messag – Messages pertaining to HTTP protocols. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • Unpack – This label applies to messages about zipped data being returned from the service API and unpacked by the product.
  • Res – Messages containing HTTP responses.
  • Req – Messages containing HTTP requests.
WSDL Messages pertaining to the generation of WSDL/XSD files.
SSL SSL certificate messages.
  • Certif – Messages pertaining to SSL certificates.
AUTH Authentication related failure/success messages.
  • Messag – Messages pertaining to authentication. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • OAuth – Messages related to OAuth authentication.
  • Krbros – Kerberos-related authentication messages.
SQL Includes SQL transactions, SQL bulk transfer messages, and SQL result set messages.
  • Bulk – Messages pertaining to bulk query execution.
  • Cache – Messages related to reading row data from and writing row data to the product's cache for better performance.
  • Messag – Messages pertaining to SQL transactions. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • ResSet – Query resultsets.
  • Transc – Messages related to handling transactions, including information about the number of jobs executed and backup table handling.
META Metadata cache and schema messages.
  • Cache – Messages related to reading from and modifying column and table definitions in the product's cache for better performance.
  • Schema – Messages related to retrieving metadata from or modifying the service schema.
  • MemSto – Messages related to writing to or reading from in-memory metadata cache.
  • Storag – Messages relating to storing metadata on disk or in an external data store, rather than in memory.
FUNC Information related to executing SQL functions.
  • Errmsg – Error messages related to executing SQL functions.
TCP Incoming and outgoing raw bytes on TCP transport layer messages.
  • Send – Raw data sent via the TCP protocol.
  • Receiv – Raw data received via the TCP protocol.
FTP Messages pertaining to the File Transfer Protocol.
  • Info – Status messages related to communication in the FTP protocol.
  • Client – Messages related to actions taken by the FTP client (the product) during FTP communication.
  • Server – Messages related to actions taken by the FTP server during FTP communication.
SFTP Messages pertaining to the Secure File Transfer Protocol.
  • Info – Status messages related to communication in the SFTP protocol.
  • To_Server – Messages related to actions taken by the SFTP client (the product) during SFTP communication.
  • From_Server – Messages related to actions taken by the SFTP server during SFTP communication.
POP Messages pertaining to data transferred via the Post Office Protocol.
  • Client – Messages related to actions taken by the POP client (the product) during POP communication.
  • Server – Messages related to actions taken by the POP server during POP communication.
  • Status – Status messages related to communication in the POP protocol.
SMTP Messages pertaining to data transferred via the Simple Mail Transfer Protocol.
  • Client – Messages related to actions taken by the SMTP client (the product) during SMTP communication.
  • Server – Messages related to actions taken by the SMTP server during SMTP communication.
  • Status – Status messages related to communication in the SMTP protocol.
CORE Messages relating to various internal product operations not covered by other modules.
DEMN Messages related to SQL remoting.
CLJB Messages about bulk data uploads (cloud job).
  • Commit – Submissions for bulk data uploads.
SRCE Miscellaneous messages produced by the product that don't belong in any other module.
TRANCE Advanced messages concerning low-level product operations.

CData Python Connector for WordPress

Exception Handling

Exception Handling

Exceptions can be surfaced from either the API or the CData Python Connector for WordPress. Each exception will have an error code, an error message, and a SQL state.

Error Codes

The error code classifies the type of error.

0 NONE Used for unclassified errors and internally handled errors. This code also covers data source-specific errors that do not fit in any specific category.
65537 TCP_UNKNOWN_HOST Unable to resolve a hostname (DNS failure).
65538 TCP_CONNECTION_REFUSED Could not connect to the remote port.
65539 TCP_AUTH_FAILED Login failed when using a binary authentication protocol. Use this for auth errors when the protocol is not HTTP (LDAP, SASL, Kerberos, ...).
65540 TCP_TIMEOUT Did not receive a response after sending a request to the server.
65541 TCP_PROTOCOL For wire protocol drivers. Either the server sent a bad packet that we are unable to process, or we cannot construct a packet to send.
131073 TLS_SERVER_UNTRUSTED Could not verify SSL server certificate.
131074 TLS_CLIENT_UNTRUSTED Server did not accept the client certificate we sent.
196609 OAUTH_DECRYPT_FAILED OAuthEncryptKey did not decrypt the OAuthSettings file.
196610 OAUTH_MISSING_CLIENT_INFO OAuthClientId / OAuthClientSecret / OAuthJWTCert is missing.
196611 OAUTH_MISSING_PROP General OAuth property missing. OAUTH_MISSING_CLIENT_INFO is used for missing client ID/secret and JWT cert.
196612 OAUTH_NO_ACCESS_TOKEN Unable to retrieve access token. Only use this when getting a token in GetOAuthAccessToken / RefreshOAuthAccessToken.
196613 OAUTH_TOKEN_EXPIRED The access token expired. Normally used with a RefreshOAuth/OAuthException behavior.
196614 OAUTH_INVALID_PROP OAuth property has an invalid value. OAUTH_MISSING_CLIENT_INFO / OAUTH_MISSING_PROP is used if the value is not set.
262145 HTTP_REQUEST_TIMEOUT Did not receive a response from the HTTP server.
262146 HTTP_CLIENT_ERROR Generic HTTP 4xx error. Only use for 4xx errors not covered by other codes.
262147 HTTP_AUTH_FAILED HTTP 401 error.
262148 HTTP_LIMIT_EXCEEDED HTTP 429 error.
262149 HTTP_SERVER_ERROR HTTP 5xx error.
262150 HTTP_NOT_FOUND_ERROR HTTP 404 error.
327681 CORE_TIMEOUT General timeout. Not related to a specific network request.
327682 CORE_OP_NOT_ALLOWED Operation blocked by provider permissions.
327683 CORE_CONNECTION_CONFIG Connection configuration is not valid.
327684 CORE_SERIALIZE Failed to encode data into a specific format (XML, JSON, CSV, ...).
327685 CORE_DESERIALIZE Failed to decode data from a specific format (XML, JSON, CSV, ...).
393217 SQL_SYNTAX_ERROR Unable to parse a SQL query.
393218 SQL_MISSING_COLUMNS Query did not include required columns.
393219 SQL_MISSING_PARAMS Stored procedure call did not include required parameters.
393220 SQL_QUERY_NOT_SUPPORTED A part of the query is not allowed in the current context.
458753 SSH_SERVER_UNTRUSTED Could not verify SSH server.
524289 STORAGE_LIST_EXCEPTION Issue listing storage resources.
524290 STORAGE_RESOURCE_NOT_FOUND Issue finding storage resources.
524291 STORAGE_ROOT_RESOURCE_NOT_FOUND The root resource (bucket/share/drive) was not found; cannot create it in flat file drivers.
524292 STORAGE_RESOURCE_NOT_A_DIRECTORY Storage resource is not a directory.
524293 STORAGE_RESOURCE_NOT_A_FILE Storage resource is not a file.
524294 STORAGE_PERMISSIONS_DENIED Storage permissions denied.

SQL State

The SQL state is used when throwing generic provider errors to the wrapper and indicates the success or failure of a call.

Some of the common SQL states are listed below:

07007 REQUIRED_CLAUSE Class Code 07: Dynamic SQL Error.
08001 OPEN_CONNECTION Class Code 08: Connection Exception. The connection was unable to be established to the application server or other server.
08004 REJECT_CONNECTION The application server rejected establishment of the connection.
42501 PRIVILEGE_IDENTIFIED_OBJECT Class Code 42: Syntax Error or Access Rule Violation. The authorization ID does not have the privilege to perform the specified operation on the identified object.
42506 AUTH_FAILED Owner authorization failure occurred.
42601 SQL_SYNTAX A character, token, or clause is invalid or missing.

Error Message

The error message provides more detailed reasoning about why the error occurred. It provides an explanation of the issue, and may include steps on how to resolve it.

CData Python Connector for WordPress

SQL Compliance

The CData Python Connector for WordPress supports several operations on data, including querying, deleting, modifying, and inserting.

SELECT Statements

See SELECT Statements for a syntax reference and examples.

See Data Model for information on the capabilities of the WordPress API.

INSERT Statements

See INSERT Statements for a syntax reference and examples.

UPDATE Statements

The primary key Id is required to update a record. See UPDATE Statements for a syntax reference and examples.

DELETE Statements

The primary key Id is required to delete a record. See DELETE Statements for a syntax reference and examples.

CACHE Statements

CACHE statements allow granular control over the connector's caching functionality. For a syntax reference and examples, see CACHE Statements.

For more information on the caching feature, see Caching Data.

EXECUTE Statements

Use EXECUTE or EXEC statements to execute stored procedures. See EXECUTE Statements for a syntax reference and examples.

Names and Quoting

  • Table and column names are considered identifier names; as such, they are restricted to the following characters: [A-Z, a-z, 0-9, _:@].
  • To use a table or column name with characters not listed above, the name must be quoted using square brackets ([name]) in any SQL statement.
  • Parameter names can optionally start with the @ symbol (e.g., @p1 or @CustomerName) and cannot be quoted.
  • Strings must be quoted using single quotes (e.g., 'John Doe').

CData Python Connector for WordPress

SQL Functions

The connector provides functions that are similar to those that are available with most standard databases. These functions are implemented in the CData provider engine and thus are available across all data sources with the same consistent API. Three categories of functions are available: string, date, and math.

The connector interprets all SQL function inputs as either strings or column identifiers, so you need to escape all literals as strings, with single quotes. For example, contrast the SQL Server syntax and connector syntax for the DATENAME function:

  • SQL Server:
    SELECT DATENAME(yy,GETDATE())
  • connector:
    SELECT DATENAME('yy',GETDATE())

String Functions

These functions perform string manipulations and return a string value. See STRING Functions for more details.

Date Functions

These functions perform date and date time manipulations. See DATE Functions for more details.

Math Functions

These functions provide mathematical operations. See MATH Functions for more details.

CData Python Connector for WordPress

STRING Functions

ASCII(character_expression)

Returns the ASCII code value of the left-most character of the character expression.

  • character_expression: The character expression.

                      SELECT ASCII('0');
                      --  Result: 48
                    

BASE64_ENCODE(input_binary)

Returns the Base64-encoded string form of a binary input.

  • input_binary: The binary value to encode.

                        SELECT BASE64_ENCODE(BinaryData);
                    -- Result: 'QmFzZTY0RW5jb2RlZA=='
                    

BASE64_DECODE(input_string)

Returns the binary result of decoding a Base64-encoded string.

  • input_string: The Base64-encoded string.

                        SELECT BASE64_DECODE('QmFzZTY0RW5jb2RlZA==');
                    -- Result: (binary output)
                    

CHAR(integer_expression)

Converts the integer ASCII code to the corresponding character.

  • integer_expression: The integer from 0 through 255.

                      SELECT CHAR(48);
                      -- Result: '0'
                    

CHARINDEX(expressionToFind ,expressionToSearch [,start_location ])

Returns the starting position of the specified expression in the character string.

  • expressionToFind: The character expression to find.
  • expressionToSearch: The character expression, typically a column, to search.
  • start_location: An optional character position to start searching for expressionToFind in expressionToSearch.

                      SELECT CHARINDEX('456', '0123456');
                      -- Result: 4

                      SELECT CHARINDEX('456', '0123456', 5);
                      -- Result: -1
                    

CHAR_LENGTH(character_expression),

Returns the number of UTF-8 characters present in the expression.

  • character_expression: The set of characters to be evaluated for length.

				 SELECT CHAR_LENGTH('sample text') FROM Account LIMIT 1
				 -- Result: 11			
				

CONCAT(string_value1, string_value2, ..., string_valueN)

Returns the string that is the concatenation of two or more string values.

  • string_value1: The first string to be concatenated.
  • string_value2: The second string to be concatenated.
  • string_valueN: (optional) Any additional strings to be concatenated.

                      SELECT CONCAT('Hello, ', 'world!');
                      -- Result: 'Hello, world!'
                    

CONTAINS(expressionToSearch, expressionToFind)

Returns 1 if expressionToFind is found within expressionToSearch; otherwise, 0.

  • expressionToSearch: The character expression, typically a column, to search.
  • expressionToFind: The character expression to find.

                      SELECT CONTAINS('0123456', '456');
                      -- Result: 1

                      SELECT CONTAINS('0123456', 'Not a number');
                      -- Result: 0
                    

ENDSWITH(character_expression, character_suffix)

Returns 1 if character_expression ends with character_suffix; otherwise, 0.

  • character_expression: The character expression.
  • character_suffix: The character suffix to search for.

                      SELECT ENDSWITH('0123456', '456');
                      -- Result: 1

                      SELECT ENDSWITH('0123456', '012');
                      -- Result: 0
                    

FILESIZE(uri)

Returns the number of bytes present in the file at the specified file path.

  • uri: The path of the file from which to read the size.

				SELECT FILESIZE('C:/Users/User1/Desktop/myfile.txt');
				-- Result: 23684
				

FORMAT(value [, parseFormat], format )

Returns the value formatted with the specified format.

  • value: The string to format.
  • format: The string specifying the output syntax of the date or numeric format.
  • parseFormat: The string specifying the input syntax of the date value. Not applicable to numeric types.

                      SELECT FORMAT(12.34, '#');
                      -- Result: 12

                      SELECT FORMAT(12.34, '#.###');
                      -- Result: 12.34

                      SELECT FORMAT(1234, '0.000E0');
                      -- Result: 1.234E3
                      
                      SELECT FORMAT('2019/01/01', 'yyyy-MM-dd');
                      -- Result: 2019-01-01
                      
                      SELECT FORMAT('20190101', 'yyyyMMdd', 'yyyy-MM-dd');
                      -- Result: '2019-01-01'
                    

HASHBYTES(algorithm, value)

Returns the hash of the input value as a byte array using the given algorithm. The supported algorithms are MD5, SHA1, SHA2_256, SHA2_512, SHA3_224, SHA3_256, SHA3_384, and SHA3_512.

  • algorithm: The algorithm to use for hashing. Must be one of MD5, SHA1, SHA2_256, SHA2_512, SHA3_224, SHA3_256, SHA3_384, or SHA3_512.
  • value: The value to hash. Must be either a string or byte array.

                      SELECT HASHBYTES('MD5', 'Test');
                      -- Result (byte array): 0x0CBC6611F5540BD0809A388DC95A615B
                    

INDEXOF(expressionToSearch, expressionToFind [,start_location ])

Returns the starting position of the specified expression in the character string.

  • expressionToSearch: The character expression, typically a column, to search.
  • expressionToFind: The character expression to find.
  • start_location: An optional character position to start searching for expressionToFind in expressionToSearch.

                      SELECT INDEXOF('0123456', '456');
                      -- Result: 4

                      SELECT INDEXOF('0123456', '456', 5);
                      -- Result: -1
                    

ISALPHABETIC(character_expression)

Returns 1 if the character expression consists only of alphabetic characters; otherwise, 0.

  • character_expression: The string expression to evaluate.

                      SELECT ISALPHABETIC('Hello');
                      -- Result: 1

                      SELECT ISALPHABETIC('Hello123');
                      -- Result: 0

                      SELECT ISALPHABETIC('Hello!');
                      -- Result: 0
                    

ISALPHANUMERIC(character_expression)

Returns 1 if the character expression consists only of alphabetic and numeric characters; otherwise, 0.

  • character_expression: The string expression to evaluate.

                      SELECT ISALPHANUMERIC('Hello123');
                      -- Result: 1

                      SELECT ISALPHANUMERIC('123');
                      -- Result: 1

                      SELECT ISALPHANUMERIC('Hello.123');
                      -- Result: 0
                    

ISNUMERIC(character_expression)

Returns 1 if the character expression consists only of numeric digits and up to one decimal point; otherwise, 0.

  • character_expression: The string expression to evaluate.

                      SELECT ISNUMERIC('123');
                      -- Result: 1

                      SELECT ISNUMERIC('123.45');
                      -- Result: 1

                      SELECT ISNUMERIC('123.45.67');
                      -- Result: 0

                      SELECT ISNUMERIC('12a3');
                      -- Result: 0
                    

JSON_EXTRACT(json, jsonpath)

Selects any value in a JSON array or object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to extract.
  • jsonpath: The XPath used to select the nodes. The JSONPath must be a string constant. The values of the nodes selected will be returned in a token-separated list.

                      SELECT JSON_EXTRACT('{"test": {"data": 1}}', '$.test');
                      -- Result: '{"data":1}'

                      SELECT JSON_EXTRACT('{"test": {"data": 1}}', '$.test.data');
                      -- Result: 1

                      SELECT JSON_EXTRACT('{"test": {"data": [1, 2, 3]}}', '$.test.data[1]');
                      -- Result: 2
                    

LEFT ( character_expression , integer_expression )

Returns the specified number of characters counting from the left of the specified string.

  • character_expression: The character expression.
  • integer_expression: The positive integer that specifies how many characters will be returned counting from the left of character_expression.

                      SELECT LEFT('1234567890', 3);
                      -- Result: '123'
                    

LEN(string_expression)

Returns the number of characters of the specified string expression.

  • string_expression: The string expression.

                      SELECT LEN('12345');
                      -- Result: 5
                    

LOCATE(substring,string)

Returns an integer representing how many characters into the string the substring appears.

  • substring: The substring to find inside larger string.
  • string: The larger string that is searched for the substring.
  • start locations: An optional integer that sets the character position (offset) from which to start searching.

				SELECT LOCATE('sample','XXXXXsampleXXXXX');
				-- Result: 6

                SELECT LOCATE('sample', 'XXXXXsampleXXXXX', 7)
                -- Result: 0
				

LOWER ( character_expression )

Returns the character expression with the uppercase character data converted to lowercase.

  • character_expression: The character expression.

                      SELECT LOWER('MIXED case');
                      -- Result: 'mixed case'
                    

LTRIM(character_expression)

Returns the character expression with leading blanks removed.

  • character_expression: The character expression.

                      SELECT LTRIM('     trimmed');
                      -- Result: 'trimmed'
                    

MASK(string_expression, mask_character [, start_index [, end_index ]])

Replaces the characters between start_index and end_index with the mask_character within the string.

  • string_expression: The string expression to be searched.
  • mask_character: The character to mask with.
  • start_index: The optional number of characters to leave unmasked at beginning of string. Defaults to 0.
  • end_index: The optional number of characters to leave unmasked at end of string. Defaults to 0.

                        SELECT MASK('1234567890','*',);
                        -- Result: '**********'
                        SELECT MASK('1234567890','*', 4);
                        -- Result: '1234******'
                        SELECT MASK('1234567890','*', 4, 2);
                        -- Result: '1234****90'  
                    

NCHAR(integer_expression)

Returns the Unicode character with the specified integer code as defined by the Unicode standard.

  • integer_expression: The integer from 0 through 65535 (0 through xFFFF).

OCTET_LENGTH(character_expression),

Returns the number of bytes present in the expression.

  • character_expression: The set of characters to be be evaluated.

				 SELECT OCTET_LENGTH('text') FROM Account LIMIT 1
				 -- Result: 4
				

PATINDEX(pattern, expression)

Returns the starting position of the first occurrence of the pattern in the expression. Returns 0 if the pattern is not found.

  • pattern: The character expression that contains the sequence to be found. The wild-card character % can be used only at the start or end of the expression.
  • expression: The expression, typically a column, to search for the pattern.

                      SELECT PATINDEX('123%', '1234567890');
                      -- Result: 1

                      SELECT PATINDEX('%890', '1234567890');
                      -- Result: 8

                      SELECT PATINDEX('%456%', '1234567890');
                      -- Result: 4
                    

POSITION(expressionToFind IN expressionToSearch)

Returns the starting position of the specified expression in the character string.

  • expressionToFind: The character expression to find.
  • expressionToSearch: The character expression, typically a column, to search.

                      SELECT POSITION('456' IN '123456');
                      -- Result: 4

                      SELECT POSITION('x' IN '123456');
                      -- Result: 0
                    

QUOTENAME(character_string [, quote_character])

Returns a valid SQL Server-delimited identifier by adding the necessary delimiters to the specified Unicode string.

  • character_string: The string of Unicode character data. The string is limited to 128 characters. Inputs greater than 128 characters return null.
  • quote_character: An optional single character to be used as the delimiter. These include:
    • a single quotation mark (')
    • a left or right bracket ([])
    • a double quotation mark (")
    • a left or right parenthesis ( () )
    • a greater or less than sign (><)
    • a left or right brace ({})
    • a backtick (`)

    If quote_character is not specified brackets are used. If an unacceptable character is supplied, it returns NULL.


                      SELECT QUOTENAME('table_name');
                      -- Result: '[table_name]'

                      SELECT QUOTENAME('table_name', '"');
                      -- Result: '"table_name"'

                      SELECT QUOTENAME('table_name', '[');
                      -- Result: '[table_name]'
                    

REGEXP_REPLACE(expr, pattern [, replacement [, position [, occurrence [, match_type]]]])

Replaces occurrences of a regular expression pattern in the input string with a specified value and returns the resulting string.

  • expr: The string expression to be searched.
  • pattern: The regular expression pattern to match.
  • replacement: (optional) The string to replace each matched occurrence of pattern with. Supports backreferences \1 through \9 and escape sequences \n, \r, \t, and \\. By default, this argument is an empty string, meaning matched portions are removed from the output string.
  • position: (optional) The 1-based starting position used when searching for regular expression matches in expr. The default is 1. All characters prior to the starting position are included in the output string unaltered. Skipped characters are ignored when calculating regular expression matches, even if they match pattern.
  • occurrence: (optional) Specifies whether all occurrences of pattern,, or only a specific occurrence of pattern are replaced. The default is 0, which means all occurrences of pattern are replaced with replacement. Set to 1 to only replace the first instance of the pattern; 2 to replace the second; etc.
  • match_type: (optional) Modifiers used to customize matching behavior. Supported values are: 'c' (case-sensitive, default), 'i' (case-insensitive), 'm' (multiline), 'n' (dot matches newline), 'x' (extended mode). These can be freely combined by including the letters back to back. For example, 'im' applies the functionality of both 'i' and 'm'. The regular expression syntax used is that of the Extended mode ('x') ignores whitespace and allows inline comments. If the pattern needs to match a literal space, it must be explicitly escaped.

                      SELECT REGEXP_REPLACE('abc123def456', '\d+', 'NUM');
                      -- Result: 'abcNUMdefNUM'

                      SELECT REGEXP_REPLACE('Hello\nHELLO\nhello', '^hello', 'X', 1, 0, 'im');
                      -- Result: 'X\nX\nX'
                    

REPLACE(string_expression, string_pattern, string_replacement)

Replaces all occurrences of a string with another string.

  • string_expression: The string expression to be searched. This can be a character or binary data type.
  • string_pattern: The substring to be found. Cannot be an empty string.
  • string_replacement: The replacement string.

                      SELECT REPLACE('1234567890', '456', '|');
                      -- Result: '123|7890'

                      SELECT REPLACE('123123123', '123', '.');
                      -- Result: '...'

                      SELECT REPLACE('1234567890', 'a', 'b');
                      -- Result: '1234567890'
                    

REPLICATE ( string_expression ,integer_expression )

Repeats the string value the specified number of times.

  • string_expression: The string to replicate.
  • integer_expression: The repeat count.

                      SELECT REPLACE('x', 5);
                      -- Result: 'xxxxx'
                    

REVERSE ( string_expression )

Returns the reverse order of the string expression.

  • string_expression: The string.

                      SELECT REVERSE('1234567890');
                      -- Result: '0987654321'
                    

RIGHT ( character_expression , integer_expression )

Returns the right part of the string with the specified number of characters.

  • character_expression: The character expression.
  • integer_expression: The positive integer that specifies how many characters of the character expression will be returned.

                      SELECT RIGHT('1234567890', 3);
                      -- Result: '890'
                    

RTRIM(character_expression)

Returns the character expression after it removes trailing blanks.

  • character_expression: The character expression.

                      SELECT RTRIM('trimmed     ');
                      -- Result: 'trimmed'
                    

SOUNDEX(character_expression)

Returns the four-character Soundex code, based on how the string sounds when spoken.

  • character_expression: The alphanumeric expression of character data.

                      SELECT SOUNDEX('smith');
                      -- Result: 'S530'
                    

SPACE(repeatcount)

Returns the string that consists of repeated spaces.

  • repeatcount: The number of spaces.

                      SELECT SPACE(5);
                      -- Result: '     '
                    

SPLIT(string, delimiter, offset)

Returns a section of the string between to delimiters.

  • string: The string to split.
  • delimiter: The character to split the string with.
  • offset: The number of the split to return. Positive numbers are treated as offsets from the left, and negative numbers are treated as offsets from the right.

                      SELECT SPLIT('a/b/c/d', '/', 1);
                      -- Result: 'a'
                      SELECT SPLIT('a/b/c/d', '/', -2);
                      -- Result: 'c'
                    

STARTSWITH(character_expression, character_prefix)

Returns 1 if character_expression starts with character_prefix; otherwise, 0.

  • character_expression: The character expression.
  • character_prefix: The character prefix to search for.

                      SELECT STARTSWITH('0123456', '012');
                      -- Result: 1

                      SELECT STARTSWITH('0123456', '456');
                      -- Result: 0
                    

STR ( float_expression [ , integer_length [ , integer_decimal ] ] )

Returns the character data converted from the numeric data. For example, STR(123.45, 6, 1) returns 123.5.

  • float_expression: The float expression.
  • length: The optional total length to return. This includes decimal point, sign, digits, and spaces. The default is 10.
  • decimal: The optional number of places to the right of the decimal point. The decimal must be less than or equal to 16.

                      SELECT STR('123.456');
                      -- Result: '123'

                      SELECT STR('123.456', 2);
                      -- Result: '**'

                      SELECT STR('123.456', 10, 2);
                      -- Result: '123.46'
                    

STUFF(character_expression , integer_start , integer_length , replaceWith_expression)

Inserts a string into another string. It deletes the specified length of characters in the first string at the start position and then inserts the second string into the first string at the start position.

  • character_expression: The string expression.
  • start: The integer value that specifies the location to start deletion and insertion. If start or length is negative, null is returned. If start is longer than the string to be modified, character_expression, null is returned.
  • length: The integer that specifies the number of characters to delete. If length is longer than character_expression, deletion occurs up to the last character in replaceWith_expression.
  • replaceWith_expression: The expression of character data that will replace length characters of character_expression beginning at the start value.

                      SELECT STUFF('1234567890', 3, 2, 'xx');
                      -- Result: '12xx567890'
                    

SUBSTRING(string_value FROM start FOR length)

Returns the part of the string with the specified length; starts at the specified index.

  • string_value: The character string.
  • start: The positive integer that specifies the start index of characters to return.
  • length: Optional. The positive integer that specifies how many characters will be returned.

                      SELECT SUBSTRING('1234567890' FROM 3 FOR 2);
                      -- Result: '34'

                      SELECT SUBSTRING('1234567890' FROM 3);
                      -- Result: '34567890'
                    
You can also drop the FROM and FOR clauses:
                    SELECT SUBSTRING('1234567890', 3, 2)
                    --Result: '34'
                    SELECT SUBSTRING('1234567890', 3)
                    --Result: '34567890'
                    

TEXT_ENCODE(input_string, charset)

Returns binary output by encoding a string using the specified character set.

  • input_string: The plain text string.
  • charset: The character set to use, such as 'UTF-8', 'ISO-8859-1'.

                    SELECT TEXT_ENCODE('Café', 'UTF-8');
                    -- Result: (binary output)
                    

TEXT_DECODE(input_binary, charset)

Returns a string decoded from binary data using the specified character set.

  • input_binary: The binary value to decode.
  • charset: The character set used for decoding.

                    SELECT TEXT_DECODE(BinaryData, 'UTF-8');
                    -- Result: 'Café'
                    

TOSTRING(string_value1)

Converts the value of this instance to its equivalent string representation.

  • string_value1: The string to be converted.

                      SELECT TOSTRING(123);
                      -- Result: '123'

                      SELECT TOSTRING(123.456);
                      -- Result: '123.456'

                      SELECT TOSTRING(null);
                      -- Result: ''
                    

TRIM(trimspec trimchar FROM string_value)

Returns the character expression with leading and/or trailing blanks removed.

  • trimspec: Optional. If included must be one of the keywords BOTH, LEADING or TRAILING.
  • trimchar: Optional. If included should be a one-character string value.
  • string_value: The string value to trim.

                      SELECT TRIM('     trimmed     ');
                      -- Result: 'trimmed'

                      SELECT TRIM(LEADING FROM '     trimmed     ');
                      -- Result: 'trimmed     '

                      SELECT TRIM('-' FROM '-----trimmed-----');
                      -- Result: 'trimmed'

                      SELECT TRIM(BOTH '-' FROM '-----trimmed-----');
                      -- Result: 'trimmed'

                      SELECT TRIM(TRAILING '-' FROM '-----trimmed-----');
                      -- Result: '-----trimmed'
                    

UNICODE(ncharacter_expression)

Returns the integer value defined by the Unicode standard of the first character of the input expression.

  • ncharacter_expression: The Unicode character expression.

UPPER ( character_expression )

Returns the character expression with lowercase character data converted to uppercase.

  • character_expression: The character expression.

                      SELECT UPPER('MIXED case');
                      -- Result: 'MIXED CASE'
                    

XML_EXTRACT(xml, xpath [, separator])

Extracts an XML document using the specified XPath to flatten the XML. A comma is used to separate the outputs by default, but this can be changed by specifying the third parameter.

  • xml: The XML document to extract.
  • xpath: The XPath used to select the nodes. The nodes selected will be returned in a token-separated list.
  • separator: The optional token used to separate the items in the flattened response. If this is not specified, the separator will be a comma.

                      SELECT XML_EXTRACT('<vowels><ch>a</ch><ch>e</ch><ch>i</ch><ch>o</ch><ch>u</ch></vowels>', '/vowels/ch');
                      -- Result: 'a,e,i,o,u'

                      SELECT XML_EXTRACT('<vowels><ch>a</ch><ch>e</ch><ch>i</ch><ch>o</ch><ch>u</ch></vowels>', '/vowels/ch', ';');
                      -- Result: 'a;e;i;o;u'
                    

CData Python Connector for WordPress

MATH Functions

ABS ( numeric_expression )

Returns the absolute (positive) value of the specified numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT ABS(15);
                      -- Result: 15

                      SELECT ABS(-15);
                      -- Result: 15
                    

ACOS ( float_expression )

Returns the arc cosine, the angle in radians whose cosine is the specified float expression.

  • float_expression: The float expression that specifies the cosine of the angle to be returned. Values outside the range from -1 to 1 return null.

                      SELECT ACOS(0.5);
                      -- Result: 1.0471975511966
                    

ASIN ( float_expression )

Returns the arc sine, the angle in radians whose sine is the specified float expression.

  • float_expression: The float expression that specifies the sine of the angle to be returned. Values outside the range from -1 to 1 return null.

                      SELECT ASIN(0.5);
                      -- Result: 0.523598775598299
                    

ATAN ( float_expression )

Returns the arc tangent, the angle in radians whose tangent is the specified float expression.

  • float_expression: The float expression that specifies the tangent of the angle to be returned.

                      SELECT ATAN(10);
                      -- Result: 1.47112767430373
                    

ATN2 ( float_expression1 , float_expression2 )

Returns the angle in radians between the positive x-axis and the ray from the origin to the point (y, x) where x and y are the values of the two specified float expressions.

  • float_expression1: The float expression that is the y-coordinate.
  • float_expression2: The float expression that is the x-coordinate.

                      SELECT ATN2(1, 1);
                      -- Result: 0.785398163397448
                    

CEILING ( numeric_expression ) or CEIL( numeric_expression )

Returns the smallest integer greater than or equal to the specified numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT CEILING(1.3);
                      -- Result: 2

                      SELECT CEILING(1.5);
                      -- Result: 2

                      SELECT CEILING(1.7);
                      -- Result: 2
                    

COS ( float_expression )

Returns the trigonometric cosine of the specified angle in radians in the specified expression.

  • float_expression: The float expression of the specified angle in radians.

                      SELECT COS(1);
                      -- Result: 0.54030230586814
                    

COT ( float_expression )

Returns the trigonometric cotangent of the angle in radians specified by float_expression.

  • float_expression: The float expression of the angle in radians.

                      SELECT COT(1);
                      -- Result: 0.642092615934331
                    

DEGREES ( numeric_expression )

Returns the angle in degrees for the angle specified in radians.

  • numeric_expression: The angle in radians, an expression of an indeterminate numeric data type except for the bit data type.

                      SELECT DEGREES(3.1415926);
                      -- Result: 179.999996929531
                    

EXP ( float_expression )

Returns the exponential value of the specified float expression. For example, EXP(LOG(20)) is 20.

  • float_expression: The float expression.

                      SELECT EXP(2);
                      -- Result: 7.38905609893065
                    

EXPR ( expression )

Evaluates the expression.

  • expression: The expression. Operators allowed are +, -, *, /, ==, !=, >, <, >=, and <=.

                      SELECT EXPR('1 + 2 * 3');
                      -- Result: 7

                      SELECT EXPR('1 + 2 * 3 == 7');
                      -- Result: true
                    

FLOOR ( numeric_expression )

Returns the largest integer less than or equal to the numeric expression.

  • numeric_expression: The expression of an indeterminate numeric data type except for the bit data type.

                      SELECT FLOOR(1.3);
                      -- Result: 1

                      SELECT FLOOR(1.5);
                      -- Result: 1

                      SELECT FLOOR(1.7);
                      -- Result: 1
                    

GREATEST(int1,int2,....)

Returns the greatest of the supplied integers.

				SELECT GREATEST(3,5,8,10,1)
				-- Result: 10			
				

HEX(value)

Returns a the equivalent hex for the input value.

  • value: A string or numerical value to be converted into hex.

				SELECT HEX(866849198);
				-- Result: 33AB11AE
				
				SELECT HEX('Sample Text');
				-- Result: 53616D706C652054657874
				

JSON_AVG(json, jsonpath)

Computes the average value of a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_AVG('[1,2,3,4,5]', '$[x]');
                      -- Result: 3

                      SELECT JSON_AVG('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 3

                      SELECT JSON_AVG('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 4.5
                    

JSON_COUNT(json, jsonpath)

Returns the number of elements in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_COUNT('[1,2,3,4,5]', '$[x]');
                      -- Result: 5

                      SELECT JSON_COUNT('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 5

                      SELECT JSON_COUNT('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 2
                    

JSON_MAX(json, jsonpath)

Gets the maximum value in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_MAX('[1,2,3,4,5]', '$[x]');
                      -- Result: 5

                      SELECT JSON_MAX('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 5

                      SELECT JSON_MAX('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[..3]');
                      -- Result: 4
                    

JSON_MIN(json, jsonpath)

Gets the minimum value in a JSON array within a JSON object. The path to the array is specified in the jsonpath argument. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_MIN('[1,2,3,4,5]', '$[x]');
                      -- Result: 1

                      SELECT JSON_MIN('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 1

                      SELECT JSON_MIN('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 4
                    

JSON_SUM(json, jsonpath)

Computes the summary value in JSON according to the JSONPath expression. Return value is numeric or null.

  • json: The JSON document to compute.
  • jsonpath: The JSONPath used to select the nodes. [x], [2..], [..8], or [1..12] are accepted. [x] selects all nodes.

                      SELECT JSON_SUM('[1,2,3,4,5]', '$[x]');
                      -- Result: 15

                      SELECT JSON_SUM('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[x]');
                      -- Result: 15

                      SELECT JSON_SUM('{"test": {"data": [1,2,3,4,5]}}', '$.test.data[3..]');
                      -- Result: 9
                    

LEAST(int1,int2,....)

Returns the least of the supplied integers.

				SELECT LEAST(3,5,8,10,1)
				-- Result: 1			
				

LOG ( float_expression [, base ] )

Returns the natural logarithm of the specified float expression.

  • float_expression: The float expression.
  • base: The optional integer argument that sets the base for the logarithm.

                      SELECT LOG(7.3890560);
                      -- Result: 1.99999998661119
                    

LOG10 ( float_expression )

Returns the base-10 logarithm of the specified float expression.

  • float_expression: The expression of type float.

                      SELECT LOG10(10000);
                      -- Result: 4
                    

MOD(dividend,divisor)

Returns the integer value associated with the remainder when dividing the dividend by the divisor.

  • dividend: The number to take the modulus of.
  • divisor: The number to divide the dividend by when determining the modulus.

				SELECT MOD(10,3);
				-- Result: 1
				

NEGATE(real_number)

Returns the opposite to the real number input.

  • real_number: The real number to find the opposite of.

				SELECT NEGATE(10);
				-- Result: -10
				
				SELECT NEGATE(-12.4)
				--Result: 12.4
				

PI ( )

Returns the constant value of pi.

                  SELECT PI()
                  -- Result: 3.14159265358979 
                

POWER ( float_expression , y )

Returns the value of the specified expression raised to the specified power.

  • float_expression: The float expression.
  • y: The power to raise float_expression to.

                      SELECT POWER(2, 10);
                      -- Result: 1024

                      SELECT POWER(2, -2);
                      -- Result: 0.25
                    

RADIANS ( float_expression )

Returns the angle in radians of the angle in degrees.

  • float_expression: The degrees of the angle as a float expression.

                      SELECT RADIANS(180);
                      -- Result: 3.14159265358979
                    

RAND ( [ integer_seed ] )

Returns a pseudorandom float value from 0 through 1, exclusive.

  • seed: The optional integer expression that specifies the seed value. If seed is not specified, a seed value at random will be assigned.

                      SELECT RAND();
                      -- This result may be different, since the seed is randomized
                      -- Result: 0.873159630165044

                      SELECT RAND(1);
                      -- This result will always be the same, since the seed is constant
                      -- Result: 0.248668584157093
                    

ROUND ( numeric_expression [ ,integer_length] [ ,function ] )

Returns the numeric value rounded to the specified length or precision.

  • numeric_expression: The expression of a numeric data type.
  • length: The optional precision to round the numeric expression to. When this is omitted, the default behavior will be to round to the nearest whole number.
  • function: The optional type of operation to perform. When the function parameter is omitted or has a value of 0 (default), numeric_expression is rounded. When a value other than 0 is specified, numeric_expression is truncated.

                      SELECT ROUND(1.3, 0);
                      -- Result: 1

                      SELECT ROUND(1.55, 1);
                      -- Result: 1.6

                      SELECT ROUND(1.7, 0, 0);
                      -- Result: 2

                      SELECT ROUND(1.7, 0, 1);
                      -- Result: 1
                      
                      SELECT ROUND (1.24);
                      -- Result: 1.0
                    

SIGN ( numeric_expression )

Returns the positive sign (1), 0, or negative sign (-1) of the specified expression.

  • numeric_expression: The expression of an indeterminate data type except for the bit data type.

                      SELECT SIGN(0);
                      -- Result: 0

                      SELECT SIGN(10);
                      -- Result: 1

                      SELECT SIGN(-10);
                      -- Result: -1
                    

SIN ( float_expression )

Returns the trigonometric sine of the angle in radians.

  • float_expression: The float expression specifying the angle in radians.

                     SELECT SIN(1);
                     -- Result: 0.841470984807897
                    

SQRT ( float_expression )

Returns the square root of the specified float value.

  • float_expression: The expression of type float.

                      SELECT SQRT(100);
                      -- Result: 10
                    

SQUARE ( float_expression )

Returns the square of the specified float value.

  • float_expression: The expression of type float.

                      SELECT SQUARE(10);
                      -- Result: 100

                      SELECT SQUARE(-10);
                      -- Result: 100
                    

TAN ( float_expression )

Returns the tangent of the input expression.

  • float_expression: The expression of type float.

                      SELECT TAN(1);
                      -- Result: 1.5574077246549
                    

TRUNC(decimal_number,precision)

Returns the supplied decimal number truncated to have the supplied decimal precision.

  • decimal_number: The decimal value to truncate.
  • precision: The number of decimal places to truncate the decimal number to.

				SELECT TRUNC(10.3423,2);
				-- Result: 10.34
				

_ROW_NUMBER_()

Returns a row index as an additional column.

				SELECT ColumnName, _ROW_NUMBER_() FROM TableName
				-- Result: ColumnData, 0
				ColumnData2, 1
				ColumnData3, 2
				

CData Python Connector for WordPress

DATE Functions

CURRENT_DATE()

Returns the current date value.

                  SELECT CURRENT_DATE();
                  -- Result: 2018-02-01
                

CURRENT_TIMESTAMP()

Returns the current time stamp of the database system as a datetime value. This value is equal to GETDATE and SYSDATETIME, and is always in the local timezone.

                  SELECT CURRENT_TIMESTAMP();
                  -- Result: 2018-02-01 03:04:05
                

DATEADD (datepart , integer_number , date [, dateformat])

Returns the datetime value that results from adding the specified number (a signed integer) to the specified date part of the date.

  • datepart: The part of the date to add the specified number to. The valid values and abbreviations are
    • year (yy, yyyy)
    • quarter (qq, q)
    • month (mm, m)
    • week (wk, ww)
    • weekday (dw)
    • dayofyear (dy, y)
    • day (dd, d)
    • hour (hh)
    • minute (mi, n)
    • second (ss, s)
    • millisecond (ms)
  • number: The number to be added.
  • date: The expression of the datetime data type.
  • dateformat: The optional output date format.

                  SELECT DATEADD('d', 5, '2018-02-01');
                  -- Result: 2018-02-06

                  SELECT DATEADD('hh', 5, '2018-02-01 00:00:00');
                  -- Result: 2018-02-01 05:00:00
                

DATEDIFF ( datepart , startdate , enddate )

Returns the difference (a signed integer) of the specified time interval between the specified start date and end date.

  • datepart: The part of the date that is the time interval of the difference between the start date and end date. The valid values and abbreviations are:
    • Year (year, yyyy, yy)
    • Quarter (quarter, qq, q)
    • Month (month, mm, m)
    • Week (week, wk, ww)
    • Weekday (weekday, dw)
    • Dayofyear (dayofyear, dy, y)
    • Day (day, dd, d)
    • Hour (hour, hh)
    • Minute (minute, mi, n)
    • Second (second, ss, s)
    • Millisecond (millisecond, ms)
  • startdate: The datetime expression of the start date.
  • enddate: The datetime expression of the end date.

                  SELECT DATEDIFF('d', '2018-02-01', '2018-02-10');
                  -- Result: 9

                  SELECT DATEDIFF('hh', '2018-02-01 00:00:00', '2018-02-01 12:00:00');
                  -- Result: 12
                

DATE_FORMAT(date,format)

Returns the date or timestamp in the format specified. This function mirrors the MySQL DATE_FORMAT function.

  • date: A date or timestamp string.
  • format: The specifier string of the desired output format. The list of supported format specifiers comes from the MySQL DATE_FORMAT function (see link to MySQL documentation above).

					SELECT DATE_FORMAT('9/4/2021 3:11:53 AM','%h')
					-- Result: 03
				  

DATEFROMPARTS(integer_year, integer_month, integer_day)

Returns the datetime value for the specified year, month, and day.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.

                    SELECT DATEFROMPARTS(2018, 2, 1);
                    -- Result: 2018-02-01
                  

DATENAME(datepart , date)

Returns the character string that represents the specified date part of the specified date.

  • datepart: The part of the date to return. The valid values and abbreviations are year (yy, yyyy), quarter (qq, q), month (mm, m), dayofyear (dy, y), day (dd, d), week (wk, ww), weekday (dw), hour (hh), minute (mi, n), second (ss, s), millisecond (ms), microsecond (mcs), and nanosecond (ns).
  • date: The datetime expression.

                     SELECT DATENAME('yy', '2018-02-01');
                     -- Result: '2018'

                     SELECT DATENAME('dw', '2018-02-01');
                     -- Result: 'Thursday'
                   

DATEPART(datepart, date [,integer_datefirst])

Returns a character string that represents the specified date part of the specified date.

  • datepart: The part of the date to return. The valid values and abbreviations are year (yy, yyyy), quarter (qq, q), month (mm, m), dayofyear (dy, y), day (dd, d), week (wk, ww), weekday (dw), hour (hh), minute (mi, n), second (ss, s), millisecond (ms), microsecond (mcs), nanosecond (ns), ISODOW, ISO_WEEK (isoweek, isowk,isoww), and ISOYEAR.
  • date: The datetime string.
  • datefirst: The optional integer representing the first day of the week. The default is 7, Sunday.

                    SELECT DATEPART('yy', '2018-02-01');
                    -- Result: 2018

                    SELECT DATEPART('dw', '2018-02-01');
                    -- Result: 5
                  

DATETIMEFROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute, integer_seconds, integer_milliseconds)

Returns the datetime value for the specified date parts.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • milliseconds: The integer expression specifying the milliseconds.

                    SELECT DATETIMEFROMPARTS(2018, 2, 1, 1, 2, 3, 456);
                    -- Result: 2018-02-01 01:02:03.456
                  

DATETIME2FROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute, integer_seconds, integer_fractions, integer_precision)

Returns the datetime value for the specified date parts.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • fractions: The integer expression specifying the fractions of the second.
  • precision: The integer expression specifying the precision of the fraction.

				    SELECT DATETIME2FROMPARTS(2018, 2, 1, 1, 2, 3, 456, 3);
                    -- Result: 2018-02-01 01:02:03.456
                  

DATE_TRUNC(date, datepart)

Truncates the date to the precision of the given date part. Modeled after the Oracle TRUNC function.

  • date: The datetime string that specifies the date.
  • datepart: Refer to the Oracle documentation for valid datepart syntax.

				    SELECT DATE_TRUNC('05-04-2005', 'YY');
                    -- Result: '1/1/2005'
					
                    SELECT DATE_TRUNC('05-04-2005', 'MM');
                    -- Result: '5/1/2005'                    
                  

DATE_TRUNC2(datepart, date, [weekday])

Truncates the date to the precision of the given date part. Modeled after the PostgreSQL date_trunc function.

  • datepart: One of 'millennium', 'century', 'decade', 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute' or 'second'.
  • date: The datetime string that specifies the date.
  • weekday: The optional day of the week to use as the first day for 'week'. One of 'sunday', 'monday', etc.

                    SELECT DATE_TRUNC2('year', '2020-02-04');
                    -- Result: '2020-01-01'

                    SELECT DATE_TRUNC2('week', '2020-02-04', 'monday');
                    -- Result: '2020-02-02', which is the previous Monday
                  

DAY(date)

Returns the integer that specifies the day component of the specified date.

  • date: The datetime string that specifies the date.

                    SELECT DAY('2018-02-01');
                    -- Result: 1
                  

DAYNAME(date)

Returns the name of the day of the week of the specified date.

  • date: The datetime string that specifies the date.

                    SELECT DAYNAME('8/18/2021');
                    -- Result: Wednesday
                  

DAYOFMONTH(date)

Returns the day of the month of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFMONTH('04/15/2000');
				  -- Result: 15
				  

DAYOFWEEK(date)

Returns the day of the week of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFWEEK('04/15/2000');
				  -- Result: 7
				  

DAYOFYEAR(date)

Returns the day of the year of the given date part.
  • date: The datetime string that specifies the date.

				  SELECT DAYOFYEAR('04/15/2000');
				  -- Result: 106
				  

EOMONTH(date [, integer_month_to_add ]) or LAST_DAY(date)

Returns the last day of the month that contains the specified date with an optional offset.

  • date: The datetime expression specifying the date for which to return the last day of the month.
  • integer_month_to_add: The optional integer expression specifying the number of months to add to the date before calculating the end of the month.

                  SELECT EOMONTH('2018-02-01');
                  -- Result: 2018-02-28
                  
                  SELECT LAST_DAY('2018-02-01');
                  -- Result: 2018-02-28

                  SELECT EOMONTH('2018-02-01', 2);
                  -- Result: 2018-04-30
                

EXTRACT(date_part FROM date_column_name)

Returns the last day of the month that contains the specified date with an optional offset.

  • date_part: One of the following date components: YEAR, MONTH, DAY, HOUR, MINUTE, SECOND.
  • date_column_name: The name of a date column in a table.

                  SELECT EXTRACT(YEAR FROM DateColumn)
                  -- Result: 2021
                

FDWEEK(date)

Returns the first day of the week of the given date part.
  • date: The datetime string that specifies the date.
  • weeks to add: An optional integer expression specifying the number of months to add to the date before calculating the first day of the week.

				  SELECT FDWEEK('02-08-2018');
				  -- Result: 2/4/2018

          SELECT FDWEEK('02-08-2018', 1)
          --Result: 02/11/2018
				  

FDMONTH(date)

Returns the first day of the month of the given date part.
  • date: The datetime string that specifies the date.
  • month to add: An optional integer expression specifying the number of months to add to the date before calculating the first day of the month.

				  SELECT FDMONTH('02-08-2018');
				  -- Result: 2/1/2018

          SELECT FDMONTH('02-08-2018', 1) 
          --Result: 03/01/2018
				  

FDQUARTER(date)

Returns the first day of the quarter of the given date part.
  • date: The datetime string that specifies the date.
  • quarters to add: An optional integer expression specifying the number of months to add to the date before calculating the first day of the quarter.

				  SELECT FDQUARTER('05-08-2018');
				  -- Result: 4/1/2018

          SELECT FDQUARTER('05-08-2018',1)
          --Result: 07/01/2018
				  

FILEMODIFIEDTIME(uri)

Returns the time stamp associated with the Date Modified of the relevant file.

  • uri: An absolute path pointing to a file on the local file system.

				 SELECT FILEMODIFIEDTIME('C:/Documents/myfile.txt');
				 -- Result: 6/25/2019 10:06:58 AM
				 

FROM_DAYS(datevalue)

Returns a date derived from the number of days after 1582-10-15 (based upon the Gregorian calendar). This will be equivalent to the MYSQL FROM_DAYS function.

  • datevalue: A integer value representing the number of days since 1582-10-15.

				SELECT FROM_DAYS(736000);
				-- Result: 2/6/2015
				

FROM_UNIXTIME(time, issecond)

Returns a representation of the unix_timestamp argument as a value in YYYY-MM-DD HH:MM:SS expressed in the current time zone.

  • time: The time stamp value from epoch time. Milliseconds are accepted.
  • issecond: Indicates the time stamp value is milliseconds to epoch time.

                      SELECT FROM_UNIXTIME(1540495231, 1);
                      -- Result: 2018-10-25 19:20:31

                      SELECT FROM_UNIXTIME(1540495357385, 0);
                      -- Result: 2018-10-25 19:22:37
                    

GETDATE()

Returns the current time stamp of the database system as a datetime value. This value is equal to CURRENT_TIMESTAMP and SYSDATETIME, and is always in the local timezone.

                  SELECT GETDATE();
                  -- Result: 2018-02-01 03:04:05
                

GETUTCDATE()

Returns the current time stamp of the database system formatted as a UTC datetime value. This value is equal to SYSUTCDATETIME.

In addition, GETUTCDATE can take an optional second parameter, a date and time that are converted to UTC.

                  SELECT GETUTCDATE();
                  -- For example, if the local timezone is Eastern European Time (GMT+2)
                  -- Result: 2018-02-01 05:04:05

                  SELECT GETUTCDATE('2020/08/31 13:56:00')
                  --Result: '2020-08-31 17:56:00'
                

HOUR(date)

Returns the hour component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT HOUR('02-02-2020 11:30:00');
				-- Result: 11
				

ISDATE(date, [date_format])

Returns 1 if the value is a valid date, time, or datetime value; otherwise, 0.

  • date: The datetime string.
  • date_format: The optional datetime format.

                      SELECT ISDATE('2018-02-01', 'yyyy-MM-dd');
                      -- Result: 1

                      SELECT ISDATE('Not a date');
                      -- Result: 0
                    

LAST_WEEK()

Returns a time stamp equivalent to exactly one week before the current date.

				SELECT LAST_WEEK();	//Assume the date is 3/17/2020	
			 -- Result: 3/10/2020 00:00:00
				

LAST_MONTH()

Returns a time stamp equivalent to exactly one month before the current date.

	
				SELECT LAST_MONTH(); //Assume the date is 3/17/2020
				-- Result: 2/17/2020 00:00:00
				

LAST_YEAR()

Returns a time stamp equivalent to exactly one year before the current date.

				SELECT LAST_YEAR();	//Assume the date is 3/17/2020	
				-- Result: 3/10/2019 00:00:00
				

LDWEEK(date)

Returns the last day of the provided week.

  • date: The datetime string.
  • weeks to add: An optional integer expression specifying the number of months to add to the date before calculating the last day of the week.

				SELECT LDWEEK('02-02-2020');
				-- Result: 2/8/2020
				

LDMONTH(date)

Returns the last day of the provided month.

  • date: The datetime string.
  • months to add: An optional integer expression specifying the number of months to add to the date before calculating the last day of the month.

				SELECT LDMONTH('02-02-2020');
				-- Result: 2/29/2020

        SELECT LDMONTH('02-08-2020', 1)
        --Result: 03/31/2020
				

LDQUARTER(date)

Returns the last day of the provided quarter.

  • date: The datetime string.
  • quarters to add: An optional integer expression specifying the number of months to add to the date before calculating the last day of the quarter.

				SELECT LDQUARTER('02-02-2020');
				-- Result: 3/31/2020

        SELECT LDQUARTER('02-02-2020',1)
        --Result: 06/30/2020
				

MAKEDATE(year, days)

Returns a date value from a year and a number of days.

  • year: The year
  • days: The number of days into the year. Value must be greater than 0.

          SELECT MAKEDATE(2020, 1);
          -- Result: 2020-01-01
        

MINUTE(date)

Returns the minute component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT MINUTE('02-02-2020 11:15:00');
				-- Result: 15
				

MONTH(date)

Returns the month component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT MONTH('02-02-2020');
				-- Result: 2
				

QUARTER(date)

Returns the quarter associated with the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT QUARTER('02-02-2020');
				-- Result: 1
				

SECOND(date)

Returns the second component from the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT SECOND('02-02-2020 11:15:23');
				-- Result: 23
				

SMALLDATETIMEFROMPARTS(integer_year, integer_month, integer_day, integer_hour, integer_minute)

Returns the datetime value for the specified date and time.

  • year: The integer expression specifying the year.
  • month: The integer expression specifying the month.
  • day: The integer expression specifying the day.
  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.

                      SELECT SMALLDATETIMEFROMPARTS(2018, 2, 1, 1, 2);
                      -- Result: 2018-02-01 01:02:00
                    

STRTODATE(string,format)

Parses the provided string value and returns the corresponding datetime.

  • string: The string value to be converted to datetime format.
  • format: A format string which describes how to interpret the first string input. A few special formats are available as well, including UNIX, UNIXMILIS, TICKS, and FILETICKS.

				SELECT STRTODATE('03*04*2020','dd*MM*yyyy');
				-- Result: 4/3/2020
				

SYSDATETIME()

Returns the current time stamp as a datetime value of the database system. It is equal to GETDATE and CURRENT_TIMESTAMP, and is always in the local timezone.

                  SELECT SYSDATETIME();
                  -- Result: 2018-02-01 03:04:05
                

SYSUTCDATETIME()

Returns the current system date and time as a UTC datetime value. It is equal to GETUTCDATE.

                  SELECT SYSUTCDATETIME();
                  -- For example, if the local timezone is Eastern European Time (GMT+2)
                  -- Result: 2018-02-01 05:04:05
                

TIMEFROMPARTS(integer_hour, integer_minute, integer_seconds, integer_fractions, integer_precision)

Returns the time value for the specified time and with the specified precision.

  • hour: The integer expression specifying the hour.
  • minute: The integer expression specifying the minute.
  • seconds: The integer expression specifying the seconds.
  • fractions: The integer expression specifying the fractions of the second.
  • precision : The integer expression specifying the precision of the fraction.

                      SELECT TIMEFROMPARTS(1, 2, 3, 456, 3);
                      -- Result: 01:02:03.456
                    

TO_DAYS(date)

Returns the number of days since 0000-00-01. This will only return a value for dates on or after 1582-10-15 (based upon the Gregorian calendar). This will be equivalent to the MYSQL TO_DAYS function.

  • date: The datetime string that specifies the date.

				SELECT TO_DAYS('02-06-2015');
				-- Result: 736000
				

WEEK(date)

Returns the week (of the year) associated with the provided datetime.

  • date: The datetime string that specifies the date.

				SELECT WEEK('02-17-2020 11:15:23');
				-- Result: 8
				

YEAR(date)

Returns the integer that specifies the year of the specified date.

  • date: The datetime string.

                      SELECT YEAR('2018-02-01');
                      -- Result: 2018
                    

CData Python Connector for WordPress

Date Literal Functions

The following date literal functions can be used to filter date fields using relative intervals. Note that while the <, >, and = operators are supported for these functions, <= and >= are not.

L_TODAY()

The current day.

  SELECT * FROM MyTable WHERE MyDateField = L_TODAY()

L_YESTERDAY()

The previous day.

  SELECT * FROM MyTable WHERE MyDateField = L_YESTERDAY()

L_TOMORROW()

The following day.

  SELECT * FROM MyTable WHERE MyDateField = L_TOMORROW()

L_LAST_WEEK()

Every day in the preceding week.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_WEEK()

L_THIS_WEEK()

Every day in the current week.

  SELECT * FROM MyTable WHERE MyDateField = L_THIS_WEEK()

L_NEXT_WEEK()

Every day in the following week.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_WEEK()
Also available:
  • L_LAST/L_THIS/L_NEXT MONTH
  • L_LAST/L_THIS/L_NEXT QUARTER
  • L_LAST/L_THIS/L_NEXT YEAR

L_LAST_N_DAYS(n)

The previous n days, excluding the current day.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_N_DAYS(3)

L_NEXT_N_DAYS(n)

The following n days, including the current day.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_N_DAYS(3)
Also available:
  • L_LAST/L_NEXT_90_DAYS

L_LAST_N_WEEKS(n)

Every day in every week, starting n weeks before current week, and ending in the previous week.

  SELECT * FROM MyTable WHERE MyDateField = L_LAST_N_WEEKS(3)

L_NEXT_N_WEEKS(n)

Every day in every week, starting the following week, and ending n weeks in the future.

  SELECT * FROM MyTable WHERE MyDateField = L_NEXT_N_WEEKS(3)
Also available:
  • L_LAST/L_NEXT_N_MONTHS(n)
  • L_LAST/L_NEXT_N_QUARTERS(n)
  • L_LAST/L_NEXT_N_YEARS(n)

CData Python Connector for WordPress

SELECT Statements

A SELECT statement can consist of the following basic clauses.

  • SELECT
  • INTO
  • FROM
  • JOIN
  • WHERE
  • GROUP BY
  • HAVING
  • UNION
  • ORDER BY
  • LIMIT

SELECT Syntax

The following syntax diagram outlines the syntax supported by the SQL engine of the connector:

SELECT {
  [ TOP <numeric_literal> | DISTINCT ]
  { 
    * 
    | { 
        <expression> [ [ AS ] <column_reference> ] 
        | { <table_name> | <correlation_name> } .* 
      } [ , ... ] 
  }
  { 
    FROM <table_reference> [ [ AS ] <identifier> ] 
  } [ , ... ]
  [ [  
      INNER | { { LEFT | RIGHT | FULL } [ OUTER ] } 
    ] JOIN <table_reference> [ ON <search_condition> ] [ [ AS ] <identifier> ] 
  ] [ ... ] 
  [ WHERE <search_condition> ]
  [ GROUP BY <column_reference> [ , ... ]
  [ HAVING <search_condition> ]
  [ UNION [ ALL ] <select_statement> ]
  [ 
    ORDER BY 
    <column_reference> [ ASC | DESC ] [ NULLS FIRST | NULLS LAST ]
  ]
  [ 
    LIMIT <expression>
    [ 
      { OFFSET | , }
      <expression> 
    ]
  ] 
} | SCOPE_IDENTITY() 

<expression> ::=
  | <column_reference>
  | @ <parameter> 
  | ?
  | COUNT( * | { [ DISTINCT ] <expression> } )
  | { AVG | MAX | MIN | SUM | COUNT } ( <expression> ) 
  | NULLIF ( <expression> , <expression> ) 
  | COALESCE ( <expression> , ... ) 
  | CASE <expression>
      WHEN { <expression> | <search_condition> } THEN { <expression> | NULL } [ ... ]
    [ ELSE { <expression> | NULL } ]
    END 
  | {RANK() | DENSE_RANK()} OVER ([PARTITION BY <column_reference>] {ORDER BY <column_reference>})
  | <literal>
  | <sql_function> 

<search_condition> ::= 
  {
    <expression> { = | > | < | >= | <= | <> | != | LIKE | NOT LIKE | IN | NOT IN | IS NULL | IS NOT NULL | AND | OR | CONTAINS | BETWEEN | IS DISTINCT FROM | IS NOT DISTINCT FROM } [ <expression> ]
  } [ { AND | OR } ... ] 

Examples

  1. Return all columns:
    SELECT * FROM Categories
  2. Rename a column:
    SELECT [Name] AS MY_Name FROM Categories
  3. Cast a column's data as a different data type:
    SELECT CAST(Count AS VARCHAR) AS Str_Count FROM Categories
  4. Search data:
    SELECT * FROM Categories WHERE Id = '1668776136772254'
  5. Return the number of items matching the query criteria:
    SELECT COUNT(*) AS MyCount FROM Categories 
  6. Return the number of unique items matching the query criteria:
    SELECT COUNT(DISTINCT Name) FROM Categories 
  7. Return the unique items matching the query criteria:
    SELECT DISTINCT Name FROM Categories 
  8. Sort a result set in ascending order:
    SELECT Id, Name FROM Categories  ORDER BY Name ASC
  9. Restrict a result set to the specified number of rows:
    SELECT Id, Name FROM Categories LIMIT 10 
  10. Parameterize a query to pass in inputs at execution time. This enables you to create prepared statements and mitigate SQL injection attacks.
    SELECT * FROM Categories WHERE Id = @param
See Explicitly Caching Data for information on using the SELECT statement in offline mode.

Pseudo Columns

Some input-only fields are available in SELECT statements. These fields, called pseudo columns, do not appear as regular columns in the results, yet may be specified as part of the WHERE clause. You can use pseudo columns to access additional features from WordPress.

    SELECT * FROM Categories WHERE Pseudo = '@Pseudo'
    

Aggregate Functions

For SELECT examples using aggregate functions, see Aggregate Functions.

JOIN Queries

See JOIN Queries for SELECT query examples using JOINs.

Date Literal Functions

Date Literal Functions contains SELECT examples with date literal functions.

Window Functions

See Window Functions for SELECT examples containing window functions.

Table-Valued Functions

See Table-Valued Functions for SELECT examples with table-valued functions.

CData Python Connector for WordPress

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM Categories WHERE Id = '1668776136772254'

COUNT(DISTINCT)

Returns the number of distinct, non-null field values matching the query criteria.

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Categories WHERE Id = '1668776136772254'

AVG

Returns the average of the column values.

SELECT Name, AVG(Count) FROM Categories WHERE Id = '1668776136772254'  GROUP BY Name

MIN

Returns the minimum column value.

SELECT MIN(Count), Name FROM Categories WHERE Id = '1668776136772254' GROUP BY Name

MAX

Returns the maximum column value.

SELECT Name, MAX(Count) FROM Categories WHERE Id = '1668776136772254' GROUP BY Name

SUM

Returns the total sum of the column values.

SELECT SUM(Count) FROM Categories WHERE Id = '1668776136772254'

CData Python Connector for WordPress

JOIN Queries

The CData Python Connector for WordPress supports standard SQL joins like the following examples.

Inner Join

An inner join selects only rows from both tables that match the join condition:

SELECT Customers.ContactName, Orders.OrderDate FROM Customers, Orders WHERE Customers.CustomerId=Orders.CustomerId

Left Join

A left join selects all rows in the FROM table and only matching rows in the JOIN table:

SELECT Customers.ContactName, Orders.OrderDate FROM Customers LEFT OUTER JOIN Orders ON Customers.CustomerId=Orders.CustomerId

CData Python Connector for WordPress

Window Functions

Window functions allow you to create computed fields from a group of rows (a window) that return a result for each row, as opposed to one computed result for a set of rows, as is the case with aggregate functions. The connector supports the following window function syntax.

Note: Window function support is an experimental feature of the connector. This functionality extends beyond the connector's core scope of being SQL-92 compliant. As such, performance with window functions may not be optimal.

Window Function Clauses

OVER

The OVER clause defines the window over which window functions are performed.

SELECT A, B, <window function> OVER (<window frame>) FROM TableName

The <window function> refers to any supported window function clause, and the <window frame> refers to one or more clauses that specify the logic by which the window is defined.

PARTITION BY

The PARTITION BY clause subdivides a window into sub-windows called partitions. For each unique value in the column specified in the PARTITION BY clause, every record with that value collectively forms an individual partition.

SELECT A, B, <window function> OVER (PARTITION BY A ORDER BY B) From Categories

The <window function> refers to any supported window function clause.

Window Functions

The connector supports math, ranking, and analytic window functions.

Math

These window functions perform mathematical operations on the records within the window.

COUNT()

Calculates the number of records in each partition. The calculated column is of the data type "int".

In each partition, every record will display the total number of records in that partition.

SELECT Name, Role, Earnings, COUNT() OVER (PARTITION BY Role) FROM Employees

COUNT_BIG()

Calculates the number of records in each partition. The calculated column is of the data type "bigint".

In each partition, every record will display the total number of records in that partition.

SELECT Name, Role, Earnings, COUNT_BIG() OVER (PARTITION BY Role) FROM Employees

MIN(numeric_column)

Calculates the minimum value of a numerical column per partition.

In each partition, every record will display the minimum value of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, MIN(Earnings) OVER (PARTITION BY Role) FROM Employees

MAX(numeric_column)

Calculates the maximum value of a numerical column per partition.

In each partition, every record will display the maximum value of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, MAX(Earnings) OVER (PARTITION BY Role) FROM Employees

SUM(numeric_column)

Calculates the sum of a numerical column per partition.

In each partition, every record will display the sum of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, SUM(Earnings) OVER (PARTITION BY Role) FROM Employees

AVG(numeric_column)

Calculates the average value of a numerical column per partition.

In each partition, every record will display the average value of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, AVG(Earnings) OVER (PARTITION BY Role) FROM Employees

MEDIAN(numeric_column)

Calculates the median value of a numerical column per partition.

In each partition, every record will display the median value of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, MEDIAN(Earnings) OVER (PARTITION BY Role) FROM Employees

STDEV(numeric_column)

Calculates the standard deviation of a numerical column per partition.

In each partition, every record will display the standard deviation of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, STDEV(Earnings) OVER (PARTITION BY Role) FROM Employees

STDEVP(numeric_column)

Calculates the population standard deviation of a numerical column per partition.

In each partition, every record will display the population standard deviation of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, STDEVP(Earnings) OVER (PARTITION BY Role) FROM Employees

VAR(numeric_column)

Calculates the statistical standard variance of a numerical column per partition.

In each partition, every record will display the statistical standard variance of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, VAR(Earnings) OVER (PARTITION BY Role) FROM Employees

VARP(numeric_column)

Calculates the variance population of a numerical column per partition.

In each partition, every record will display the variance population of numeric_column across the records in that partition.

SELECT Name, Role, Earnings, VARP(Earnings) OVER (PARTITION BY Role) FROM Employees

Ranking

These window functions rank records that fall within the window and its partitions.

RANK()

Assigns a rank number to each record in a window based on the value of the column specified in the required ORDER BY clause.

If two or more records have an equal value in the in ranked column, they all receive the same rank number and the rank count increments internally, skipping ahead one rank number for each record with a duplicate value in the ORDER BY column.

SELECT Id, Name, RANK() OVER (ORDER BY Name) AS Rank FROM Categories

If you add a PARTITION BY clause, a separate set of ranks is calculated for each partition.

SELECT Id, Name, RANK() OVER (PARTITION BY Id ORDER BY Name) AS Rank FROM Categories

DENSE_RANK()

Operates like the RANK() function, but it doesn't increment the internal rank counter for each record with a duplicate value in the ranked column.

This means that, while records with identical values in the ORDER BY column still share a rank number, the function never skips a rank number.

SELECT Id, Name, DENSE_RANK() OVER (PARTITION BY Id ORDER BY Name) AS Rank FROM Categories

If you add a PARTITION BY clause, a separate set of ranks is calculated for each partition.

SELECT Id, Name, DENSE_RANK() OVER (PARTITION BY Id ORDER BY Name) AS Rank FROM Categories

ROW_NUMBER()

Calculates a row number for each record. An ORDER BY clause in the OVER clause is required.

SELECT Name, Role, Earnings, ROW_NUMBER() OVER (ORDER BY Role) FROM Employees
If you define multiple partitions with PARTITION BY, a new set of row numbers are calculated for each partition.
SELECT Name, Role, Earnings, ROW_NUMBER() OVER (PARTITION BY Role ORDER BY Earnings) FROM Employees

NTILE()

Distributes rows of an ordered partition into a specified number of approximately equal groups, or buckets. It assigns each group a bucket number starting from one. For each row in a group, the NTILE() function assigns a bucket number representing the group to which the row belongs.

The syntax of NTILE() is:

NTILE(buckets) OVER (
    [PARTITION BY partition_expression, ... ]
    ORDER BY sort_expression [ASC | DESC], ...
)
The following are paramaters that NTILE() supports:

  • buckets: The number of buckets into which the rows are divided. The buckets can be an expression or subquery that evaluates to a positive integer. It cannot be a window function.
  • PARTITION BY: distributes rows of a result set into partitions to which the NTILE() function is applied.
  • ORDER BY is clause that specifies the logical order of rows in each partition to which the NTILE() is applied.

If the number of rows is not divisible by the buckets, the NTILE() function returns groups of two sizes with the difference by one. The larger groups always precede the smaller group in the order set by ORDER BY in the OVER() clause.

If the total of rows is divisible by the number of buckets, the function divides the rows evenly among buckets. The following statement creates a new table named ntile_demo that stores 10 integers:

CREATE TABLE sales.ntile_demo (
	v INT NOT NULL
);
	
INSERT INTO sales.ntile_demo(v) 
VALUES(1),(2),(3),(4),(5),(6),(7),(8),(9),(10);	
	
SELECT * FROM sales.ntile_demo;
This statement uses the NTILE() function to divide ten rows into three groups:
SELECT 
	v, 
	NTILE (3) OVER (
		ORDER BY v
	) buckets
FROM 
	sales.ntile_demo;

Analytical

These window functions perform analytical operations on the records within the window.

PERCENT_RANK()

Calculates the relative rank SQL Percentile of each row. It returns values greater than zero, but the maximum value is one. It does not count any NULL values. This function is nondeterministic.

The syntax of PERCENT_RANK() is:

PERCENT_RANK() OVER (
      [PARTITION BY partition_expression, ... ]
      ORDER BY sort_expression [ASC | DESC], ...
  )
  
This syntax uses the following parameters.

  • PARTITION BY: By default, SQL Server treats the whole data set as a single set. You can specify the PARTITION BY clause to divide data into multiple sets. The Percent_Rank function performs the analytical calculations on each set. This parameter is optional.
  • ORDER BY: Sorts the data in either ascending or descending order. This parameter is required.

CData Python Connector for WordPress

Table-Valued Functions

Table-valued functions are functions that return a table (rowset).

Note: Table-valued function support is an experimental feature of the connector. This functionality extends beyond the connector's core scope of being SQL-92 compliant. As such, performance with these functions may not be optimal.

Table-Valued Function Clauses

CROSS APPLY

The CROSS APPLY operator is used to perform a subquery on each row of a table or resultset produced by a preceding table expression.

<table_expression_1> CROSS APPLY <table_expression_2>

The second table expression can reference results from the first table expression to create derived columns or an altered recordset via a table-valued function.

Each resulting record is an instance of the record it's splitting, with all the same column values, except for the column(s) containing the value split by the function.

WITH

The WITH clause is used alongside certain table-valued functions to match against constructs within the structure being split (keys, element names, attribute names, etc.) and/or to specify metadata for the columns generated from the function.
SELECT A.ColumnName, X.DerivedColumnName FROM TableName A CROSS APPLY <table-valued function> WITH (DerivedColumnName varchar(255)) AS X

Table-Valued Functions

STRING_SPLIT(input_text,delimiter)

Takes each record in the recordset of the preceding table expression, splits the column containing delimiters (input_text) into substrings separated by the delimiter, and returns one record per substring.

  • input_text: A column whose value you want to parse.
  • delimiter: The character used to split the value of the column specified in input_text.

Suppose there is a column called "SplitColumn" with the following content:

One-Two-Three
To unpack this value across multiple records:
SELECT A.ID, X.Value FROM [TableWithDelimitedStringField] A CROSS APPLY STRING_SPLIT(A.SplitColumn,'-') WITH (Value VARCHAR(255)) AS X

-- Results:
-----------
|ID|Value|
|1|One|
|1|Two|
|1|Three|

JSONTABLE(json_content,[jsonpath])

For each record in the recordset of the preceding table expression, returns one record for each instance of a key in a JSON array (json_content) that matches the key(s) specified in the WITH clause, at the scope specified by the "jsonpath" input.

  • json_content: A JSON "table" (array of objects). The contents can nest, but this must be a single JSON array, not any other JSON structure, at the root level.
    • The values of every instance of the key(s) provided in the WITH clause are retrievable only for substructures which are immediate children of the root-level JSON array.
  • jsonpath: An optional JSONPath query defining the scope, within the json_content array, that you want to pull content from. The JSON key(s) identified in the WITH clause must exist at the scope defined in this parameter. This defaults to the JSON root ($).

Consider a sample table with a single record, including an ID column and column with JSON content called "JSONColumn" with the following content:

[
	{
		"name": "Samuel",
		"email": "sam@gmail.com",
		"extrainfo": {
			"city": "Seattle"
		}
	},
	{
		"name": "Katherine",
		"email": "kat@gmail.com",
	},
	{
		"name": "George",
		"email": "george23@gmail.com",
	},
	{
		"name": "Carlos",
		"email": "carlos32@gmail.com",
	}
]

To extract all values for a certain key, specify the scope in the JSONTABLE function and provide the desired key(s) in the WITH clause.

SELECT A.ID, X.name FROM [TableWithJSONField] A CROSS APPLY JSONTABLE(A.JSONColumn) WITH (name VARCHAR(255)) AS X

-- Results: 
|ID|name|
---------
|1 |Samuel|
|1 |Katherine|
|1 |George|
|1 |Carlos|

XMLTABLE(xml_content,[xpath,child_type])

For each record in the resultset of the preceding table expression, returns one record for each of the elements and/or attributes in an XML structure (xml_content) that match the tag name(s) and/or attribute name(s) specified in the WITH clause, at the scope specified in the "xpath" input.

  • xml_content: A column containing an XML structure.
  • xpath: An optional XPath that specifies the scope within the XML structure at which the connector extracts content matching the tag/attribute name(s) specified in the WITH clause.
    • When extracting the content of sub-elements, the connector can retrieve all content from tags at the root level, (depth 0) immediate children of the root (depth 1), and children of those children (depth 2).
    • When extracting element attribute content, the connector can retrieve all content from tags containing the specified attribute at the root level (depth 0) and from immediate children of root-level elements (depth 1).
  • child_type: An optional parameter that specifies the part(s) of the parent element (specified in the xpath input) that the column(s) provided in the WITH clause are checked against to identify content.
    • You can supply the following values:
      • 0: The column(s) in the WITH clause are checked for matches against the parent element's attribute names and sub-element tag names.
      • 1: The column(s) in the WITH clause are checked for matches against the parent element's attribute names.
      • 2: The column(s) in the WITH clause are checked for matches against the parent element's sub-element tag names.
    • When not supplied, this defaults to 0.

Extracting Sub-Element Values

Consider a sample table with a single record, including an ID column and a column with XML content called "XMLContent" with the following content:
<shoppingList>
    <item>
        <name>Apples</name>
        <quantity>3</quantity>
        <unit>Kg</unit>
    </item>
    <item>
        <name>Bread</name>
        <quantity>2</quantity>
        <unit>Loaf</unit>
		<extrainfo>
			<Type>Whole-Grain</Type>
		</extrainfo>
    </item>
    <item>
        <name>Milk</name>
        <quantity>1</quantity>
        <unit>Carton</unit>
    </item>
    <item>
        <name>Eggs</name>
        <quantity>12</quantity>
        <unit></unit>
    </item>
</shoppingList>

To extract sub-element content, specify the scope in the XMLTABLE function and provide the desired element name(s) in the WITH clause. Note that this will not work if the XMLTABLE function's child_type input is set to 1.

SELECT A.ID, X.name FROM [TableWithXMLField] A CROSS APPLY XMLTABLE(A.XMLContent,'//*/item') WITH (name VARCHAR(255)) AS X

-- Results: 
|ID|name|
---------
|1|Apples|
|1|Bread|
|1|Milk|
|1|Eggs|

Extracting Values Using Element Tag Attributes

Suppose you have this sample table with a single record, including an ID column and a column with XML content called "XMLContent" with the following content:

<restaurant>
  <dish type="appetizer">
    <name lang="en">Caprese Salad</name>
    <chef>Chef Giovanni</chef>
    <price currency="USD">9.99</price>
  </dish>
  <dish type="main-course">
    <name lang="fr">Boeuf Bourguignon</name>
    <chef>Chef Marie</chef>
    <price currency="EUR">19.99</price>
  </dish>
  <dish type="dessert">
    <name lang="es">Tres Leches Cake</name>
    <chef>Chef Alejandro</chef>
    <price currency="MXN">89.99</price>
  </dish>
</restaurant>

To extract attribute content, specify the scope in the XMLTABLE function and provide the desired attribute name(s) in the WITH clause. Note that this will not work if the XMLTABLE function's child_type input is set to 2.

SELECT A.ID, X.type FROM [TableWithXMLField] A CROSS APPLY XMLTABLE(A.XMLContent,'//*/dish') WITH (type VARCHAR(255)) AS X

-- Results: 
|ID|type|
---------
|1|appetizer|
|1|main-course|
|1|dessert|

CSVTABLE(csv_content,[delimiter])

For each record in the resultset of the preceding table expression, reads from a column that contains a CSV table (csv_content) and for each record in that CSV table, returns one record containing the value of the CSV column(s) specified in the WITH clause.

  • csv_content: A column containing a CSV table.
  • delimiter: An optional custom delimiter (instead of a comma) which splits the CSV content contained in the csv_content input.

Consider a sample table with a single record, including an ID column and a column containing CSV table called "CSVContent" with the following content:

Name;Category;Price
Apple;Fruit;0.99
Spaghetti;Pasta;5.49
Chicken Breast;Meat;8.99
Broccoli;Vegetable;2.49

To select every value in the "Name" column and account for the custom delimiter (;):

SELECT A.ID, X.Name FROM [TableWithCSVField] A CROSS APPLY CSVTABLE(A.CSVContent,';') WITH (Name VARCHAR(255)) AS X

-- Results:
|ID|Name|
-----------
|1|Apple|
|1|Spaghetti|
|1|Chicken Breast|
|1|Broccoli|

CData Python Connector for WordPress

INSERT Statements

To create new records, use INSERT statements.

INSERT Syntax

The INSERT statement specifies the columns to be inserted and the new column values. You can specify the column values in a comma-separated list in the VALUES clause, as shown in the following example:

INSERT INTO <table_name> 
( <column_reference> [ , ... ] )
VALUES 
( { <expression> | NULL } [ , ... ] ) 
  

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>
The following is an example query:
INSERT INTO Categories (Name) VALUES ('My goldfish')

CData Python Connector for WordPress

UPDATE Statements

To modify existing records, use UPDATE statements.

Update Syntax

The UPDATE statement takes as input a comma-separated list of columns and new column values as name-value pairs in the SET clause, as shown in the following example:

UPDATE <table_name> SET <select_statement> | {<column_reference> = <expression> [ , ... ]} WHERE { Id = <expression>  } [ { AND | OR } ... ] 

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

The following is an example query:

UPDATE Categories SET Name='My goldfish' WHERE Id = @myId

CData Python Connector for WordPress

DELETE Statements

To delete information from a table, use DELETE statements.

DELETE Syntax

The DELETE statement requires the table name in the FROM clause and the row's primary key in the WHERE clause, as shown in the following example:

<delete_statement> ::= DELETE FROM <table_name> WHERE { Id = <expression> } [ { AND | OR } ... ]

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

The following is an example query:

DELETE FROM Categories WHERE Id = @myId

CData Python Connector for WordPress

CACHE Statements

When caching is enabled, CACHE statements provide complete control over the data that is cached and the table to which it is cached. The CACHE statement executes the SELECT statement specified and caches its results to a table with the same name in the cache database or to table specified in <cached_table_name>. The connector updates or inserts rows to the cache depending on whether or not they already exist in the cache, so the primary key, which is used to identify existing rows, must be included in the selected columns.

See Caching Data for more information on different caching strategies.

CACHE Statement Syntax

The cache statement may include the following options that alter its behavior:

CACHE [ <cached_table_name> ] [ WITH TRUNCATE | AUTOCOMMIT | SCHEMA ONLY | DROP EXISTING | ALTER SCHEMA ] <select_statement> 

WITH TRUNCATE

If this option is set, the connector removes existing rows in the cache table before adding the selected rows. Use this option if you want to refresh the entire cache table but keep its existing schema.

AUTOCOMMIT

If this option is set, the connector commits each row individually. Use this option if you want to ignore the rows that could not be cached due to some reason. By default, the entire result set is cached as a single transaction.

DROP EXISTING

If this option is set, the connector drops the existing cache table before caching the new results. Use this option if you want to refresh the entire cache table, including its schema.

SCHEMA ONLY

If this option is set, the connector creates the cache table based on the SELECT statement without executing the query.

ALTER SCHEMA

If this option is set, the connector alters the schema of the existing table in the cache if it does not match the schema of the SELECT statement. This option results in new columns or dropped columns, if the schema of the SELECT statement does not match the cached table.

Common Queries

Use the following cache statement to cache all rows of a table:

CACHE SELECT * FROM Categories

Use the following cache statement to cache all rows of a table into the cache table CachedCategories:

CACHE CachedCategories SELECT * FROM Categories

Use the following cache statement for incremental caching. The DateModified column may not exist in all tables. The cache statement shows how incremental caching would work if there were such a column. Also, notice that, in this case, the WITH TRUNCATE and DROP EXISTING options are specifically omitted, which would have deleted all existing rows.

CACHE CachedCategories SELECT * FROM Categories WHERE DateModified > '2013-04-04'

Use the following cache statements to create a table with all available columns that will then cache only a few of them. The sequence of statements cache only Id and Name even though the cache table CachedCategories has all the columns in Categories.

CACHE CachedCategories SCHEMA ONLY SELECT * FROM Categories
CACHE CachedCategories SELECT Id, Name FROM Categories

CData Python Connector for WordPress

EXECUTE Statements

To execute stored procedures, you can use EXECUTE or EXEC statements.

EXEC and EXECUTE assign stored procedure inputs, referenced by name, to values or parameter names.

Stored Procedure Syntax

To execute a stored procedure as an SQL statement, use the following syntax:

 
{ EXECUTE | EXEC } <stored_proc_name> 
{
  [ @ ] <input_name> = <expression>
} [ , ... ]

<expression> ::=
  | @ <parameter> 
  | ?
  | <literal>

Example Statements

Reference stored procedure inputs by name:

EXECUTE my_proc @second = 2, @first = 1, @third = 3;

Execute a parameterized stored procedure statement:

EXECUTE my_proc second = @p1, first = @p2, third = @p3; 

CData Python Connector for WordPress

PIVOT and UNPIVOT

PIVOT and UNPIVOT can be used to change a table-valued expression into another table.

PIVOT

PIVOT rotates a table-value expression by turning unique values from one column into multiple columns in the output. PIVOT can run aggregations where required on any column value.
PIVOT Synax

 
"SELECT 'AverageCost' AS Cost_Sorted_By_Production_Days, [0], [1], [2], [3], [4]
FROM
(
SELECT DaysToManufacture, StandardCost
FROM Production.Product
) AS SourceTable
PIVOT
(
AVG(StandardCost)
FOR DaysToManufacture IN ([0], [1], [2], [3], [4])
) AS PivotTable;"

UNPIVOT

UNPIVOT carries out nearly the opposite to PIVOT by rotating columns of a table-valued expressions into column values.
UNPIVOT Sytax

 
"SELECT VendorID, Employee, Orders
FROM
(SELECT VendorID, Emp1, Emp2, Emp3, Emp4, Emp5
FROM pvt) p
UNPIVOT
(Orders FOR Employee IN
(Emp1, Emp2, Emp3, Emp4, Emp5)
)AS unpvt;"

For further information on PIVOT and UNPIVOT, see FROM clause plus JOIN, APPLY, PIVOT (Transact-SQL)

CData Python Connector for WordPress

Data Model

The CData Python Connector for WordPress models WordPress data as an easy-to-use SQL database with tables, views, and stored procedures.

The connector exposes two schemas:

Stored Procedures

These are actions that are invoked via SQL queries. They perform tasks beyond standard CRUD operations, including creating and uploading media and managing OAuth tokens.

Using Query Processing

The connector offloads as much of the SELECT statement processing as possible to the WordPress APIs and then processes the rest of the query within the connector. For details about specific API limitations and requirements, see the WordPress Data Model and WordPressOnline Data Model sections.

CData Python Connector for WordPress

WordPress Data Model

The CData Python Connector for WordPress models WordPress data as an easy-to-use SQL database. There are three parts to the data model: tables, views, and stored procedures.

Tables

The Tables section, which details standard SQL tables, and the Views section, which lists read-only SQL tables are available through the self-hosted WordPress API. Data availability depends on the authenticated user's role and site configuration.

Commonly used tables include:

Table Description
Categories Create, update, delete, and query Categories to use for categorizing your posts.
Comments Create, update, delete, and query Comments associated with a post.
Media Create, update, delete, and query Media to attach in your posts.
Pages Create, update, delete, and query Wordpress Pages.
Plugins Create, update, delete, and query Plugins.
Posts Create, update, delete, and query Wordpress Posts.
Tags Create, update, delete, and query Tags to associate with your posts.
Users Create, update, delete, and list the Users of the website.
Taxonomies List all the taxonomies.
TaxonomyTerms List all terms of the taxonomies.
Types List Types associated with the Posts.

Stored Procedures

Stored Procedures are actions that are invoked via SQL queries. They perform tasks beyond standard CRUD operations, including creating and uploading media and managing OAuth tokens.

CData Python Connector for WordPress

Tables

The connector models the data in WordPress as a list of tables in a relational database that can be queried using standard SQL statements.

CData Python Connector for WordPress Tables

Name Description
Categories Returns information about WordPress categories, including their names, descriptions, and post counts.
Comments Returns comments from WordPress posts, including author details, content, and status information.
Media Create, update, delete, and query Media to attach in your posts.
Pages Create, update, delete, and query Wordpress Pages.
Plugins Create, update, delete, and query Plugins.
Posts Create, update, delete, and query Wordpress Posts.
Tags Create, update, delete, and query Tags to associate with your posts.
Users Create, update, delete, and list the Users of the website.

CData Python Connector for WordPress

Categories

Returns information about WordPress categories, including their names, descriptions, and post counts.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Categories WHERE Parent = 0
SELECT * FROM Categories ORDER BY Id
SELECT * FROM Categories WHERE Id IN ('130', '129')
Also, ordering by Count, Description and Name, is handled by the WordPress API.

Insert

To insert a category the following column is required: Name.

INSERT INTO Categories (Description, Name, Parent) VALUES ('This is an example Category', 'myCategory', '138')

Update

To update a category you must specify the following column: Id.

UPDATE Categories SET Name = 'updatedName', Description = 'Updated description.', Parent = 137 WHERE Id = '139'

Delete

To delete a category you must specify the following column: Id.

DELETE FROM Categories WHERE Id = '139'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

A unique integer that identifies the category in WordPress and links posts, tags, and other taxonomy data associated with that category.

Count Integer True

The total number of posts currently assigned to the category, as returned by the WordPress API.

Description String False

The descriptive text defined in WordPress for the category, typically used to explain its purpose or the type of posts it contains.

Link String True

The full URL returned by WordPress that links to the public category page associated with this record.

Name String False

The category name defined in WordPress, representing the label shown on the site and used to organize related posts.

Taxonomy String True

The taxonomy type that classifies the category in WordPress.

Parent Integer False

The identifier of the parent category that this category belongs to. A value of 0 indicates that the category has no parent.

CData Python Connector for WordPress

Comments

Returns comments from WordPress posts, including author details, content, and status information.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. To retrieve and filter the values for the AuthorEmail column, use Context='edit' in the WHERE clause.

For example, the following queries are processed server side.

SELECT * FROM Comments WHERE Id = 61
SELECT * FROM Comments WHERE Id IN (61, 45)
SELECT * FROM Comments WHERE AuthorEmail = 'authoremail@gmail.com' AND Status = 'approve' AND Type = 'comment' AND PostId = '1' AND Context='edit'
SELECT * FROM Comments WHERE Author IN ('1', '2')
SELECT * FROM Comments WHERE Date > '2018-02-02T02:02:23'
SELECT * FROM Comments WHERE Date < '2018-02-02T02:02:23'
SELECT * FROM Comments ORDER BY Date DESC
Also, ordering by Id, DateGMT, Type, Parent, is handled by the WordPress API.

Insert

To insert comments you must specify the following columns: PostId, Content.

INSERT INTO Comments (PostId, Content) VALUES ('1', 'This is a comment in the post with id 1.')

Update

To update a comment you must specify the following column: Id
UPDATE Comments SET Content = 'Updated content' WHERE Id = '1234'
Other fields that you can use on INSERT / UPDATE queries are: Author, AuthorEmail, AuthorIp, AuthorName, AuthorUrl, Content, Date, DateGMT, Parent, PostId, Status.

Delete

To delete a Comment you must specify the following column: Id.

DELETE FROM Comments WHERE Id = '1234'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier for the comment object in WordPress.

Author Integer False

Specifies the name of the author who submitted the comment on the WordPress post.

AuthorEmail String False

The author's email address for the object. To filter values for this column.

AuthorIp String False

The IP address associated with the comment's author, identifying the source location from which the comment was submitted to WordPress.

AuthorName String False

The display name of the user who authored the comment in WordPress.

AuthorUrl String False

Specifies the website URL submitted by the author when posting the comment.

Date Datetime False

The date and time when the comment was posted in WordPress.

DateGMT Datetime False

The date the object was published as Greenwich Mean Time (GMT).

Status String False

The approval status of the comment, such as approved, pending, or spam.

The allowed values are hold, approved, spam, trash.

Type String True

Specifies the type of comment, such as a standard comment, trackback, or pingback.

Parent Integer False

Specifies the identifier of the parent comment when this comment is a reply. A value of 0 indicates no parent.

Content String False

The text content of the comment submitted by the author.

PostId Integer False

The unique identifier of the post or page associated with the comment.

Link String True

The URL linking directly to the comment on the associated WordPress post.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Context String

The context or area of WordPress where the comment was posted.

The allowed values are view, edit, embed.

CData Python Connector for WordPress

Media

Create, update, delete, and query Media to attach in your posts.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. Note: The Status column only accepts the following values for select operation: inherit and private. For example, the following queries are processed server side.

SELECT * FROM Media WHERE Id IN ('1176', '1175')
SELECT * FROM Media WHERE Id = '1176'
SELECT * FROM Media WHERE AuthorId IN (1, 2)
SELECT * FROM Media WHERE MimeType = 'image/jpeg'
SELECT * FROM Media WHERE Status = 'Inherit'
SELECT * FROM Media WHERE Date < '2018-02-02T02:02:23'
SELECT * FROM Media WHERE Date > '2018-02-02T02:02:23'
SELECT * FROM Media ORDER BY Id
Also, ordering by Date, Modified, and AuthorId is handled by the WordPress API.

Update

To update a media you must specify the following column: Id.
UPDATE Media SET Title = 'Updated Title' WHERE Id = '4'
Other fields that you can use on INSERT and UPDATE queries are: Date, DateGMT, Status, Title, AuthorId, CommentStatus, PingStatus, Caption, Description, PostId.

Delete

To delete a media you must specify the following column: Id.

DELETE FROM Media WHERE Id = '1234'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the media item in WordPress.

Title String False

The title assigned to the media item, such as the file name or a descriptive label.

Date Datetime False

The date and time when the media item was uploaded, recorded in the site's local timezone.

DateGMT Datetime False

The upload date and time of the media item recorded in Greenwich Mean Time (GMT).

Modified Datetime True

The date and time when the media item was last modified in the site's local timezone.

ModifiedGMT Datetime True

The date and time when the media item was last modified in Greenwich Mean Time (GMT).

Status String False

The publication status of the media item, such as inherit or private.

Type String True

Specifies the type of WordPress post associated with the media item, typically 'attachment'.

AuthorId Integer False

The unique identifier of the user who uploaded or owns the media item.

CommentStatus String False

Indicates whether comments are allowed on the media item.

PingStatus String False

Indicates whether the media item can receive pingbacks or trackbacks.

Caption String False

A short explanatory caption or description displayed with the media item.

Description String False

The full description or additional details provided for the media item.

MediaType String True

Specifies the general type of the media item, such as image, video, or audio.

MimeType String True

The Multipurpose Internet Mail Extensions (MIME) type of the media file, such as image/jpeg or video/mp4.

PostId Integer False

The ID of the post or page the media item is attached to, if applicable.

SourceUrl String True

The direct URL to the original media file stored in WordPress.

Link String True

The permalink URL for viewing the media item in WordPress.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
FileLocation String

Specifies the local file path or source location of the media file to upload.

CData Python Connector for WordPress

Pages

Create, update, delete, and query Wordpress Pages.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Pages WHERE Id IN (1, 2)
SELECT * FROM Pages WHERE Author IN ('1', '23')
SELECT * FROM Pages WHERE Parent IN (0, 2)
SELECT * FROM Pages WHERE Status = 'Publish'
SELECT * FROM Pages WHERE MenuOrder = 1
SELECT * FROM Pages WHERE Date > '2018-02-02T02:02:23'
SELECT * FROM Pages WHERE Date < '2018-02-02T02:02:23'
SELECT * FROM Pages ORDER BY Id
Also, ordering by Author, Title, Date, Modified, Parent, MenuOrder, is handled by the WordPress API.

Insert and Update

To insert a page, it's enough to specify one of the fields below:

INSERT INTO Pages (Title, Content, Status) VALUES ('A title', 'Some content here', 'publish')

To update a page you must specify the following column: Id.

UPDATE Pages SET Status = 'draft', Content = 'Updated content', Title = 'Updated title' WHERE Id = '12345'
Other fields that you can use on INSERT and UPDATE queries are: Date, DateGMT, Status, Parent, Title, Content, Author, MediaId, CommentStatus, PingStatus, and MenuOrder.

Delete

To delete a page you must specify the following column: Id.

DELETE FROM Pages WHERE Id = '12345'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the page in WordPress.

Author Integer False

The unique identifier of the user who created or owns the page.

Title String False

The title of the WordPress page, as displayed in listings or navigation menus.

Date Datetime False

The date and time when the page was published, recorded in the site's local timezone.

DateGMT Datetime False

The date and time when the page was published, recorded in Greenwich Mean Time (GMT).

Link String True

The permalink URL for viewing the published page on the WordPress site.

Modified Datetime True

The date and time when the page was last updated, recorded in the site's local timezone.

ModifiedGMT Datetime True

The date and time when the page was last updated, recorded in GMT.

Status String False

Indicates the current publication status of the page, such as publish, future, draft, pending, or private.

The allowed values are publish, future, draft, pending, private.

Type String True

Specifies the content type of the object, which for pages is typically 'page'.

Parent Integer False

The unique identifier of the parent page, if this page is part of a hierarchy.

Content String False

The main body content of the WordPress page.

FeaturedMediaId Integer False

The unique identifier of the media item, such as an image, is set as the featured image for the page.

CommentStatus String False

Indicates whether visitors can post comments on the page.

PingStatus String False

Specifies whether the page can receive pingbacks or trackbacks from other sites.

MenuOrder Integer False

Defines the display order of the page relative to other pages with the same parent.

CData Python Connector for WordPress

Plugins

Create, update, delete, and query Plugins.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector.

  • Plugin supports the '=' operator.
  • Status supports the '=' operator.
  • Context supports the '=' operator.
The following queries are processed server side.
SELECT * FROM Plugins WHERE Plugin = 'hello-dolly/hello'
SELECT * FROM Plugins WHERE Status = 'inactive'
SELECT * FROM Plugins WHERE Context = 'edit'

Insert

To insert into Plugins, you must specify the Slug column.

INSERT INTO Plugins (Slug, Status) VALUES ('hello-dolly', 'active')

Update

To update the Plugin, you must specify the Plugin column.

UPDATE Plugins SET Status = 'inactive' WHERE Plugin = 'hello-dolly/hello'

Delete

To delete a Plugin, you must specify the Plugin column.

DELETE FROM Plugins WHERE Plugin = 'hello-dolly/hello'

Columns

Name Type ReadOnly References Description
Plugin [KEY] String True

The main plugin file name, including its relative path within the WordPress plugins directory.

Name String True

The display name of the plugin as shown in the WordPress admin interface.

Author String True

The name of the developer or organization that created the plugin.

DescriptionRaw String True

The unformatted text version of the plugin description as stored in its metadata.

DescriptionRendered String True

The formatted version of the plugin description, as rendered for display in the WordPress admin interface.

NetworkOnly Boolean True

Indicates whether the plugin can only be activated for the entire WordPress network in multisite installations.

RequiresPhp String True

Specifies the minimum required version of PHP (Hypertext Preprocessor) for the plugin to run correctly.

RequiresWp String True

Specifies the minimum WordPress version required for the plugin to be compatible.

Status String False

The current activation state of the plugin, such as active, inactive, or must-use.

The allowed values are inactive, active.

TextDomain String True

The text domain used for internationalization and localization of the plugin's strings.

Version String True

The version number of the plugin as defined in its header information.

AuthorUri String True

The website URL of the plugin's author or development organization.

PluginUri String True

The website URL providing more information or documentation about the plugin.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Slug String

The unique plugin directory slug from WordPress.org is required for insert operations, but it is not included in select responses.

Context String

Specifies the request context, which determines the fields and level of detail returned in the response.

The allowed values are view, edit, embed.

CData Python Connector for WordPress

Posts

Create, update, delete, and query Wordpress Posts.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Posts WHERE Id = 1
SELECT * FROM Posts WHERE Status = 'publish' AND Sticky = 'true'
SELECT * FROM Posts WHERE Id IN (1, 21)
SELECT * FROM Posts WHERE Author IN (1, 2)
SELECT * FROM Posts WHERE Date < '2018-02-02T02:02:23'
SELECT * FROM Posts WHERE Date > '2018-02-02T02:02:23'
SELECT * FROM Posts ORDER BY Title
Also, ordering by Id, Author, Date, Modified, is handled by the WordPress API.

Insert and Update

To insert a post you must specify one of the following columns: Title, Content, and Excerpt.

INSERT INTO Posts (Title, status) VALUES ('New post', 'publish')

To create a post with custom taxonomy, you must specify the TaxonomyTerms(name:terms) in the below format.

INSERT INTO Posts (Title, Content, Status, TaxonomyTerms) VALUES ('The story of Dr Strange', 'This is the content', 'publish', 'books:2,5')"

To update a post you must specify the following column: Id.

UPDATE Posts SET Content = 'Updated content' WHERE Id = '12345'

To update the post with custom taxonomy, you must specify the TaxonomyTerms(name:terms) in the below format.

UPDATE Posts SET taxonomyterms = 'books:2,5' WHERE Id = '10'"
Other fields that you can use on INSERT and UPDATE queries are the following: Date, DateGMT, Status, Excerpt, Title, Content, Author, MediaId, CommentStatus, PingStatus, Sticky, Categories, Tags and TaxonomyTerms.

Delete

To delete a post you must specify the following column: Id.

DELETE FROM Posts WHERE Id = '12345'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the post in WordPress.

Title String False

The title of the WordPress post, displayed in listings, navigation, and page headers.

CommentStatus String False

Indicates whether comments are enabled for the post, allowing visitors to leave feedback.

Categories String False

The list of categories assigned to the post, provided as a comma-separated string.

Tags String False

The list of tags assigned to the post, provided as a comma-separated string for organizing content.

Author Integer False

The unique identifier of the user who authored or published the post.

Date Datetime False

The date and time when the post was published, recorded in the site's local timezone.

DateGMT Datetime False

The date and time when the post was published, recorded in Greenwich Mean Time (GMT).

Modified Datetime True

The date and time when the post was last updated, recorded in the site's local timezone.

ModifiedGMT Datetime True

The date and time when the post was last updated, recorded in GMT.

Status String False

Indicates the current publication state of the post, such as publish, future, draft, pending, or private.

The allowed values are publish, future, draft, pending, private.

Type String True

Specifies the type of post, such as post, page, or a registered custom post type.

Content String False

The main body content of the WordPress post, including formatted text, media, or HTML.

Excerpt String False

A short summary or preview of the post content, often displayed in feeds or post listings.

PingStatus String False

Specifies whether pingbacks and trackbacks are enabled for the post.

Format String False

Defines the visual format of the post, such as standard, aside, gallery, or link.

Sticky Boolean False

Indicates whether the post is marked as sticky, keeping it pinned to the top of the site's front page.

Link String True

The permalink URL for viewing the post on the WordPress site.

FeaturedMediaId Integer False

The unique identifier of the media item, such as an image, set as the featured image for the post.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
TaxonomyTerms String

Specifies the taxonomy terms, such as categories or tags, to be assigned to the post.

Context String

Defines the request scope, which determines which fields are included in the response, such as view or edit.

The allowed values are view, edit, embed.

CData Python Connector for WordPress

Tags

Create, update, delete, and query Tags to associate with your posts.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Tags WHERE Id NOT IN ('8', '9')
SELECT * FROM Tags WHERE Id = 5
SELECT * FROM Tags ORDER BY Id
Also, ordering by Count, Description, and Name is handled by the WordPress API.

Insert

To insert a tag you must specify the following column: Name.

INSERT INTO Tags (Name, Description) VALUES ('MyTag', 'A tag')

Update

To update a tag you must specify the following column: Id.

UPDATE Tags SET Name = 'Updated name', Description = 'Updated description' WHERE Id = '12345'

Delete

To delete a tag you must specify the following column: Id.

DELETE FROM Tags WHERE Id = '12345'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the tag in WordPress.

Count Integer True

The total number of published posts associated with this tag.

Description String False

The descriptive text or explanation for the tag, often displayed on tag archive pages.

Link String True

The permalink URL for viewing all posts associated with this tag on the WordPress site.

Name String False

The display name of the tag as shown in the WordPress admin area or on the site.

Taxonomy String True

Specifies the taxonomy type for the term, which for tags is typically 'post_tag'.

CData Python Connector for WordPress

Users

Create, update, delete, and list the Users of the website.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. To retrieve and filter the values for the Roles column, use Context='edit' in the WHERE clause. For example, the following queries are processed server side. Only users that have published posts will be returned.

SELECT * FROM Users WHERE Id IN ('1', '23')
SELECT * FROM Users WHERE Roles IN ('editor, administrator') AND Context='edit'
SELECT * FROM Users ORDER BY Email
Also, ordering by Id, Name, RegisteredDate, and Url is handled by the WordPress API.

Insert and Update

To insert a user you must specify the following columns: Username, Email, and Password.

INSERT INTO Users (Username, Email, Password) VALUES ('DemoUser', 'example@cdata.com', 'aPassword')

Update

To update a user you must specify the following column: Id.

UPDATE Users SET Name = 'First Last' WHERE Id = '12345'
Other fields that you can use on INSERT and UPDATE queries are the following: Username, Name, FirstName, LastName, Email, Url, Description, Locale, Nickname, Roles.

Delete

To delete a user you must specify the following column: Id.

DELETE FROM Users WHERE Id = '12345'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the user account in WordPress.

Username String False

The username used by the user to log in to WordPress.

Name String False

The display name of the user, shown publicly on posts and comments.

FirstName String False

The first name of the user as stored in their WordPress profile.

LastName String False

The last name of the user as stored in their WordPress profile.

Email String False

The email address associated with the user's account, used for notifications and password resets.

Roles String False

The roles assigned to the user, defining their permissions and capabilities. Use with the IN operator and context=edit to filter by role.

Description String False

A short biography or description provided in the user's profile.

Locale String False

Specifies the user's language and regional setting, based on WordPress locale codes.

Nickname String False

An alternate name the user chooses to display instead of their username.

RegisteredDate Datetime True

The date and time when the user registered on the WordPress site.

Link String True

The author archive URL associated with the user, listing their published posts.

Url String False

The website URL provided in the user's profile.

Administrator Boolean True

Indicates whether the user has the Administrator role with full site access.

EditPosts Boolean True

Indicates whether the user has permission to edit their own posts.

PublishPosts Boolean True

Indicates whether the user can publish new posts.

DeletePosts Boolean True

Indicates whether the user can delete their own posts.

EditPages Boolean True

Indicates whether the user can edit pages on the WordPress site.

PublishPages Boolean True

Indicates whether the user can publish new pages.

DeletePages Boolean True

Indicates whether the user can delete pages from the site.

EditUsers Boolean True

Indicates whether the user can edit other user accounts.

CreateUsers Boolean True

Indicates whether the user can create new user accounts.

PromoteUsers Boolean True

Indicates whether the user can promote users to higher roles.

DeleteUsers Boolean True

Indicates whether the user can delete other user accounts.

EditThemes Boolean True

Indicates whether the user can modify theme files or settings.

UpdateThemes Boolean True

Indicates whether the user can update installed themes.

InstallThemes Boolean True

Indicates whether the user can install new themes.

DeleteThemes Boolean True

Indicates whether the user can delete installed themes.

SwitchThemes Boolean True

Indicates whether the user can switch the active theme for the site.

ActivatePlugins Boolean True

Indicates whether the user can activate installed plugins.

UpdatePlugins Boolean True

Indicates whether the user can update existing plugins.

EditPlugins Boolean True

Indicates whether the user can edit plugin code or settings.

DeletePlugins Boolean True

Indicates whether the user can delete installed plugins.

EditFiles Boolean True

Indicates whether the user can edit files directly through the WordPress interface.

UploadFiles Boolean True

Indicates whether the user can upload media or other files to the site.

ManageOptions Boolean True

Indicates whether the user can manage general site options and settings.

ManageCategories Boolean True

Indicates whether the user can manage and organize post categories.

EditDashboard Boolean True

Indicates whether the user can customize or edit the WordPress dashboard.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Password String

The user's password value, used only during account creation; not returned in responses.

Context String

Defines the request scope, which determines which fields are included in the response, such as view or edit.

The allowed values are view, edit, embed.

CData Python Connector for WordPress

Views

Views are similar to tables in the way that data is represented; however, views are read-only.

Queries can be executed against a view as if it were a normal table.

CData Python Connector for WordPress Views

Name Description
Taxonomies List all the taxonomies.
TaxonomyTerms List all terms of the taxonomies.
Types List Types associated with the Posts.

CData Python Connector for WordPress

Taxonomies

List all the taxonomies.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Taxonomies WHERE Slug = 'books'

Columns

Name Type References Description
Hierarchical Boolean Indicates whether the taxonomy supports hierarchical relationships, allowing parent and child terms, such as categories.
Name String The display name of the taxonomy as registered in WordPress.
Slug [KEY] String A URL-friendly identifier for the taxonomy, typically used in permalinks and API requests.
RestBase String The base route used in the WordPress REST API for accessing terms within this taxonomy.
Description String A text description that explains the purpose or usage of the taxonomy.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Context String Defines the request scope, which determines which fields are included in the response, such as view or edit.

The allowed values are view, edit, embed.

CData Python Connector for WordPress

TaxonomyTerms

List all terms of the taxonomies.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. The connector processes other filters client-side within the connector. Note: Taxonomy is required to fetch TaxonomyTerms. Use the slug values from the taxonomies view to retrieve the taxonomy column value.

For example, the following queries are processed server side.

SELECT * FROM TaxonomyTerms WHERE Taxonomy = 'books';
SELECT * FROM WordPress.TaxonomyTerms WHERE taxonomy IN ('post_tag','Category');

Columns

Name Type References Description
id Integer The unique identifier of the taxonomy term within the specified taxonomy.
Count Integer The number of posts or items associated with this taxonomy term.
Link String The URL link associated with the taxonomy term, used for navigating to the term's archive or details page.
Name String The display name of the taxonomy term, shown in the WordPress admin and on the front-end site.
Slug String The URL-friendly identifier for the taxonomy term, used in permalinks and in API requests.
Taxonomy String The taxonomy to which this term belongs, such as category, post_tag, or a custom taxonomy.
Parent Integer The unique identifier of a parent term in a hierarchy is given, where a value of 0 indicates that there is no parent.
Description String A textual description of the taxonomy term, explaining its purpose or providing additional context.

CData Python Connector for WordPress

Types

List Types associated with the Posts.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters. The connector processes other filters client-side within the connector. For example, the following queries are processed server side.

SELECT * FROM Types WHERE Slug = 'product'

Columns

Name Type References Description
Slug [KEY] String The unique slug that identifies the post type in WordPress, used in permalinks and API routes.
Name String The display name of the post type, shown in the WordPress admin interface.
Description String A short explanation describing the purpose or usage of the post type.
HasArchive String Indicates whether the post type supports an archive page that lists all its posts.
IsHierarchical Boolean Specifies whether the post type supports parent and child relationships, similar to pages.
TemplateLock String The template lock value.
Icon String The icon representing the post type in the WordPress admin menu.
RestBase String The base route used for the post type in the WordPress REST API.
RestNamespace String The namespace used for the post type within the WordPress REST API.
Taxonomies String A list of taxonomies associated with the post type, such as category or post_tag.

CData Python Connector for WordPress

Stored Procedures

Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT/INSERT/UPDATE/DELETE operations with WordPress.

Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from WordPress, along with an indication of whether the procedure succeeded or failed.

CData Python Connector for WordPress Stored Procedures

Name Description
CreateMedia Uploads a new media file, such as an image or video, to the WordPress site's media library and attaches it to a specified post or page.
DeleteUser Delete the user.
GetOAuthAccessToken Gets the OAuth access token from Wordpress.
GetOAuthAuthorizationURL Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.
RefreshOAuthAccessToken Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.
UpdateSettings Updates the settings of the website.

CData Python Connector for WordPress

CreateMedia

Uploads a new media file, such as an image or video, to the WordPress site's media library and attaches it to a specified post or page.

Stored Procedure Specific Information

Call this procedure to create media. Note: The Status column only accepts the following values: publish, future, draft, pending, and private. To create a media you must specify the following column: FileLocation. For example:

EXEC CreateMedia Title='MediaTitle', FileLocation='C:/myImages/image.png', Caption='This is an uploaded media.';

Input

Name Type Description
Title String The title assigned to the media item in WordPress.
Date Datetime The date and time to assign to the uploaded media item, based on the site's configured timezone.
DateGMT Datetime The date and time to assign to the uploaded media item, expressed in Greenwich Mean Time (GMT).
Status String Specifies the publication status of the uploaded media item, such as inherit, publish, or private.
AuthorId Integer Specifies the ID of the WordPress user who created or uploaded the media item.
CommentStatus String Specifies whether the uploaded media item can receive comments. Supported values include open and closed.
PingStatus String Specifies whether the media item accepts pings or trackbacks from external sites.
Caption String The caption text to display with the media item in WordPress.
Description String The description text for the media item in WordPress.
PostId Integer The unique identifier of the post or page that the uploaded media item is associated with or attached to in WordPress.
FileLocation String The file path or publicly accessible URL of the media file that uploaded to WordPress.

Result Set Columns

Name Type Description
Success String Indicates whether the media upload completed successfully.
Id String The unique identifier assigned to the media item after it is successfully uploaded to WordPress.

CData Python Connector for WordPress

DeleteUser

Delete the user.

Stored Procedure Specific Information

Call this procedure to delete the user. To create a User you must specify the following column: Id and ReassignId. For example:

EXEC DeleteUser Id=24,ReassignId=25;

Input

Name Type Description
Id String Unique identifier for the user.
ReassignId String Id to reassign the deleted user's posts.

Result Set Columns

Name Type Description
Success String Indicates whether the User is deleted successfully.

CData Python Connector for WordPress

GetOAuthAccessToken

Gets the OAuth access token from Wordpress.

Input

Name Type Description
AuthMode String The type of authentication mode to use. The allowed values are APP, WEB.
Scope String The scope or permissions you are requesting.

The default value is user public_repo repo repo_deployment repo:status repo:invite delete_repo notifications admin:org.

CallbackUrl String The URL the user will be redirected to after authorizing your application.
Verifier String The verifier returned from Wordpress after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL.
State String This field indicates any state that may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to Google authorization server and back. Uses include redirecting the user to the correct resource in your site, using nonces, and mitigating cross-site request forgery.

Result Set Columns

Name Type Description
OAuthAccessToken String The authentication token returned from Wordpress.
OAuthRefreshToken String A token that may be used to obtain a new access token.
ExpiresIn String The remaining lifetime for the access token in seconds.

CData Python Connector for WordPress

GetOAuthAuthorizationURL

Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.

Input

Name Type Description
CallbackUrl String The URL that Wordpress will return to after the user has authorized your app.
Scope String The scope or permissions you are requesting.

The default value is user public_repo repo repo_deployment repo:status repo:invite delete_repo notifications admin:org.

State String This field indicates any state that may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to Google authorization server and back. Uses include redirecting the user to the correct resource in your site, using nonces, and mitigating cross-site request forgery.

Result Set Columns

Name Type Description
URL String The URL to be entered into a Web browser to obtain the verifier token and authorize the data provider with.

CData Python Connector for WordPress

RefreshOAuthAccessToken

Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.

Input

Name Type Description
OAuthRefreshToken String The refresh token returned with the previous access token.

Result Set Columns

Name Type Description
OAuthAccessToken String The access token used for communication with Wordpress.
ExpiresIn String The remaining lifetime on the access token.
OAuthRefreshToken String The refresh token used for communication with Wordpress.

CData Python Connector for WordPress

UpdateSettings

Updates the settings of the website.

Stored Procedure Specific Information

EXECUTE

Call this procedure to update settings. For example:

EXECUTE UpdateSettings Title = 'New Title!'

Input

Name Type Description
Title String Specifies the title of the WordPress site, displayed in browser titles and across site pages.
Description String Defines the site's tagline or short description, often displayed below the title.
Url String Specifies the main URL of the WordPress site, used as the base address for all links.
Email String The email address of the administrator for notifications and confirmations. Changes must be verified via email before they take effect.
Timezone String Specifies the timezone setting for the site by selecting a city in the same region.
DateFormat String Defines the default format used for displaying dates across the site.
TimeFormat String Defines the default format used for displaying time values across the site.
Language String Specifies the site's language using a WordPress locale code, such as en_US.
UseSmilies Boolean Determines whether text-based emoticons, such as :-) or :-P, are automatically converted into graphic emojis.
DefaultCategory Integer Sets the default category assigned to posts when no category is selected.
DefaultPostFormat String Specifies the default post format for new posts, such as standard, aside, or gallery.
PostsPerPage Integer Defines the maximum number of posts displayed per blog page or archive page.
DefaultPingStatus String Specifies whether pingbacks and trackbacks are allowed for new posts.
DefaultCommentStatus String Specifies whether comments are enabled by default for new posts.

CData Python Connector for WordPress

WordPressOnline Data Model

The CData Python Connector for WordPress models WordPress data as an easy-to-use SQL database. There are three parts to the data model: tables, views, and stored procedures.

Tables

The Tables section, which details standard SQL tables, and the Views section, which lists read-only SQL tables, describe the schema exposed through the WordPress.com API. The available data depends on your account credentials and access level.

Commonly used tables include:

Table Description
Categories Create, update, list, and delete the Categories for the WordPressOnline website.
Comments Query the comments data.
Media Get a list of items in the media library.
NavigationMenus List, update, create, and delete NavigationMenus of the WordPressOnline website.
Posts Create, update, list, and delete the Posts for the WordPressOnline website.
PublicizeConnection List all publicizeconnections that the current user has set up and update and delete specified publicize connection.
Tags Create, update, list, and delete the Tags for the WordPressOnline website.
TaxonomyTerms Create, update, list, and delete the Taxonomy Terms for the WordPressOnline website.
Users List the Users of the WordPressOnline website.
CommentLikes Get the likes information for a comment.
CommentLikeStatus Get the like status for a comment of the WordPressOnline website.
Follows List a site's followers in reverse chronological order.
Insights Query the list of stats/metrics/insights that the current user has access to.
PostTypes List the PostTypes for the WordPressOnline website.
RecentComments Get a list of recent comments on a post.
SharingButtons List and update all the sharing buttons for a site.
SitePostViews Query the SitePostViews in Wordpress.
SitePublicizeConnection Query a list of publicize connections that are associated with the specified site.
SiteStats Query the SiteStats in Wordpress.
SiteStatsSummary Query the SiteStatsSummary in Wordpress.

Stored Procedures

Stored Procedures are actions that are invoked via SQL queries. They perform tasks beyond standard CRUD operations, including creating and uploading media and managing OAuth tokens.

CData Python Connector for WordPress

Tables

The connector models the data in WordPress as a list of tables in a relational database that can be queried using standard SQL statements.

CData Python Connector for WordPress Tables

Name Description
Categories Returns information about WordPress categories, including their names, descriptions, and post counts.
Comments Returns comments from WordPress posts, including author details, content, and status information.
KeyRingConnection Returns information about external service connections and authentication tokens managed through the WordPress Keyring framework.
Media Get a list of items in the media library.
NavigationMenus List, Update, Create and Delete NavigationMenus of the WordPressOnline website.
Posts Create,Update,List and Delete the Posts for the WordPressOnline website.
PublicizeConnection list all publicizeconnections that the current user has set up and update and delete specified publicize connection.
SiteWidgets Query and update the active and inactive widgets for a site.
SiteWordAdsSettings Query and Update detailed WordAds settings information about a site.
SiteWordAdsTos Get and Update WordAds TOS information about a site.
StagingSites Retrieve, create, and delete staging sites for a specific WordPress.com site.
Tags Create,Update,List and Delete the Tags for the WordPressOnline website.
TaxonomyTerms Create,Update,List and Delete the Taxonomy Terms for the WordPressOnline website.
Users List the Users of the WordPressOnline website.

CData Python Connector for WordPress

Categories

Returns information about WordPress categories, including their names, descriptions, and post counts.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Slug supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Categories WHERE Slug = 'test'

Insert

To insert a category the following column is required: Name.

INSERT INTO Categories (Description, Name, Parent) VALUES ('This is an example Category', 'myCategory', '138')

Update

To update a category you must specify the following column: Id.

UPDATE Categories SET Name = 'updatedName', Description = 'Updated description.', Parent = 137 WHERE Id = '139'

Delete

To delete a category you must specify the following column: Id.

DELETE FROM Categories WHERE Id = '139'

Columns

Name Type ReadOnly References Description
Slug String True

The slug assigned to the category in WordPress. This is a URL-friendly string derived from the category name and used in site URLs and API endpoints.

ID [KEY] String True

A unique integer that identifies the category in WordPress and links posts, tags, and other taxonomy data associated with that category.

Name String False

The category name defined in WordPress, representing the label shown on the site and used to organize related posts.

Description String False

The descriptive text defined in WordPress for the category, typically used to explain its purpose or the type of posts it contains.

FeedURL String True

The URL of the RSS feed for posts in this category.

MetaAggregate String False

Contains aggregated metadata for the category, combining key details returned by WordPress.

Parent Integer True

The identifier of the parent category that this category belongs to. A value of 0 indicates that the category has no parent.

PostCount Integer True

Indicates how many posts are associated with this category in WordPress.

CData Python Connector for WordPress

Comments

Returns comments from WordPress posts, including author details, content, and status information.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. Note: Status with unapproved or trash as value will not populate using simple SELECT, respective CommentId will be required to populate the values for those Status.

  • Id supports the '=' comparison.
  • Status supports the '=' comparison.
  • Type supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Comments
SELECT * FROM Comments WHERE ID=21
SELECT * FROM Comments WHERE status='approved'

Insert

To insert a comment the following column is required: PostID.

INSERT INTO Comments (Content, Status, PostID) VALUES ('This is an example', 'approved', 21)

Update

To update a comment you must specify the following column: Id.

UPDATE Comments SET  Content= 'Test Comment', Status = 'approved', AuthorEmail = 'Author@gmail.com' WHERE ID = 21

Delete

To delete a comment you must specify the following column: ID.

DELETE FROM Comments WHERE ID = 21

Columns

Name Type ReadOnly References Description
ID [KEY] Int True

The unique identifier for the comment object in WordPress

Content String False

The text content of the comment submitted by the author.

Status String False

The approval status of the comment, such as approved, pending, or spam.

The allowed values are approved, spam, unapproved, trash.

Type String True

Specifies the type of comment, such as a standard comment, trackback, or pingback.

URL String True

The website URL associated with the comment or its author.

Date Datetime False

The date and time when the comment was posted in WordPress.

ParentID Int True

The unique identifier of the parent comment, set to 0 for top-level comments.

ParentLink String True

The URL linking directly to the parent comment in WordPress.

ParentType String True

he type of object that the parent comment is associated with, such as another comment or a post.

PostID Int False

The list of post identifiers associated with the comment in WordPress.

PostLink String True

The URL linking to the post or page where the comment was made in WordPress.

PostTitle String True

The title of the post or page associated with the comment.

PostType String True

The type of post associated with the comment, such as a post, page, or custom post type.

ShortURL String True

The shortened URL that links directly to the comment in WordPress.

AuthorAvatarURL String True

Specifies the URL of the avatar image representing the comment's author in WordPress.

AuthorEmail String False

The email address of the user who authored the comment.

AuthorFirstName String True

Specifies the first name of the WordPress user who submitted the comment.

AuthorID Int True

Specifies the unique identifier assigned to the WordPress user who created the comment.

AuthorIpAddress String True

Records the IP address used by the author when posting the comment to WordPress.

AuthorLastName String True

Specifies the last name of the WordPress user who submitted the commen.

AuthorLogin String True

Specifies the WordPress username used by the author who submitted the comment.

AuthorName String False

The display name of the user who authored the comment in WordPress.

AuthorNiceName String True

The URL-friendly version of the author's display name, used in WordPress links or slugs.

AuthorProfileURL String True

Provides the link to the comment author's public WordPress profile or user page.

AuthorSiteVisible Bool True

Indicates whether the author's site or profile is publicly visible in WordPress.

AuthorURL String False

Specifies the website URL submitted by the author when posting the comment.

RawContent String True

Contains the raw text of the comment before any HTML rendering, formatting, or sanitization is applied.

CanModerate Bool True

Specifies whether the logged-in user can perform moderation actions on the comment, such as approve, edit, or delete.

ILike Bool True

Indicates whether the current user has liked the comment.

IReplied Bool True

Indicates whether the current user has replied to the comment.

LikeCount Int True

Displays the total count of likes or positive reactions associated with the comment in WordPress.

MetaAggregate String True

Aggregated metadata for the comment returned by the WordPress API.

CData Python Connector for WordPress

KeyRingConnection

Returns information about external service connections and authentication tokens managed through the WordPress Keyring framework.

Columns

Name Type ReadOnly References Description
ID [KEY] Int False

The unique identifier of the Keyring connection record.

AdditionalExternalUsers String False

The list of additional external users linked to the Keyring connection.

IsExpires Bool False

Indicates whether the Keyring connection or its authentication token has an expiration date.

ExternalDisplay String False

The display name of the connected external account.

ExternalId String False

The unique identifier of the connected external account or service.

ExternalName String False

The name of the external account connected through Keyring.

ExternalProfilePicture String False

The URL of the profile picture for the connected external account.

Issued Datetime False

The date and time when the Keyring connection or token was issued.

Label String False

A custom label used to identify the Keyring connection in WordPress.

RefreshURL String False

The URL used to refresh or renew the authentication token for the Keyring connection.

Service String False

The service associated with the Keyring connection.

Sites String False

The list of sites associated with the Keyring connection.

Status String False

The current status of the Keyring connection, such as active or expired.

Type String False

The type of authentication or connection used for the Keyring integration..

UserId Int False

The unique identifier of the WordPress user associated with the Keyring connection.

CData Python Connector for WordPress

Media

Get a list of items in the media library.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Id supports the '=' comparison.
  • PostId supports the '=' comparison.
  • Date supports the '=' comparison.
  • MimeType supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Media
SELECT * FROM Media WHERE Id=21

Update

To update a media you must specify the following column: Id.

UPDATE Media SET  Caption= 'Test Caption', Description = 'Sample media' WHERE ID = 183

Delete

To delete a media you must specify the following column: ID.

DELETE FROM Media WHERE ID = 21

Columns

Name Type ReadOnly References Description
ID [KEY] Integer True

The unique identifier assigned to the media item within the WordPress site.

Title String False

The title of the media file as displayed in the Media Library or attached post.

PostID Integer True

The unique identifier of the post or page the media item is attached to. Returns 0 if the media is unattached.

Allowdownload String False

Indicates whether the video file is available for download by viewers.

Alt String False

The alternative text for the media item, used for accessibility and Search Engine Optimization (SEO) purposes.

AuthorID Integer True

The unique identifier of the user who uploaded the media item.

Caption String False

A short caption or description displayed with the media item.

Date Datetime True

The upload date and time of the media item, recorded in ISO 8601 format.

Description String False

A longer description or additional information about the media item.

DisplayEmbed String False

Indicates whether the video can be embedded on external sites.

Extension String True

The file extension of the media item, such as jpg, mp4, or pdf.

File String True

The name of the uploaded media file as stored in WordPress.

GUID String True

The globally unique identifier for the media item, often corresponding to the original file URL.

Icon String True

A representative icon indicating the file type of the media item.

Length Integer True

The duration of the video file, measured in seconds.

MetaAggregate String True

Returns aggregated metadata about the media item, including file details and custom fields.

MimeType String True

Specifies the file's Multipurpose Internet Mail Extensions (MIME) type, such as image/jpeg or video/mp4.

Rating String False

Indicates the content rating of the video, such as suitable for all audiences or restricted.

Size String True

The total file size, displayed in a human-readable format such as KB or MB.

URL String True

The direct URL for accessing or downloading the uploaded media file.

VideopressGuid String True

The unique identifier assigned to the video by VideoPress.

IsVideopressProcessingDone Boolean True

Indicates whether VideoPress has finished processing and encoding the uploaded video.

Width Integer True

The width of the video or image in pixels.

Height Integer True

The height of the video or image in pixels.

ThumbnailsAggregate String True

Contains metadata about automatically generated image thumbnails created from the original upload.

ExifAggregate String True

Provides EXIF data and camera details captured when the image was taken, if available

CData Python Connector for WordPress

NavigationMenus

List, Update, Create and Delete NavigationMenus of the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Id supports the '=' comparison.

The connector processes other filters client-side within the connector.

For Example:

SELECT * FROM NavigationMenus where id='780374349';

Insert

To insert new navigation menu, the following column is required: Name.

INSERT INTO NavigationMenus(Name) VALUES('testing');

Update

To update a navigation menu, you must specify the following column: Id.

UPDATE NavigationMenus SET name='updated testing' where id='780374351';

Delete

To delete a navigation menu, you must specify the following column: Id.

DELETE FROM NavigationMenus where id='780374351';

Columns

Name Type ReadOnly References Description
Id [KEY] Int True

The unique identifier of the navigation menu within the WordPress site.

Name String False

The display name of the navigation menu as it appears in the WordPress admin or site theme.

Description String False

A short summary or purpose of the navigation menu, typically defined by the site administrator.

Items String False

Includes details about each menu item, such as its ID, type, content reference, and any applicable nested child items.

Locations String False

Specifies the theme locations where the menu can be assigned, such as header, footer, or sidebar.

CData Python Connector for WordPress

Posts

Create,Update,List and Delete the Posts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Id supports the '=' comparison.
  • AuthorId supports the '=' comparison.
  • Date supports the '<', '>' comparisons.
  • Modified supports the '<', '>' comparisons.
  • Slug supports the '=' comparison.
  • Status supports the '=' comparison.
  • Sticky supports the '=' comparison.
  • Type supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Posts
SELECT * FROM Posts WHERE ID=21

Insert

To insert a post :

INSERT INTO Posts (Title, Content, Excerpt) VALUES ('Post title', 'Post content', 'Post Excerpt')

Update

To update a post you must specify the following column: ID.

UPDATE Posts SET  Title= 'Modified post title', Content = 'Modified content', Excerpt = 'Modified excerpt' WHERE ID = 21

Delete

To delete a post you must specify the following column: ID.

DELETE FROM Posts WHERE ID = 21

Columns

Name Type ReadOnly References Description
ID [KEY] Int False

The unique identifier of the post.

SiteID Int False

The unique identifier of the WordPress site that the post belongs to.

AuthorAvatarURL String False

The URL of the author's profile avatar image.

IsAuthorEmailAvailable Boolean False

Indicates whether the author's email address is available.

AuthorFirstName String False

The first name of the post's author.

AuthorID Int False

The unique identifier of the author who created the post.

AuthorLastName String False

The last name of the post's author.

AuthorLogin String False

The author's WordPress username used to log in.

AuthorName String False

The display name of the post's author.

AuthorNiceName String False

The URL-friendly version of the author's username.

AuthorProfileURL String False

The URL of the author's public WordPress profile page.

AuthorSiteID Int False

The site ID associated with the author.

AuthorURL String False

The personal website URL provided by the author, if any.

Date Datetime False

The date and time when the post was created in the site's local timezone.

Modified Datetime False

The date and time when the post was last updated.

Title String False

The title of the post as displayed on the site.

ItemURL String False

The full permalink URL of the post.

ShortURL String False

The wp.me shortlink that provides a shortened version of the post URL.

Content String False

The full HTML content of the post.

Excerpt String False

A short excerpt or summary of the post content.

Slug String False

The URL-friendly slug used to identify the post.

Guid String False

The globally unique identifier (GUID) for the post, often representing its original permalink.

Status String False

The publication status of the post, such as publish, draft, pending, private, future, trash, or auto-draft.

The allowed values are publish, private, draft, pending, future, trash, any.

IsSticky Boolean False

Indicates whether the post is marked as sticky and displayed at the top of the blog.

Password String False

The plaintext password used to protect the post, or an empty string if the post is not password-protected.

HasParent Boolean False

Indicates whether the post has a parent post (for example, a child page).

Type String False

The post type for this entry, such as post, page, or a custom post type allowed by the REST API.

DiscussionCommentCount Int False

The total number of comments associated with the post.

DiscussionCommentStatus String False

Indicates the current comment status for the post, such as open or closed.

HasDiscussionCommentsOpen Boolean False

Indicates whether new comments can be added to the post.

DiscussionPingStatus String False

Shows whether pingbacks and trackbacks are enabled for the post.

HasDiscussionPingsOpen Boolean False

Indicates whether the post accepts pingbacks.

HasLikesEnabled Boolean False

Indicates whether likes are enabled for the post.

HasSharingEnabled Boolean False

Indicates whether sharing buttons are enabled for the post.

LikeCount Int False

The total number of likes that the post has received.

ILike Boolean False

Indicates whether the authenticated user has liked the post.

IsFollowing Boolean False

Indicates whether the authenticated user is following the site where the post appears.

IsReblogged Boolean False

Indicates whether the authenticated user has reblogged this post.

GlobalID String False

A globally unique identifier representing the post across the entire WordPress.com network.

FeaturedImage String False

The URL of the post's featured image, if one is set.

PostThumbnail String False

The attachment object representing the featured image, if available.

Format String False

The display format of the post, such as standard, aside, gallery, image, quote, status, video, or audio.

HasGeo Boolean False

Indicates whether the post includes geolocation data.

MenuOrder Int False

Defines the order of pages or hierarchical posts in navigation menus.

PageTemplate String False

The page template assigned to this post or page.

PublicizeURLsAggreagtes String False

A list of URLs where the post was automatically shared via Publicize connections, such as Facebook or Twitter.

CategoriesAggregates String False

A set of categories, organized by name, that are assigned to the post.

TermsCategoryAggregates String False

A collection of taxonomy terms grouped by category name and keyed by term name.

TermsPostTagAggregates String False

A collection of taxonomy terms grouped by post tags and keyed by tag name.

TermsPostFormatAggregates String False

A collection of taxonomy terms grouped by post format and keyed by format name.

TermsMentionsAggregates String False

A collection of taxonomy terms related to user or site mentions in the post.

TagsAggregates String False

A set of tags, organized by tag name, that are applied to the post.

Attachments String False

A collection of post attachments organized by attachment ID. It returns up to 20 of the most recent attachments.

AttachmentCount Int False

The total number of attachments associated with the post.

MetadataAggregates String False

An array of key-value pairs representing the post's custom metadata fields.

HasCapabilitiesDeletePost Boolean False

Indicates whether the authenticated user has permission to delete the post.

HasCapabilitiesEditPost Boolean False

Indicates whether the authenticated user has permission to edit the post.

HasCapabilitiesPublishPost Boolean False

Indicates whether the authenticated user has permission to publish the post.

CData Python Connector for WordPress

PublicizeConnection

list all publicizeconnections that the current user has set up and update and delete specified publicize connection.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Name supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM PublicizeConnection

Update

To update a publicized connection you must specify the following column: ID.

UPDATE PublicizeConnection SET  ExternalName= 'New external name', Status='Active' WHERE ID = 21

Delete

To delete a publicized connection you must specify the following column: ID.

DELETE FROM PublicizeConnection WHERE ID = 21

Columns

Name Type ReadOnly References Description
ID [KEY] Int False

The unique identifier of the Publicize connection record.

SiteID Int False

The unique identifier of the WordPress site associated with this Publicize connection.

UserID Int False

The unique identifier of the WordPress.com user who owns or manages this connection.

IsExpires Bool False

Indicates whether the Publicize connection is temporary and automatically expires after a set period.

ExternalDisplay String False

The display name shown for the connected external account, as retrieved from the linked service.

ExternalFollowerCount Int False

The number of followers or subscribers retrieved from the connected external service.

ExternalID String False

The unique identifier assigned to the connected account on the external platform.

ExternalName String False

The account name or handle used on the connected external service.

ExternalProfilePicture String False

The URL of the profile image associated with the connected external account.

ExternalProfileURL String False

The URL of the profile page for the connected external account.

Issued Datetime False

The date and time when the Publicize connection was created or authorized.

KeyringConnectionID Int False

The unique identifier of the related Keyring connection record used for authentication.

KeyringConnectionUserID Int False

The unique identifier of the user associated with the linked Keyring connection.

Label String False

A custom label assigned by the user to help identify this Publicize connection.

RefreshURL String False

The URL endpoint used to refresh or renew the connection if it becomes invalid or expires.

Service String False

The name of the external service connected through Publicize, such as Twitter or Facebook.

HasSharedAccess Bool False

Indicates whether the connection can be shared across multiple users or is restricted to a single user.

Status String False

The current operational status of the connection, such as active or inactive.

CData Python Connector for WordPress

SiteWidgets

Query and update the active and inactive widgets for a site.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Id supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteWidgets WHERE Id = 'block-1'

Update

To update a SiteWidgets you must specify the following column: Id.

UPDATE SiteWidgets SET Position = 5 WHERE Id = 'block-1'

Delete

To delete a SiteWidgets you must specify the following column: Id.

DELETE FROM SiteWidgets WHERE Id = '139'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

The unique identifier assigned to the widget instance.

IdBase String True

The base identifier shared by all instances of this widget type.

Position Integer False

The widget's display order within its assigned sidebar.

Sidebar String False

The identifier of the sidebar where the widget is currently active.

SettingsAggregate String False

A collection of configuration settings that define the widget's behavior and appearance.

CData Python Connector for WordPress

SiteWordAdsSettings

Query and Update detailed WordAds settings information about a site.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteWordAdSettings

Update

To update a site word ad settings you must specify the following Site ID column: ID, PayPalAddress. Incase the Terms of Service have not been signed, it will be required for Update. The API will always return a single record for the site, depending on the URL specified in the connection string.

UPDATE SiteWordAdSettings SET  PayPalAddress= 'paypal-address@example.com', TermsOfService='signed' WHERE ID = 241575003

Columns

Name Type ReadOnly References Description
ID [KEY] Integer True

The unique identifier of the site associated with the WordAds settings.

Name String True

The display name or title of the WordPress site.

ItemURL String True

The full URL of the site whose WordAds settings are being managed.

IsSettingsOptimizedAds Boolean True

Indicates whether ad placement is optimized automatically by WordAds for better performance.

IsSettingsDisplayOptionsDisplayArchive Boolean False

Determines whether ads are displayed on archive pages such as category or tag listings.

IsSettingsDisplayOptionsDisplayFrontPage Boolean True

Determines whether ads appear on the site's front page or homepage.

IsSettingsDisplayOptionsDisplayPage Boolean True

Determines whether ads are displayed on static pages.

IsSettingsDisplayOptionsDisplayPost Boolean True

Determines whether ads are shown on individual post pages.

IsSettingsDisplayOptionsEnableHeaderAd Boolean True

Specifies whether a header ad is enabled at the top of the site.

IsSettingsDisplayOptionsInlineEnabled Boolean True

Specifies whether inline ads (within content) are enabled.

IsSettingsDisplayOptionsSidebar Boolean True

Specifies whether sidebar ads are enabled.

IsSettingsDisplayOptionsSecondBelowpost Boolean True

Specifies whether an additional ad unit appears below post content.

PayPalAddress String False

The PayPal email address associated with WordAds payouts.

TermsOfService String False

Indicates whether the WordAds Terms of Service have been accepted. Required for enabling or updating ad settings if not yet signed.

ShowToLoggedIn String False

Specifies whether ads should be shown to logged-in users.

IsCCPAEnabled Boolean False

Enables or disables targeted advertising for visitors in California, in compliance with the California Consumer Privacy Act (CCPA).

CCPAPrivacyPolicyURL String False

The URL displayed at the bottom of the CCPA notice pop-up, linking to the site's privacy policy. A pop-up window opens in a new browser tab, while a pop-up dialog box appears as an overlay on the same page.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
DisplayOptionsAggregate String

A collection of ad display settings that define where ads appear, including enable_header_ad, second_belowpost, sidebar, and display options for front_page, post, page, and archive.

CData Python Connector for WordPress

SiteWordAdsTos

Get and Update WordAds TOS information about a site.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteWordAdsTos

Update

To update a site word ad terms of service you must specify the following Site ID column: ID and TermsOfService

UPDATE SiteWordAdsTos SET TermsOfService='true' WHERE ID = 241575003

Columns

Name Type ReadOnly References Description
ID [KEY] Int True

The unique identifier of the site associated with the WordAds Terms of Service.

name String True

The display name or title of the WordPress site.

ItemURL String True

The full URL of the site linked to the WordAds Terms of Service agreement.

TOS String False

The WordAds Terms of Service text or agreement status for the site.

SettingsAggregate String False

A collection of WordAds Terms of Service settings and related compliance details, viewable only by users with post-editing permissions on the site.

CData Python Connector for WordPress

StagingSites

Retrieve, create, and delete staging sites for a specific WordPress.com site.

Table Specific Information

Select

The connector uses the WordPress API to process WHERE clause conditions built with the following column and operator:

  • Id supports the = comparison.

The rest of the filter is executed client-side within the connector.

For example, the following queries are processed server-side:

SELECT * FROM StagingSites WHERE Id = 123456

Insert

To insert a staging site, specify at least the following column: Name.

INSERT INTO StagingSites (Name) VALUES ('my-staging-site')

Delete

To delete a staging site, specify the Id of the staging site.

DELETE FROM StagingSites WHERE Id = 123456

Columns

Name Type ReadOnly References Description
Id [KEY] Int True

The unique identifier of the staging site.

Name String False

The title or name of the staging site.

Url String True

The full URL of the staging site.

UserHasPermission Boolean True

Indicates whether the current user has permission to access or manage the staging site.

CData Python Connector for WordPress

Tags

Create,Update,List and Delete the Tags for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Slug supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Tags
SELECT * FROM Tags WHERE Slug='tagTest'

Insert

To insert a tag, following columns are required : Name

INSERT INTO Tags (Slug, Name, Description) VALUES ('tagtest', 'Tag name', 'Tag Description')

Update

To update a tag you must specify the following column: Slug.

UPDATE Tags SET  Name= 'Modified tag name', Description = 'Modified tag description' WHERE Slug='tagTest'

Delete

To delete a tag you must specify the following column: Slug.

DELETE FROM Tags WHERE Slug='tagTest'

Columns

Name Type ReadOnly References Description
Slug [KEY] String True

The URL-friendly identifier (slug) for the tag.

ID Int True

The unique numeric identifier assigned to the tag.

Name String False

The display name of the tag as shown in WordPress.

Description String False

A brief explanation or summary of what the tag represents.

FeedUrl String False

The RSS feed URL associated with this tag.

PostCount Int False

The total number of posts currently assigned to this tag.

CData Python Connector for WordPress

TaxonomyTerms

Create,Update,List and Delete the Taxonomy Terms for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Taxonomy supports the '=' comparison.
  • Slug supports the '=' comparison.

The connector processes other filters client-side within the connector. For example, the following queries are processed server side:

SELECT * FROM TaxonomyTerms WHERE Taxonomy='post_tag'
SELECT * FROM TaxonomyTerms WHERE Slug='tagTest'
SELECT * FROM TaxonomyTerms WHERE Taxonomy='post_tag';
SELECT * FROM TaxonomyTerms WHERE Taxonomy='post_tag' and Slug='tagTest';

INSERT

To insert a taxonomy term, the following column is required: Taxonomy.

INSERT INTO TaxonomyTerms (Slug, Name, Taxonomy) VALUES ('tagtest', 'Taxonomy term name', 'post_tag')

UPDATE

To update a taxonomy term you must specify the following columns: Taxonomy and Slug.

UPDATE TaxonomyTerms SET  Name= 'Modified taxonomy term name', Description = 'Modified taxonomy term description' WHERE Taxonomy='post_tag' AND Slug='tagTest'

DELETE

To delete a taxonomy term you must specify the following columns: Taxonomy and Slug.

DELETE FROM TaxonomyTerms WHERE Taxonomy='post_tag' AND Slug='tagTest'

Columns

Name Type ReadOnly References Description
Slug [KEY] String True

The URL-friendly identifier (slug) for the taxonomy term.

Taxonomy String False

TaxonomyPostType.Name

The taxonomy this term belongs to, such as category, post_tag, or a custom taxonomy.

Description String False

A brief explanation or summary describing the purpose or meaning of the term.

FeedUrl String False

The RSS feed URL associated with this taxonomy term.

ID Int True

The unique numeric identifier assigned to the taxonomy term.

Name String False

The display name of the taxonomy term as it appears in WordPress.

Parent Int False

The ID of the parent term if this term is part of a hierarchical taxonomy.

PostCount Int False

The total number of posts currently assigned to this taxonomy term.

CData Python Connector for WordPress

Users

List the Users of the WordPressOnline website.

Table Specific Information

Select

The connector uses the WordPress API to process supported filters.

  • Id supports the '=' comparison.
  • SiteId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Users WHERE Id = 1
SELECT * FROM Users WHERE SiteId = 1255
Also, ordering by Id, and SiteId is handled by the WordPress API.

Update

To update a user you must specify the following column: Id.

UPDATE Users SET name = 'First Last' WHERE Id = '12345'

Delete

To delete a user you must specify the following column: Id.

DELETE FROM Users WHERE Id = '12345'

Columns

Name Type ReadOnly References Description
Id [KEY] Integer True

The unique identifier of the user.

SiteID Integer True

The unique identifier of the WordPress site the user belongs to.

FirstName String False

The user's first name as displayed in their WordPress profile.

LastName String False

The user's last name as displayed in their WordPress profile.

Email String False

The email address associated with the user's WordPress account.

AvatarURL String True

The URL of the user's avatar image.

Name String False

The display name of the user, typically shown on posts and comments.

NiceName String False

A sanitized, URL-friendly version of the user's display name.

ProfileURL String True

The full URL to the user's public WordPress profile page.

Roles String False

A list of roles assigned to the user, such as administrator, editor, author, or subscriber.

IPAddress String True

The IP address associated with the user's activity.

IsSuperAdmin Boolean True

Indicates whether the user has network-level administrative privileges (Super Admin) in a multisite environment.

Login String False

The username used by the user to log in to WordPress.

IsSiteVisible Boolean True

Indicates whether the user's site is visible to the public.

ItemURL String False

The full URL of the user's primary WordPress site.

CData Python Connector for WordPress

Views

Views are similar to tables in the way that data is represented; however, views are read-only.

Queries can be executed against a view as if it were a normal table.

CData Python Connector for WordPress Views

Name Description
AgencySites List the sites for a specific agency in WordPressOnline.
AgencySitesPending List the pending sites for a specific agency in WordPressOnline.
AuditHistoryforComments Returns a history of changes and status updates for comments in WordPress.
BlogRecommendations Returns a list of recommended WordPress blogs based on user interests or activity.
ClickEmails Returns data about links clicked in WordPress emails, including the email ID, URL, and time of each click.
CommentCounts Returns the total number of comments for WordPress posts, including counts by status such as approved, pending, and spam.
CommentLikes Returns information about likes on WordPress comments, including the number of likes each comment has received.
CommentLikeStatus Returns the like status of WordPress comments for the current user, including whether each comment has been liked.
DropDownPages Returns a list of WordPress pages, including their IDs and titles, for use in dropdown selections.
EmailSettings Returns the email configuration settings for the WordPress site, including sender details and notification preferences.
Feed Returns metadata and subscription information for a specific feed in the WordPress Reader.
Follows Returns a list of WordPress blogs or sites followed by the current user, including their Ids, names, and URLs.
Insights Returns analytical data and performance insights for the WordPress site, including views, visitors, likes, and comments.
MatchingFeeds Get the MatchingFeeds for a blog.
OpenEmails Query the OpenEmails in Wordpress.
PostReblogStatus Get reblog status for a post.
PostsTags List the UserLikedPosts for the WordPressOnline website.
PostTypes List the PostTypes for the WordPressOnline website.
ReaderMenuDefault Default menu items from the WordPress Reader Menu.
ReaderMenuRecommended Recommended topics from the WordPress Reader Menu.
ReaderMenuSubscribed Subscribed topics from the WordPress Reader Menu.
RecentComments Get a list of recent comments on a post.
SharingButtons list and update all the sharing buttons for a site.
SiteCountryViews Query the SiteCountryViews in Wordpress.
SiteEmailSummary Query the SiteEmailsSummary in Wordpress.
SiteFileDownloads Query the SiteFileDownloads in Wordpress.
SiteFollowers Query the SiteFollowers in Wordpress.
SiteOutboundClicks Query the SiteOutboundClicks in Wordpress.
SitePosts List the UserSitesPosts for the WordPressOnline website.
SitePostViews Query the SitePostViews in Wordpress.
SitePublicizeConnection Query a list of publicize connections that are associated with the specified site.
SitePublicizeFollowerComment List the SitePublicizeFollowerComment for the WordPressOnline website.
SitePublicizeFollowerCounts List the SitePublicizeFollowerCounts for the WordPressOnline website.
Sites Query information about a site.
SiteSearchTerms Query the SiteSearchTerms in Wordpress.
SiteShortCodesRender Get a rendered shortcode for a site
SitesPageTemplates Get a list of page templates supported by a site.
SiteStats Query the SiteStats in Wordpress.
SiteStatsReferrers Query the SiteStatsReferrers in Worpress.
SiteStatsSummary Query the SiteStatsSummary in Wordpress.
SiteStatsTags Get the SiteStatsTags for a blog.
SiteStatsVideo Query the SiteStatsVideo in Wordpress.
SiteTopAuthors Query the SiteTopAuthors in Wordpress.
SiteTopComments Query the SiteTopComments in Wordpress.
SiteTopPostsStats Query the SiteTopPostsStats in Wordpress.
SiteTotalViewsforPost Query the SiteTotalViewsforPost in Wordpress.
SiteVideoPlays Query the SiteVideoPlays in Wordpress.
SiteWordAdsEarnings List the SiteWordAdsEarnings for the WordPressOnline website.
SiteWordAdsStats List the SiteWordAdsStats for the WordPressOnline website.
StatHighlights Query the StatHighlights for a site in Wordpress.
SubscriberPosts List the SubscriberPosts for the WordPressOnline website.
SubscriptionCount Get the SubscriptionCount for a blog.
TaxonomyPostType Get a list of taxonomies associated with a post type.
TopTags Get a filtered list of top tags, grouped by letter.
TrendingTags Get a list of trending tags.
UserBillingHistory Query the Billing History in Wordpress.
UserFollowedPosts List the UserFollowedPosts for the WordPressOnline website.
UserFollowingFeeds Query the info about the user following feeds.
UserLikedPosts List the UserLikedPosts for the WordPressOnline website.
UserLikes Query the info about the posts liked by the user.
UserPreferences Update and List the UserPreferences for the WordPressOnline website.
UserSitesPosts List the UserSitesPosts for the WordPressOnline website.
UserSubscribedTags Get a list of tags subscribed to by the user
VideoPoster Get the poster for a specified VideoPress video.
VideopressChapter Get the chapters for a specified VideoPress video of the WordPressOnline website.
Videos Get the metadata for a specified VideoPress video.

CData Python Connector for WordPress

AgencySites

List the sites for a specific agency in WordPressOnline.

Table Specific Information

Select

The connector uses the WordPress API to process WHERE clause conditions built with the following column and operator:

  • Id supports the = comparison.

The rest of the filter is executed client-side within the connector.

For example, the following queries are processed server-side:

SELECT * FROM AgencySites WHERE Id = 123

Columns

Name Type References Description
Id [KEY] Int The unique identifier of the agency.
Title String The title of the agency.
Url String The URL of the site.
FeaturesJetpackBlogId Int The Jetpack blog ID associated with this site.
FeaturesJetpackIsConnected Boolean Indicates whether Jetpack is connected to this site.
FeaturesWpcomAtomicBlogId Int The WordPress.com Atomic blog ID for this site.
FeaturesWpcomAtomicState String The state of the WordPress.com Atomic site (active, pending, or provisioning).
FeaturesWpcomAtomicLicenseKey String The license key for the WordPress.com Atomic site.
FeaturesWpcomAtomicProvisionJobId Int The provision job ID for the WordPress.com Atomic site.

CData Python Connector for WordPress

AgencySitesPending

List the pending sites for a specific agency in WordPressOnline.

Table Specific Information

Select

The connector uses the WordPress API to process WHERE clause conditions built with the following column and operator:

  • AgencyId supports the = comparison.

The rest of the filter is executed client-side within the connector.

For example, the following queries are processed server-side:

SELECT * FROM AgencySitesPending WHERE AgencyId = 123

Columns

Name Type References Description
Id [KEY] Int The unique identifier of the pending site.
Title String The title of the pending site.
Url String The URL of the pending site.
FeaturesWpcomAtomicBlogId Int The WordPress.com Atomic blog ID for this pending site.
FeaturesWpcomAtomicState String The state of the WordPress.com Atomic site provisioning (pending).
FeaturesWpcomAtomicLicenseKey String The license key for the WordPress.com Atomic site.
FeaturesWpcomAtomicProvisionJobId Int The provision job ID for the WordPress.com Atomic site.
AgencyId Int

AgencySites.Id

The unique identifier of the agency whose pending sites you want to retrieve.

CData Python Connector for WordPress

AuditHistoryforComments

Returns a history of changes and status updates for comments in WordPress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters. Note: Events with status-trash or status-unapproved will not populate using simple SELECT, respective CommentId will be required to populate the values for those Events.

  • CommentId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM AuditHistoryforComments WHERE CommentId = 10

Columns

Name Type References Description
CommentId Int

Comments.Id

Specifies the identifier of the comment whose changes are recorded in the audit history.
Event String The type of action recorded for the comment, such as create, update, or delete.

The allowed values are check-ham, status-approved, status-trash, status-unapproved.

Time Timestamp The timestamp when the event related to the comment occurred.
User String The user who performed the action recorded in the audit log.

CData Python Connector for WordPress

BlogRecommendations

Returns a list of recommended WordPress blogs based on user interests or activity.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM BlogRecommendations

Columns

Name Type References Description
BlogId [KEY] Int The unique identifier for the recommended blog returned by WordPress.
BlogDomain String The domain associated with the recommended WordPress blog, typically representing the blog's public web address (for example, example.wordpress.com).
EmailFollowUrl String The URL used to follow the recommended blog via email.
FeedId String The unique identifier for the feed associated with the recommended blog.
FollowRecoId String The unique identifier for the blog recommendation record returned by WordPress.
FollowSource String The source that generated the blog recommendation, such as user activity or followed topics.
Image String The URL of the image representing the recommended blog.
MetaAggregate String Aggregated metadata for the recommended blog returned by WordPress.
Nonce String A security token used by WordPress to validate the blog recommendation request.
Reason String The reason this blog was recommended, such as shared topics or related content.
Score Double The relevance score assigned to the recommended blog based on WordPress's recommendation algorithm.
Title String Specifies the title or display name of the recommended blog as returned by WordPress.
TitleShort String The short version of the blog's title returned by WordPress, typically used in compact views or recommendation summaries.
ItemURL String Specifies the full URL of the recommended blog's homepage as returned by WordPress.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
NoOfBlogRecommendations Int The number indicating the blog's position in the list of recommendations returned by WordPress.

CData Python Connector for WordPress

ClickEmails

Returns data about links clicked in WordPress emails, including the email ID, URL, and time of each click.

Table Specific Information

SELECT

View chart stats related to email clicks by period. Note: To view chart stats related to email clicks by period, you must specify the following column in the where clause: PostId.

  • PostId supports the '=' comparison.
  • ClickEmailSummaryDate supports the '=' comparison.
  • ClickEmailSummaryPeriod supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example,

SELECT * FROM ClickEmails where POSTID=116;

Columns

Name Type References Description
PostID [KEY] Int The unique identifier of the post associated with the clicked email link.
TimelineDataAggregate String Contains aggregated data showing when and how the email link was clicked over time.
TimelineFieldsAggregate String The array of timeline fields that describe details of the email click event.
TimelineUnit String The unit of measurement used to organize the email click event timeline.

CData Python Connector for WordPress

CommentCounts

Returns the total number of comments for WordPress posts, including counts by status such as approved, pending, and spam.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM CommentCounts WHERE PostId = 21

Columns

Name Type References Description
All Int Represents the total count of all comments on the post, regardless of status such as, approved, pending, spam, or trash.
Approved Int The number of approved comments for the post.
Pending Int The number of comments on the post that are awaiting moderation.
Trash Int The number of comments for the post that have been moved to the trash.
Spam Int The number of comments on the post that are marked as spam.
PostTrashed Int Indicates whether the associated post has been moved to the trash in WordPress.
TotalComments Int The total number of comments associated with the post across all statuses.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
PostId Int The unique identifier of the post for which the comment counts are summarized.

CData Python Connector for WordPress

CommentLikes

Returns information about likes on WordPress comments, including the number of likes each comment has received.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • CommentId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM CommentLikes WHERE CommentId = 10

Columns

Name Type References Description
CommentId [KEY] Int

Comments.Id

The unique identifier of the comment that received the like.
ID [KEY] Int The unique identifier of the user who liked the comment.
Name String The display name of the user who liked the comment.
Login String The WordPress username of the user who liked the comment.
Email String The email address of the user who liked the comment.
IPAddress String The IP address from which the comment was liked.
FirstName String The first name of the user who liked the comment.
LastName String The last name of the user who liked the comment.
NiceName String The URL-friendly version of the user's display name used in WordPress profile links.
SiteID Int The unique identifier of the site associated with the user who liked the comment.
IsSiteVisible Bool Indicates whether the site associated with the user is publicly visible in WordPress.
ProfileURL String The URL linking to the WordPress profile of the user who liked the comment.
DefaultAvatar Bool Indicates whether the user is using the default WordPress avatar image.
AvatarURL String The URL of the avatar image for the user who liked the comment.
ItemURL String The URL linking directly to the comment that was liked.
MetaAggregate String Aggregated metadata for the comment like record returned by the WordPress API.

CData Python Connector for WordPress

CommentLikeStatus

Returns the like status of WordPress comments for the current user, including whether each comment has been liked.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • CommentId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM CommentLikeStatus WHERE CommentID = 0

Columns

Name Type References Description
ILike Bool Indicates whether the current user has liked the comment.
LikeCount Int The total number of likes the comment has received in WordPress.
MetaAggregate String Aggregated metadata describing the like status for a comment, as provided by the WordPress API.
CommentID Int

Comments.Id

The unique identifier of the comment associated with the like status.

CData Python Connector for WordPress

DropDownPages

Returns a list of WordPress pages, including their IDs and titles, for use in dropdown selections.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM DropDownPages

Columns

Name Type References Description
ID [KEY] Int Specifies the unique ID assigned to the WordPress page, used for selection in dropdown lists or references.
Title String Specifies the title of the WordPress page displayed in dropdown selections.

CData Python Connector for WordPress

EmailSettings

Returns the email configuration settings for the WordPress site, including sender details and notification preferences.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector. For example,

SELECT * FROM EmailSettings;

Columns

Name Type References Description
MailOption String The selected email delivery option or method configured for WordPress notifications.
DeliveryDay Int The day of the week scheduled for WordPress email delivery.
DeliveryHour Int The hour of the day scheduled for WordPress email delivery.
IsEmailBlocked Bool Indicates whether WordPress email delivery is blocked or disabled.
Frequency String The frequency at which WordPress email notifications are sent.

CData Python Connector for WordPress

Feed

Returns metadata and subscription information for a specific feed in the WordPress Reader.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • FeedId supports the '=' comparison.
  • FeedURL supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Feed where FeedID='12'
SELECT * FROM Feed where FeedURL='url_string'

Columns

Name Type References Description
FeedID [KEY] String Specifies the unique identifier assigned to the feed in WordPress, used to identify and retrieve feed entries.
FeedURL String Specifies the web address of the RSS or Atom feed associated with the WordPress site.
BlogID String Specifies the WordPress blog ID from which the feed originates.
Description String Provides a summary or description of the feed's content, as defined in WordPress.
Image String Specifies the image or logo representing the WordPress feed, typically displayed with feed entries.
IsFollowing Bool Indicates whether the current user is following the WordPress feed.
LastChecked Datetime Records the most recent timestamp when WordPress checked the feed for new content.
LastUpdate Datetime Indicates the most recent timestamp when the feed's content was updated or new entries were published.
Name String Specifies the name or display title of the feed, typically corresponding to the WordPress site or blog title.
NextRefreshTime Datetime Specifies the next scheduled time when WordPress refreshes the feed to check for new content.
OrganizationID Int Specifies the WordPress organization or site network ID linked to the feed, if applicable.
ResolvedFeedURL String Specifies the fully resolved URL of the WordPress feed after processing any redirects or canonical references.
SubscribersCount Int Indicates how many WordPress users are currently subscribed to the feed.
SubscriptionID String Specifies the WordPress subscription ID associated with the user's connection to the feed.
UnseenCount Int Indicates how many feed entries have not yet been viewed by the user in WordPress.
URL String Specifies the web address of the WordPress site or source from which the feed content originates.
IsMarkedForRefresh Bool Indicates whether the feed is marked for manual or immediate refresh in WordPress.
MetaAggregate String Aggregated metadata for the WordPress feed, including additional details returned by the API.

CData Python Connector for WordPress

Follows

Returns a list of WordPress blogs or sites followed by the current user, including their Ids, names, and URLs.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector. For example,

SELECT * FROM Follows;

Columns

Name Type References Description
ID [KEY] String The unique identifier of the blog or user being followed in WordPress.
Login String Specifies the WordPress username of the account that the current user is following.
Name String The display name of the blog or user being followed.
NiceName String The URL-friendly version of the blog or user's name used in WordPress profile URLs.
ItemURL String The URL of the WordPress blog or user profile being followed.
AvatarURL String The URL of the avatar image for the blog or user being followed.
ProfileURL String The URL linking to the public profile of the blog or user being followed.
IsIpAddressAvailable Boolean Indicates whether the IP address of the followed user or site is available in WordPress.
SiteID Int The unique identifier of the WordPress site being followed.
IsSiteVisible Boolean Indicates whether the site being followed is publicly visible.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
NoOfFollowers Int The total number of followers subscribed to the WordPress site or user.

CData Python Connector for WordPress

Insights

Returns analytical data and performance insights for the WordPress site, including views, visitors, likes, and comments.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM Insights

Columns

Name Type References Description
ID [KEY] Int The unique identifier of the WordPress site associated with the insights data.
Name String The name or title of the WordPress site associated with the insights.
HasCustom Bool Indicates whether the site has custom insights or analytics settings configured.
TodayApiInsightsCommentsNumber Int The number of comments recorded on the site today according to API insights.
TodayApiInsightsCommentsPercent String The percentage change in comment activity today compared to the previous period.
TodayApiInsightsConnectionsNumber Int The total number of new site connections recorded today.
TodayApiInsightsConnectionsPercent String The percentage change in new site connections today compared to the previous period.
TodayApiInsightsLikesNumber Int The total number of likes recorded on the site today.
TodayApiInsightsLikesPercent String The percentage change in likes today compared to the previous period.
TodayApiInsightsPostsNumber Int The total number of posts published on the site today.
TodayApiInsightsPostsPercent String The percentage change in post publishing activity today compared to the previous period.
TodayRestApiCallsNumber Int The total number of REST API calls made to the WordPress site today.
TodayRestApiCallsPercent String The percentage change in REST API call activity today compared to the previous period.
TodayRestApiErrorsNumber Int The total number of REST API errors that occurred on the site today.
TodayRestApiErrorsPercent String The percentage change in REST API errors today compared to the previous period.
TodayRestApiReadsNumber Int The total number of REST API read (GET) requests made to the site today.
TodayRestApiReadsPercent String The percentage change in REST API read (GET) requests today compared to the previous period.
TodayRestApiWritesNumber Int The total number of REST API write (POST, PUT, DELETE) requests made to the site today.
TodayRestApiWritesPercent String The percentage change in REST API write requests today compared to the previous period.

CData Python Connector for WordPress

MatchingFeeds

Get the MatchingFeeds for a blog.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

Note: To query the MatchingFeeds, you must specify the either of the following columns in the WHERE clause: QueryText, ItemUrl.

  • FeedId supports the '=' comparison.
  • QueryText supports the '=' comparison.
  • ItemUrl supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example:

SELECT * FROM MatchingFeeds WHERE QueryText='test';
SELECT * FROM MatchingFeeds WHERE ItemUrl='http://www.thebereantest.com'
SELECT * FROM MatchingFeeds WHERE QueryText='test' 
SELECT * FROM MatchingFeeds WHERE ItemUrl='http://www.thebereantest.com'

Columns

Name Type References Description
FeedID [KEY] String The unique identifier of the feed associated with a WordPress site or blog.
SubscribeURL String The URL used to subscribe to the feed or follow updates from the site.
MetaAggregate String Returns aggregated metadata about the feed, such as title, description, and site details.
RailCarAggregate String Provides structured feed data returned from the Reader service for the specified site.
ItemURL String Specifies the domain or site URL used to retrieve the corresponding feed ID. This value must be URL-encoded.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
QueryText String Specifies the search text or keywords used to query and match relevant feeds.

CData Python Connector for WordPress

OpenEmails

Query the OpenEmails in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example,

SELECT * FROM OpenEmails where PostId='157';

Columns

Name Type References Description
PostID [KEY] Int The unique identifier of the WordPress post associated with the email campaign.
ClientsAggregate String Returns aggregated information about the email clients used to open the campaign messages.
ClientsDataAggregate String Contains detailed data for each email client, including open counts and usage distribution.
ClientsFieldsAggregate String Provides field-level information describing the structure of the client data returned.
CountriesAggregate String Returns aggregated statistics grouped by country, showing where emails were opened.
CountriesDataAggregate String Contains detailed country-level data for email opens, such as open counts and percentages.
CountriesFieldsAggregate String Provides field definitions and labels for the country-based email analytics data.
CountriesInfoAggregate String Lists all countries included in the email analytics report.
DevicesAggregate String Returns aggregated data showing which devices were used to open the emails, such as mobile, desktop, or tablet.
DevicesDataAggregate String Contains detailed device-level data for email opens and engagement activity.
DevicesFieldsAggregate String Provides field definitions and labels for the device-related data returned.
OpensRate Int The average rate at which emails were opened during the reporting period.
TotalOpens Int The total number of email opens recorded during the reporting period.
TotalSends Int The total number of emails sent during the reporting period.
UniqueOpens Int The number of distinct recipients who opened the email at least once.
OpensRateOpensRate Int Represents the calculated open rate for the campaign or reporting period.
OpensRateTotalOpens Int Represents the total number of email opens used to calculate the open rate.
OpensRateTotalSends Int Represents the total number of sent emails used to calculate the open rate.
OpensRateUniqueOpens Int Represents the number of unique opens used to calculate the open rate.
TimelineDataAggregate String Contains time-based email performance data, including open and send counts across defined periods.
TimelineFieldsAggregate String Provides metadata and field descriptions for the timeline-based data returned.
TimelineUnit String Specifies the time unit used in the timeline, such as hour, day, week, month, or year.
NumberofPeriods Int Specifies how many time periods to include in the timeline report.
Period String Determines the time range used for the report, such as past hours, days, weeks, months, or years.
Date Date Specifies the most recent date to include in the email analytics report.
StatsFields String A comma-separated list of specific statistical fields to return in the response, such as TotalOpens or UniqueOpens.

CData Python Connector for WordPress

PostReblogStatus

Get reblog status for a post.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM PostReblogStatus where PostId=21

Columns

Name Type References Description
PostId [KEY] Int

Posts.Id

The unique identifier of the WordPress post for which the reblog status is being checked.
CanReblog Bool Indicates whether the post is eligible to be reblogged by any WordPress user.
CanUserReblog Bool Indicates whether the authenticated user has permission to reblog the specified post.
IsReblogged Bool Shows whether the authenticated user has already reblogged this post.
MetaAggregate String Contains additional metadata returned from the WordPress API related to the PostReblogStatus endpoint.

CData Python Connector for WordPress

PostsTags

List the UserLikedPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '<', '>' comparisons.
  • Modified supports the '<', '>' comparisons.
  • Status supports the '=' comparison.
  • Type supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM PostsTags
SELECT * FROM PostsTags where Status='publish'
SELECT * FROM PostsTags where Type='post'

Columns

Name Type References Description
ID [KEY] Integer

Posts.Id

The unique identifier of the post.
SiteID Integer The unique identifier of the WordPress site that the post belongs to.
AuthorID Int The unique identifier of the author who created the post.
DateRangeBefore String Filters results to posts created before the specified date.
DateRangeAfter String Filters results to posts created after the specified date.
AuthorLogin String The username of the post's author.
IsAuthorEmailAvailable Boolean Indicates whether the author's email address is available.
AuthorName String The display name of the post's author.
AuthorAvatarURL String The URL of the author's avatar image.
AuthorFirstName String The first name of the post's author.
AuthorLastName String The last name of the post's author.
AuthorNiceName String The URL-friendly version of the author's username.
AuthorProfileURL String The URL of the author's public WordPress profile page.
AuthorSiteID Int The ID of the site associated with the author.
AuthorURL String The personal website URL provided by the author, if available.
IsAuthorIpAddressAvailable Boolean Indicates whether the author's IP address is available.
IsAuthorSiteVisible Boolean Indicates whether the author's site is publicly visible.
Date Datetime The date and time when the post was created in the site's local timezone.
Modified Datetime The date and time when the post was last updated.
Title String The title of the post.
ItemURL String The full permalink URL for the post.
ShortURL String The WordPress shortlink (`wp.me`) version of the post URL.
Content String The full HTML content of the post.
Excerpt String A short excerpt or summary of the post content.
Slug String The URL-friendly slug used to identify the post.
Guid String The globally unique identifier (GUID) for the post, often representing its original permalink.
Status String A comma-separated list of post statuses to query, such as publish, private, draft, pending, future, or trash. Defaults to publish.
IsSticky Boolean Indicates whether the post is marked as sticky and displayed at the top of the blog.
Password String The plaintext password used to protect the post, or an empty string if the post is not password-protected.
HasParent Boolean Indicates whether the post has a parent post (for example, a child page).
Type String The post type, such as post, page, or another registered custom post type.
HasCommentsOpen Boolean Indicates whether comments are currently open for the post.
IsPingsOpen Boolean Indicates whether pingbacks and trackbacks are enabled for the post.
HasLikesEnabled Boolean Indicates whether the post allows likes.
HasSharingEnabled Boolean Indicates whether sharing buttons are enabled for the post.
CommentCount Int The total number of comments associated with the post.
FeaturedImage String The URL of the post's featured image, if one is set.
PostThumbnail String The attachment object representing the featured image, if available.
Format String The display format of the post, such as standard, aside, gallery, image, quote, status, video, or audio.
HasGeo Boolean Indicates whether the post includes geolocation data.
MenuOrder Int The order in which pages or hierarchical posts appear in navigation menus.
PublicizeURLsAggregates String A list of URLs where the post was automatically shared via Publicize connections (for example, Facebook or Twitter).
CategoriesAggregates String A collection of categories (keyed by category name) applied to the post.
TagsAggregates String A collection of tags (keyed by tag name) applied to the post.
Attachments String A collection of attachments associated with the post (keyed by attachment ID). Returns up to 20 of the most recent attachments.
MetadataAggregates String A list of metadata key-value pairs associated with the post.
MetaAggregates String Additional metadata key-value pairs describing the post's extended properties.
HasCapabilitiesDeletePost Boolean Indicates whether the authenticated user has permission to delete the post.
HasCapabilitiesEditPost Boolean Indicates whether the authenticated user has permission to edit the post.
HasCapabilitiesPublishPost Boolean Indicates whether the authenticated user has permission to publish the post.
HasCurrentUserCanDeletePost Boolean Indicates whether the current user can delete the post.
HasCurrentUserCanEditPost Boolean Indicates whether the current user can edit the post.
HasCurrentUserCanPublishPost Boolean Indicates whether the current user can publish the post.
PseudoID String A unique pseudo identifier for the feed item, used when the post originates from a feed or external source.
IsExternal Boolean Indicates whether the post originates from an external source.
SiteName String The name of the site where the post was published.
SiteURL String The URL of the site where the post was published.
IsSitePrivate Boolean Indicates whether the site is private or restricted from public access.
FeaturedMedia String The media file featured or attached to the post.
Tags String The list of tags applied to the post.

CData Python Connector for WordPress

PostTypes

List the PostTypes for the WordPressOnline website.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector. For example,

SELECT * FROM PostTypes;

Columns

Name Type References Description
Name [KEY] String The slug identifier for the post type, used internally and in REST API endpoints.
Label String The human-readable name for the post type as displayed in the WordPress admin menu.
IsApiQueryable Bool Indicates whether this post type can be queried and accessed through the REST API.
Description String A short description of what the post type represents or is used for.
IsHierarchical Bool Indicates whether the post type supports parent and child relationships, like pages.
CapabilitiesCreatePosts String Defines the capability required to create new posts of this type.
CapabilitiesDeleteOthersPosts String Defines the capability required to delete posts created by other users.
CapabilitiesDeletePost String Defines the capability required to delete a single post.
CapabilitiesDeletePosts String Defines the capability required to delete multiple posts.
CapabilitiesDeletePrivatePosts String Defines the capability required to delete private posts.
CapabilitiesDeletePublishedPosts String Defines the capability required to delete published posts.
CapabilitiesEditOthersPosts String Defines the capability required to edit posts created by other users.
CapabilitiesEditPost String Defines the capability required to edit a single post.
CapabilitiesEditPosts String Defines the capability required to edit multiple posts.
CapabilitiesEditPrivatePosts String Defines the capability required to edit private posts.
CapabilitiesEditPublishedPosts String Defines the capability required to edit published posts.
CapabilitiesPublishPosts String Defines the capability required to publish posts.
CapabilitiesRead String Defines the general capability required to read posts of this type.
CapabilitiesReadPost String Defines the capability required to read a single post.
CapabilitiesReadPrivatePosts String Defines the capability required to read private posts.
LabelsAddNew String The text label for adding a new post of this type.
LabelsAddNewItem String The text label for adding a new item of this post type.
LabelsAllItems String The label used to display all items of this post type.
LabelsArchives String The label used to describe the post type archive page.
LabelsAttributes String The label for displaying post attributes, such as template or order.
LabelsEditItem String The text label for editing a single item of this post type.
LabelsFeaturedImage String The label used to describe the featured image section.
LabelsFilterByDate String The label for the date filter dropdown in the admin list view.
LabelsFilterItemsList String The label for filtering items in the admin list table.
LabelsInsertIntoItem String The label for the button that inserts media into this post type.
LabelsItemLink String The label describing a permalink to a single item.
LabelsItemLinkDescription String The label describing the permalink text or tooltip.
LabelsItemPublished String The label displayed when a post of this type is published.
LabelsItemPublishedPrivately String The label displayed when a post of this type is published privately.
LabelsItemRevertedToDraft String The label displayed when a post of this type is reverted to draft.
LabelsItemScheduled String The label displayed when a post of this type is scheduled for publication.
LabelsItemTrashed String The label displayed when a post of this type is moved to the trash.
LabelsItemUpdated String The label displayed when a post of this type is updated.
LabelsItemsList String The label for listing items of this post type in the admin area.
LabelsItemsListNavigation String The label for navigating the list of items in the admin view.
LabelsMenuName String The name used for this post type in the admin menu.
LabelsName String The plural name of the post type.
LabelsNameAdminBar String The name used for this post type in the WordPress admin bar.
LabelsNewItem String The label used for creating a new item of this post type.
LabelsNotFound String The message displayed when no posts of this type are found.
LabelsNotFoundInTrash String The message displayed when no posts of this type are found in the trash.
LabelsParentItemColon String The label used to indicate the parent item field.
LabelsRemoveFeaturedImage String The label for the option to remove a featured image.
LabelsSearchItems String The label for the search box when searching posts of this type.
LabelsSetFeaturedImage String The label for the option to set a featured image.
LabelsSingularName String The singular name of the post type.
LabelsTemplateName String The label for the template name field for this post type.
LabelsUploadedToThisItem String The label for media uploaded to this post type.
LabelsUseFeaturedImage String The label for using a featured image.
LabelsViewItem String The label for viewing a single item of this post type.
LabelsViewItems String The label for viewing multiple items of this post type.
HasMapMetaCap Bool Indicates whether meta capability mapping is enabled for this post type.
IsPublic Bool Indicates whether the post type is publicly visible.
IsPubliclyQueryable Bool Indicates whether queries can be performed on the front end for this post type.
HasShowUi Bool Indicates whether this post type should have a visible interface in the admin dashboard.
HasSupportsAuthorDropDownEnabled Bool Indicates whether the Author selection dropdown is enabled for this post type.
HasSupportsAutosave Bool Indicates whether autosave is enabled for this post type.
HasSupportsComments Bool Indicates whether comments are supported for this post type.
HasSupportsContent Bool Indicates whether the main content editor is supported for this post type.
HasSupportsCustomFields Bool Indicates whether custom fields are supported for this post type.
HasSupportsEditor Bool Indicates whether the block or classic editor is supported for this post type.
HasSupportsExcerpt Bool Indicates whether excerpts are supported for this post type.
HasSupportsGeoLocation Bool Indicates whether geolocation fields are supported for this post type.
HasSupportsJetpackPostLikes Bool Indicates whether Jetpack post likes are supported for this post type.
HasSupportsNewspackBlocks Bool Indicates whether Newspack blocks are supported for this post type.
HasSupportsPageAttributes Bool Indicates whether page attributes, such as order or parent, are supported.
HasSupportsPostFormats Bool Indicates whether post formats are supported, allowing authors to classify content by format.
HasSupportsPublicize Bool Indicates whether Jetpack Publicize integration is supported.
HasSupportsRevisions Bool Indicates whether revisions are supported for this post type.
HasSupportsSlug Bool Indicates whether a URL slug is supported for this post type.
HasSupportsTags Bool Indicates whether tags are supported for this post type.
HasSupportsThumbnail Bool Indicates whether featured images (thumbnails) are supported for this post type.
HasSupportsTitle Bool Indicates whether titles are supported for this post type.
HasSupportsTrackbacks Bool Indicates whether trackbacks are supported for this post type.
HasSupportsWpcomMarkdown Bool Indicates whether Markdown formatting is supported for this post type on WordPress.com.

CData Python Connector for WordPress

ReaderMenuDefault

Default menu items from the WordPress Reader Menu.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM ReaderMenuDefault

Columns

Name Type References Description
Title String The title of the default Reader menu item displayed in the WordPress Reader.
ItemURL String The URL that the default Reader menu item links to.

CData Python Connector for WordPress

ReaderMenuRecommended

Recommended topics from the WordPress Reader Menu.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM ReaderMenuRecommended

Columns

Name Type References Description
ID [KEY] String The unique identifier of the recommended topic displayed in the WordPress Reader.
Title String The title of the recommended topic shown in the Reader menu.
ItemURL String The URL that links to the recommended topic in the WordPress Reader.
Slug String The URL-friendly slug used to identify the recommended topic.
DisplayName String The display name of the topic as it appears in the Reader interface.
Type String The content type of the recommended item, such as tag or category.

CData Python Connector for WordPress

ReaderMenuSubscribed

Subscribed topics from the WordPress Reader Menu.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM ReaderMenuSubscribed

Columns

Name Type References Description
ID [KEY] String The unique identifier of the topic that the user is subscribed to in the WordPress Reader.
Title String The title of the subscribed topic displayed in the Reader menu.
ItemURL String The URL that links to the subscribed topic within the WordPress Reader.
Slug String The URL-friendly slug used to identify the subscribed topic.
DisplayName String The display name of the subscribed topic as it appears in the Reader interface.
Type String The content type of the subscribed item, such as tag or category.

CData Python Connector for WordPress

RecentComments

Get a list of recent comments on a post.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostId supports the '=' comparison.
  • Type supports the '=' comparison.
  • Status supports the '=' comparison.
  • Date supports the '<=', '>=' comparisons.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM RecentComments where PostID=21
SELECT * FROM RecentComments where Status='approved'

Columns

Name Type References Description
ID [KEY] Int

Comments.Id

The unique identifier of the comment.
Type String The type of comment, such as standard comment, trackback, or pingback.
Status String The current moderation status of the comment, such as approved, pending, or spam.
Date Datetime The date and time when the comment was posted, in the site's timezone.
Content String The rendered HTML content of the comment as displayed on the site.
RawContent String The raw comment text including any block-level or markup data before rendering.
PostID Int The unique identifier of the post or page that the comment belongs to.
PostLink String The API endpoint or URL used to retrieve details about the related post.
PostTitle String The title of the post that the comment was made on.
PostType String The content type of the associated post, such as post or page.
ParentCommentAggregate String A JSON object contains details of the parent comment if the comment is a reply. It returns false if the comment is a top-level comment.
LikeCount Int The total number of likes the comment has received.
IReplied Bool Indicates whether the authenticated user has replied to this comment.
ILike Bool Indicates whether the authenticated user has liked this comment.
CanModerate Bool Indicates whether the authenticated user has permission to moderate this comment.
AuthorAvatarURL String The URL to the comment author's avatar image.
AuthorEmail String The email address of the comment author.
AuthorFirstName String The first name of the comment author.
AuthorID Int The unique identifier of the comment author.
AuthorIPAddress String The IP address from which the comment was submitted.
AuthorLastName String The last name of the comment author.
AuthorLogin String The username of the comment author.
AuthorName String The public display name of the comment author.
AuthorNiceName String A URL-friendly version of the author's username.
AuthorProfileURL String The Gravatar or profile URL associated with the author.
AuthorAiteID Int The ID of the WordPress site where the author posted the comment.
HasAuthorSiteVisible Bool Indicates whether the author's site is publicly visible.
AuthorURL String The URL of the author's personal or linked website.
ShortURL String The WordPress shortlink (wp.me) that provides a shortened URL to the comment.
ItemURL String The full permalink URL to the comment on the WordPress site.

CData Python Connector for WordPress

SharingButtons

list and update all the sharing buttons for a site.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SharingButtons

Columns

Name Type References Description
ID [KEY] String The unique identifier assigned to the sharing button.
HasCustomButton Bool Indicates whether the button is a custom sharing option created by the user rather than a default service-provided button.
HasSharingButtonEnabled Bool Indicates whether the sharing button is currently enabled and visible on the site.
Genericon String The Genericon icon name associated with the sharing button's visual style.
Name String The display name of the sharing service or button (for example, Twitter or Facebook).
Shortname String The short identifier or slug used internally to represent the sharing service (for example, twitter or facebook).
Visibility String Specifies where the sharing button appears on the site interface, such as visible or hidden.

CData Python Connector for WordPress

SiteCountryViews

Query the SiteCountryViews in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteCountryViews WHERE Date='2025-05-08'

Columns

Name Type References Description
CountryInfoAggregate String An array containing detailed information about each country that generated views for the site, including country codes and view counts.
DaysAggregate String An array mapping each day to the number of country-specific views recorded on that date.
Date Date The most recent date included in the site's country view statistics.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
NumofPeriods Int Specifies how many time periods to include in the results, such as days, weeks, or months.

CData Python Connector for WordPress

SiteEmailSummary

Query the SiteEmailsSummary in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • SiteID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteEmailSummary WHERE SiteID='241575003'

Columns

Name Type References Description
SiteID Int The unique identifier of the WordPress site associated with the email campaign.
PostId [KEY] Int The unique identifier of the post or content item linked to the email.
Clicks Int The total number of clicks recorded from the email over time.
ClicksRate Int The percentage rate at which recipients clicked links within the email.
Date Datetime The date and time when the email performance metrics were recorded.
Href String The target URL or hyperlink contained in the email message.
Opens Int The total number of times the email was opened by recipients.
OpensRate Int The percentage rate of email opens over the total sends.
Title String The subject line or title of the email message.
TotalSends Int The total number of email messages sent during the campaign.
Type String The category of content or campaign type associated with the email, such as post notification or newsletter.
UniqueClicks Int The number of distinct recipients who clicked at least one link in the email.
UniqueOpens Int The number of distinct recipients who opened the email at least once.

CData Python Connector for WordPress

SiteFileDownloads

Query the SiteFileDownloads in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteFileDownloads WHERE Date='2025-05-08'

Columns

Name Type References Description
Date Date The most recent date for which file download statistics are available.
DaysAggregate String An array that maps each day to the number of file downloads recorded on that date.
Period String Specifies the reporting interval for the statistics, such as day, week, month, or year.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
NumofPeriods Int Determines how many reporting periods to include in the returned results.

CData Python Connector for WordPress

SiteFollowers

Query the SiteFollowers in Wordpress.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteFollowers

Columns

Name Type References Description
ID [KEY] Int The unique identifier of the follower associated with the site.
Label String A display label or name representing the follower or subscription source.
Login String The WordPress.com username of the follower, if available.
ItemURL String The URL associated with the follower's profile or linked account.
IsOwnerSubscribed Boolean Indicates whether the site owner is also subscribed to their own site.
Page Int The current page number in the paginated results set.
Pages Int The total number of pages available for the follower list.
Total Int The total number of followers for the site.
TotalEmail Int The total number of followers subscribed via email notifications only.
TotalWpcom Int The total number of followers subscribed using WordPress.com accounts.
Avatar String The URL of the follower's avatar image.
DateSubscribed Datetime The date and time when the follower subscribed to the site.
FollowDataAggregate String A JSON object containing detailed metadata about the follower, such as subscription type, source, or delivery method.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Type String Specifies the subscription method: 'wpcom' for WordPress.com followers or 'email' for email-only subscribers. The default is 'wpcom'.

CData Python Connector for WordPress

SiteOutboundClicks

Query the SiteOutboundClicks in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.
  • Summarize supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteOutboundClicks WHERE Date='2025-05-08'

Columns

Name Type References Description
Date Date The most recent date for which outbound click statistics are available.
DaysAggregate String An array listing each day and the number of outbound clicks recorded on that day. Omitted when summarize is set to true.
SummaryAggregate String A summarized dataset combining click statistics across all days in the selected period. Returned only when summarize is true.
Period String Specifies the reporting interval for the statistics, such as day, week, month, or year.

The allowed values are day, month, year.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
HasSummarize Boolean Indicates whether results are returned in summarized form instead of detailed daily records.
NumofPeriods Int Determines how many reporting periods to include in the results.

CData Python Connector for WordPress

SitePosts

List the UserSitesPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some filters. Other filters are processed client-side within the connector.

For example, the following query is processed server side:

SELECT * FROM SitePosts WHERE ID=1 

Columns

Name Type References Description
ID [KEY] Int

Posts.Id

The unique identifier of the post.
SiteID Int

Sites.Id

The unique identifier of the site where the post is published.
AuthorID Int The unique identifier of the post author.
IsAuthorEmailAvailable Boolean Indicates whether the author's email address is available.
AuthorLogin String The author's WordPress.com login name.
AuthorName String The full display name of the post author.
AuthorAvatarURL String The URL of the author's avatar image.
AuthorFirstName String The first name of the post author.
AuthorLastName String The last name of the post author.
AuthorNiceName String A URL-friendly version of the author's username.
AuthorProfileURL String The URL of the author's WordPress.com profile page.
AuthorSiteID Int The ID of the author's WordPress.com site.
AuthorURL String The URL of the author's external or personal website.
HasAuthoravatar Boolean Indicates whether the author has an avatar image.
AuthorWpcomId Int The unique WordPress.com user ID of the author.
AuthorWpcomLogin String The author's WordPress.com username.
Date Datetime The date and time when the post was originally created.
Modified Datetime The date and time when the post was last updated.
Title String The title of the post.
ItemURL String The full permalink URL to the post.
ShortURL String The WordPress shortlink (wp.me) version of the post URL.
Content String The complete content body of the post.
Excerpt String A short excerpt or summary of the post content.
Slug String The slug used to identify the post in URLs.
Guid String The globally unique identifier for the post.
Status String The current status of the post. Possible values include publish, draft, pending, private, future, trash, and auto-draft.
IsSticky Boolean Indicates whether the post is pinned (sticky) on the site's front page.
Password String The password protecting the post, if applicable; otherwise an empty string.
ParentID String The ID of the parent post, if this post is part of a hierarchy.
ParentLink String The permalink URL of the parent post, if applicable.
ParentTitle String The title of the parent post, if applicable.
ParentType String The type of the parent post, if applicable.
Type String The post type. Common types include post, page, and revision. Custom post types must be whitelisted via the rest_api_allowed_post_types filter.
DiscussionCommentCount Int The total number of comments associated with the post.
DiscussionCommentStatus String Indicates the comment status for the post (open or closed).
HasDiscussionCommentsOpen Boolean Specifies whether new comments are currently allowed.
DiscussionPingStatus String Indicates the pingback or trackback status for the post.
HasDiscussionPingsOpen Boolean Specifies whether pingbacks or trackbacks are allowed.
HasLikesEnabled Boolean Indicates whether likes are enabled for the post.
HasSharingEnabled Boolean Indicates whether sharing buttons are displayed on the post.
LikeCount Int The total number of likes the post has received.
ILike Boolean Indicates whether the current user has liked this post.
IsFollowing Boolean Indicates whether the current user follows the site.
IsReblogged Boolean Indicates whether the current user has reblogged this post.
GlobalID String A globally unique WordPress.com-wide identifier for the post.
FeaturedImage String The URL of the post's featured image, if one is set.
PostThumbnail String The attachment object associated with the post's featured image.
Format String The display format of the post, such as standard, aside, chat, gallery, link, image, quote, status, video, or audio.
HasGeo Boolean Indicates whether geolocation data is attached to the post.
MenuOrder Int Specifies the display order of pages relative to others.
PageTemplate String The page template assigned to the post, if applicable.
PublicizeURLsAggregates String A list of social media URLs where the post was published via WordPress.com Publicize.
CategoriesAggregates String A collection of categories applied to the post, keyed by category name.
TermsCategoryAggregates String A mapping of taxonomy names to term data for assigned categories.
TagsAggregates String A collection of tags applied to the post, keyed by tag name.
Attachments String A list of media attachments related to the post, keyed by attachment ID. Returns up to 20 attachments.
AttachmentCount Int The total number of attachments associated with the post.
MetadataAggregate String A collection of post metadata as key-value pairs.
HasCapabilitiesDeletePost Boolean Indicates whether the current user has permission to delete the post.
HasCapabilitiesEditPost Boolean Indicates whether the current user has permission to edit the post.
HasCapabilitiesPublishPost Boolean Indicates whether the current user has permission to publish the post.
PseudoID String A unique pseudo identifier for the post within the feed context.
IsExternal Boolean Indicates whether the post originates from an external source.
SiteName String The display name of the site the post belongs to.
SiteURL String The base URL of the site the post belongs to.
IsSitePrivate Boolean Indicates whether the site is private or public.
FeaturedMedia String The media object featured in the post, if any.
FeedID Integer The unique identifier of the feed associated with the post.
FeedURL String The URL of the feed that contains the post.
OtherURLs String Additional URLs related to the post or feed, if any.
SiteIcon String The favicon or site icon representing the WordPress site.
IsSubscribedComments Boolean Indicates whether the current user is subscribed to comment updates on this post.
CanSubscribeComments Boolean Indicates whether the current user has permission to subscribe to comments on this post.
HasSubscribedCommentsNotifications Boolean Indicates whether the user receives email notifications for subscribed comments.
IsPublishDateChanged Boolean Indicates whether the post's publish date has been modified since its original creation.
HasUseExcerpt Boolean Indicates whether the post should display only its excerpt instead of the full content.

CData Python Connector for WordPress

SitePostViews

Query the SitePostViews in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostId supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SitePostViews WHERE PostID=21

Columns

Name Type References Description
PostID [KEY] Int The unique identifier of the post for which view statistics are returned.
Date Date The most recent date for which post view statistics are available.
PostAuthor String The unique identifier of the post author.
PostName String The URL-friendly slug used to identify the post in its permalink.
PostParent Int The ID of the parent post, if the post is part of a hierarchy (for example, a page with subpages).
PostPassword String The password protecting the post, if it is password-protected; otherwise empty.
PostStatus String The publication status of the post, such as publish, draft, pending, private, or trash.
PostTitle String The title of the post.
Views Int The total number of times the post has been viewed.
PostType String The post type, such as post, page, or a registered custom type.
HighestDayAverage Int The highest daily average number of views recorded for this post.
HighestMonth Int The month during which the post achieved the highest average views.
HighestWeekAverage Int The highest weekly average number of views recorded for this post.
YearsAggregate String A dataset showing the total views for the post, grouped by year and month.
AveragesAggregate String A dataset showing per-day average views, grouped by year and month.
WeeksAggregate String Daily view counts for recent weeks, useful for short-term performance trends.
FieldsAggregate String Defines the schema for each field in the aggregated view data.
DataAggregate String A flattened array of daily view data, containing counts and timestamps for each day.
PostCommentCount String The total number of comments associated with the post.
PostCommentStatus String Specifies whether comments are allowed (open) or closed for the post.
PostFilter String The content filter applied when retrieving post data (for example, raw or formatted).
PostGuid String The globally unique identifier (GUID) for the post, typically a permanent link reference.
PostMenuOrder Int The menu order value used for hierarchical post types to control display order.
PostPermalink String The full public permalink URL for the post.
PostPingStatus String Indicates whether pingbacks and trackbacks are enabled for the post.
PostPinged String A list of services that have already been pinged for the post.
PostContent String The full HTML or text content body of the post.
PostContentFiltered String An internal field used to store filtered versions of the post content.
PostDate Datetime The local date and time when the post was first published.
PostDateGmt Datetime The UTC date and time when the post was first published.
PostExcerpt String An optional short summary or excerpt of the post content.
PostMimeType String The MIME type of the post, if the post represents a media file attachment.
PostModified Datetime The local date and time when the post was last modified.
PostModifiedGmt Datetime The UTC date and time when the post was last modified.
PostToPing String A legacy field listing URLs to notify (ping) when the post is published.

CData Python Connector for WordPress

SitePublicizeConnection

Query a list of publicize connections that are associated with the specified site.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Id supports the '=' comparison.
  • Service supports the '=' comparison.
  • KeyringConnectionID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SitePublicizeConnection where ID=21
SELECT * FROM SitePublicizeConnection where Service='Facebook'

Columns

Name Type References Description
ID [KEY] Int The unique identifier of the Publicize connection record.
SiteID Int The unique identifier of the WordPress site associated with the Publicize connection.
UserID Int The WordPress.com user ID of the person who authorized the Publicize connection.
Service String The name of the connected external service, such as Facebook, Twitter, or LinkedIn.
Label String A user-defined label or nickname assigned to the connection.
ExternalID String The unique identifier of the connected account on the external service.
HasShared Bool Indicates whether the Publicize connection is shared across multiple users on the site.
Status String The current connection status, such as active, broken, or expired.
KeyringConnectionID Int The internal WordPress.com keyring record ID that manages the OAuth credentials for this connection.
KeyringConnectionUserID Int The WordPress.com user ID associated with the keyring connection.
ExternalDisplay String The display name shown for the connected account on the external service.
IsExpires Bool Indicates whether the access token used for this connection has an expiration time.
ExternalFollowerCount String The number of followers or connections on the linked social media account, if provided by the external service.
ExternalName String The full display name or username of the connected account owner on the external platform.
ExternalProfilePicture String The URL to the profile image of the connected account on the external service.
ExternalprofileURL String The URL to the external profile page for the connected account.
Issued Datetime The date and time when the connection was first created or authorized.
RefreshURL String The endpoint URL used to manually refresh or reauthorize the Publicize connection when needed.

CData Python Connector for WordPress

SitePublicizeFollowerComment

List the SitePublicizeFollowerComment for the WordPressOnline website.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SitePublicizeFollowerComment

Columns

Name Type References Description
Page Int The current page number in the paginated set of Publicize follower comment results.
Pages Int The total number of result pages available for the current query.
Total Int The total count of follower comments returned across all pages.
Posts String An array containing post objects associated with the follower comments, including metadata such as post ID, title, and comment details.

CData Python Connector for WordPress

SitePublicizeFollowerCounts

List the SitePublicizeFollowerCounts for the WordPressOnline website.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SitePublicizeFollowerCounts

Columns

Name Type References Description
Followers Int The total number of followers associated with the connected Publicize account.
Service String The name of the connected Publicize service, such as Facebook, Twitter, or LinkedIn.

CData Python Connector for WordPress

Sites

Query information about a site.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM Sites

Columns

Name Type References Description
ID [KEY] Int The unique numeric identifier for the site.
Name String The site's public title as shown in WordPress.
Description String The site's tagline or short description.
ItemURL String The full public URL of the site.
CanUserManage Bool Indicates whether the current user has management permissions for this site.
Capabilities String A list of capabilities granted to the current user on this site.
IsJetpackSite Bool True if the site is connected through Jetpack.
IsJetpackConnection Bool True if the site is connected to WordPress.com via a Jetpack connection.
IsMultisite Bool True if the site belongs to a Multisite network (always true for WordPress.com sites).
SiteOwner Int The user ID of the site owner.
PostCount Int The total number of published posts on the site.
SubscribersCount Int The number of followers/subscribers for the site.
Language String The site's primary language code (for example, en, fr).
IconAggregate String A collection of icon variants, such as sizes and formats, for the site.
LogoId Int The media ID of the site's logo.
LogoSizesAggregate String Available sizes for the site's logo.
LogoUrl String Direct URL to the site's logo image.
IsVisible Bool Indicates Indicates whether this site appears in the user's site list.
IsPrivate Bool Indicates Indicates whether the site is private (requires authentication).
IsComingSoon Bool True if the site is marked as Coming Soon and not yet public.
IsSingleUserSite Bool True if the site has a single user (WordPress.com and Jetpack 3.4+ only).
IsVIP Bool True if the site runs on the WordPress VIP platform.
IsFollowing Bool True if the current user follows this site in Reader.
OrganizationId Int Identifier for the associated P2 organization.
OptionsAdminUrl String Admin settings URL, visible only to users with editing rights.
OptionsAdvancedSEOFrontPageDescription String Search Engine Optimization (SEO) description used on the front page (editors only).
OptionsAdvancedSEOTitleFormatsAggregate String SEO title format rules for the website (editors only).
OptionsAKVPBundleEnabled String Indicates whether the AKVP bundle is enabled (editors only).
OptionsAllowedFileTypesAggregate String List of allowed upload file types (editors only).
IsOptionsAnchorPodcast Bool Indicates whether Anchor podcast integration is enabled (editors only).
IsOptionsBackgroundColor Bool Indicates whether a custom background color is set (editors only).
OptionsBlogPublic Int Public visibility setting: 1 public, 0 discourage search, -1 private (editors only).
IsOptionsBloggingPromptsSettingsPotentialBloggingSite Bool Marks the site as a candidate for blogging prompts (editors only).
IsOptionsBloggingPromptsSettingsPromptsCardOptedIn Bool Indicates whether prompts cards are enabled (editors only).
IsOptionsBloggingPromptsSettingsPromptsRemindersOptedIn Bool Indicates whether prompts reminders are enabled (editors only).
OptionsBloggingPromptsSettingsRemindersDaysAggregate String Days configured for prompts reminders (editors only).
OptionsBloggingPromptsSettingsRemindersTime String Time of day for prompts reminders (editors only).
CanOptionsBlaze Bool Indicates whether Blaze promotion features are available (editors only).
OptionsCreatedAt Datetime Timestamp when site options were created (editors only).
OptionsDefaultCategory Int Default category ID for new posts (editors only).
HasOptionsDefaultCommentStatus Bool Default comment status for new posts (editors only).
HasOptionsDefaultLikesEnabled Bool Default likes setting for new posts (editors only).
HasOptionsDefaultPingStatus Bool Default pingback/trackback status for new posts (editors only).
OptionsDefaultPostFormat String Default post format for new content (editors only).
HasOptionsDefaultSharingStatus Bool Default sharing buttons visibility on new posts (editors only).
OptionsDesignType String Current design type or theme style (editors only).
IsOptionsEditingToolkitActive Bool Indicates whether the Editing Toolkit is active (editors only).
HasOptionsFeaturedImagesEnabled Bool Indicates whether featured images are enabled site-wide (editors only).
OptionsFrameNonce String Security nonce used for framed embeds (editors only).
OptionsGmtOffset Int Configured GMT offset for the site (editors only).
HasOptionsHeaderImage Bool Indicates whether a custom header image is set (editors only).
HasOptionsHeadstart Bool Indicates whether Headstart onboarding is enabled (editors only).
HasOptionsHeadstartFresh Bool Indicates whether Headstart is in a fresh state (editors only).
OptionsImageDefaultLinkType String Default link behavior for inserted images (editors only).
OptionsImageLargeHeight Int Height for the Large image size, in pixels (editors only).
OptionsImageLargeWidth Int Width for the Large image size, in pixels (editors only).
OptionsImageMediumHeight Int Height for the Medium image size, in pixels (editors only).
OptionsImageMediumWidth Int Width for the Medium image size, in pixels (editors only).
OptionsImageThumbnailCrop Int Hard crop setting for thumbnails: 1 hard crop, 0 proportional (editors only).
OptionsImageThumbnailHeight Int Thumbnail height in pixels (editors only).
OptionsImageThumbnailWidth Int Thumbnail width in pixels (editors only).
OptionsImportEngine String Selected import engine or source (editors only).
IsOptionsAutomatedTransfer Bool Indicates whether an automated transfer/migration is active (editors only).
IsOptionsCloudEligible Bool Indicates whether the site is eligible for cloud features (editors only).
IsOptionsCommercial Bool Indicates whether the site is flagged as commercial (editors only).
IsOptionsCommercialReasonsAggregate Bool Indicates whether specific reasons mark the site as commercial (editors only).
IsOptionsIsDifmLiteInProgress Bool Indicates whether a Do-It-For-Me Lite setup is in progress (editors only).
IsOptionsDomainOnly Bool Indicates whether the site uses a domain-only configuration (editors only).
IsOptionsMappedDomain Bool Indicates whether a custom domain is mapped (editors only).
IsOptionsPendingPlan Bool Indicates whether a plan change is pending (editors only).
IsOptionsRedirect Bool Indicates whether the site redirects to another URL (editors only).
IsOptionsWPComAtomic Bool Indicates whether the site runs on WP.com Atomic hosting (editors only).
IsOptionsWPComStore Bool Indicates whether the WP.com Store is enabled (editors only).
IsOptionsWPForTeamsSite Bool Indicates whether the site is a WP for Teams site (editors only).
OptionsJetpackFrameNonce String Security nonce used for Jetpack frames (editors only).
OptionsLaunchpadChecklistTasksStatusesAggregate String Statuses for Launchpad checklist tasks (editors only).
OptionsLaunchpadScreen String Current Launchpad screen state (editors only).
OptionsLoginUrl String Direct login URL for the site (editors only).
OptionsMigrationSourceSiteDomain String Source site domain used during migration (editors only).
OptionsOnboardingSegment String Onboarding segment classification (editors only).
OptionsP2HubBlogID String Blog ID of the P2 hub site (editors only).
OptionsPermalinkStructure String Permalink structure pattern (editors only).
OptionsPodcastingArchive String Podcasting archive settings (editors only).
OptionsPostFormatsAggregate String Post formats supported/configured (editors only).
IsOptionsPublicizePermanentlyDisabled Bool Indicates whether Publicize is permanently disabled (editors only).
OptionsShowOnFront String Front page display setting: posts or a static page (editors only).
OptionsSiteCreationFlow String Site creation flow identifier (editors only).
OptionsSiteGoalsAggregate String Configured site goals and progress (editors only).
OptionsSiteIntent String Stated purpose or intent for the site (editors only).
OptionsSitePartnerBundle String Partner bundle applied to the site (editors only).
OptionsSiteSegment String Site segment classification used by onboarding or analytics (editors only).
OptionsSiteVerticalID String Vertical or industry identifier (editors only).
OptionsSoftwareVersion String Current software version markers (editors only).
OptionsThemeErrorsAggregate String Detected theme errors or diagnostics (editors only).
OptionsThemeSlug String Slug of the active theme (editors only).
OptionsTimezone String Timezone string (for example, America/New_York) (editors only).
OptionsUnmappedUrl String Original URL before domain mapping (editors only).
OptionsUpdatedAt Datetime Timestamp of the last options update (editors only).
IsOptionsUpgradedFiletypesEnabled Bool Indicates whether upgraded upload file types are enabled (editors only).
OptionsVerificationServicesCodes String Site verification codes for search/analytics services (editors only).
IsOptionsVideopressEnabled Bool Indicates whether VideoPress is enabled (editors only).
OptionsVideopressStorageUsed Int Amount of VideoPress storage used, in MB (editors only).
IsOptionsCreatedWithBlankCanvasDesign Bool True if the site was created with the Blank Canvas design.
IsOptionsWoocommerceActive Bool True if WooCommerce is active on the site.
IsOptionsWordAds Bool True if WordAds is enabled (editors only).
OptionsWPComAdminInterface String The WordPress.com admin interface mode in use.
IsOptionsWPComClassicEarlyRelease Bool True if the Classic interface early release is enabled.
OptionsWPComProductionBlogID Int The WordPress.com production blog ID.
IsOptionsWPComSiteSetup Bool True if the WP.com site setup is active.
OptionsWPComStagingBlogIDsAggregate String List of staging blog IDs associated with the site.
P2ThumbnailElementsAggregate String Data used to render a site thumbnail (P2020 themes only).
PlanBillingPeriod String The billing period for the current plan (for example, monthly, yearly).
IsPlanExpired Bool True if the site's paid plan has expired.
PlanFeaturesActiveAggregate String A list of plan features currently active on the site.
PlanFeaturesAvailableadCredit String Indicates whether advertising credit is available in the plan.
PlanFeaturesAvailableadvancedSEO String Indicates whether advanced SEO tools are available in the plan.
PlanFeaturesAvailableAIAssistant String Indicates whether the AI Assistant feature is available in the plan.
PlanFeaturesAvailableAISEOEnhancer String Indicates whether AI SEO Enhancer is available in the plan.
PlanFeaturesAvailableAntispam String Indicates whether anti-spam protection is available in the plan.
PlanFeaturesAvailableArchiveContent String Indicates whether content archiving is available in the plan.
PlanFeaturesAvailableArtificia50GBStorageLimit String Indicates whether a 50 GB storage cap applies to the plan.
PlanFeaturesAvailableAtomic String Indicates whether Atomic hosting features are available.
PlanFeaturesAvailableBackups String Indicates whether site backups are included in the plan.
PlanFeaturesAvailableBigSky String Indicates whether Big Sky features are available in the plan.
PlanFeaturesAvailableBlogDomainOnly String Indicates whether a blog-domain-only configuration is available.
PlanFeaturesAvailableCalendly String Indicates whether Calendly integration is available.
PlanFeaturesAvailableCDN String Indicates whether CDN acceleration is available.
PlanFeaturesAvailableCloudflareAnalytics String Indicates whether Cloudflare Analytics is available.
PlanFeaturesAvailableCloudflareCDN String Indicates whether Cloudflare CDN is available.
PlanFeaturesAvailableConcierge String Indicates whether Concierge support is included.
PlanFeaturesAvailableConciergeBusiness String Indicates whether Concierge Business support is included.
PlanFeaturesAvailableCopySite String Indicates whether Copy Site tooling is available.
PlanFeaturesAvailableCoreAudioAggregate String Indicates whether core/audio blocks are supported.
PlanFeaturesAvailableCoreCover String Indicates whether core/cover blocks are supported.
PlanFeaturesAvailableCoreVideo String Indicates whether core/video blocks are supported.
PlanFeaturesAvailableCreditVouchers String Indicates whether credit vouchers are available.
PlanFeaturesAvailableCustomDesign String Indicates whether advanced design customization is available.
PlanFeaturesAvailableCustomDomain String Indicates whether attaching a custom domain is supported.
PlanFeaturesAvailableDomainMapping String Indicates whether mapping an external domain is supported.
PlanFeaturesAvailableEcommerceManagedPlugins String Indicates whether managed eCommerce plugins are available.
PlanFeaturesAvailableEcommerceManagedPluginsMedium String Indicates whether mid-tier managed eCommerce plugins are available.
PlanFeaturesAvailableEcommerceManagedPluginsSmall String Indicates whether the plan includes the small package of managed eCommerce plugins for lightweight online stores.
PlanFeaturesAvailableEcommerceManagedPluginsTrial String Indicates whether a trial version of managed eCommerce plugins is available under the plan.
PlanFeaturesAvailableEditPlugins String Allows users to edit plugin source code and configuration directly in the WordPress dashboard.
PlanFeaturesAvailableEditThemes String Allows users to modify theme files and settings directly from the dashboard.
PlanFeaturesAvailableEmailForwardsExtendedLimit String Provides an extended limit for creating and managing email forwarding aliases.
PlanFeaturesAvailableFullActivityLog String Enables full tracking of all site activity, including post edits, logins, and plugin changes.
PlanFeaturesAvailableGlobalStyles String Provides access to Global Styles for customizing typography, colors, and layout across the site.
PlanFeaturesAvailableGoogleAnalytics String Allows integration with Google Analytics to track visitor traffic and engagement.
PlanFeaturesAvailableGoogleMyBusiness String Enables synchronization and management of Google Business Profile listings directly from WordPress.
PlanFeaturesAvailableInstallPlugins String Allows installation of new plugins from the WordPress plugin directory or ZIP uploads.
PlanFeaturesAvailableInstallPurchasedPlugins String Allows installation of previously purchased plugins linked to the user's account.
PlanFeaturesAvailableinstallThemes String Allows installation of new themes from the WordPress theme library or via ZIP upload.
PlanFeaturesAvailableInstallWooOnboardingPlugins String Includes WooCommerce onboarding plugins to simplify initial store setup.
PlanFeaturesAvailableJetpackDashboard String Provides access to the Jetpack dashboard for managing performance, security, and marketing features.
PlanFeaturesAvailableLegacyContact String Includes legacy contact features such as old-form integrations or widgets.
PlanFeaturesAvailableListInstalledPlugins String Allows viewing and listing all plugins currently installed on the site.
PlanFeaturesAvailableLiveSupport String Provides access to real-time chat or phone support from WordPress.com staff.
PlanFeaturesAvailableLockedMode String Enables Locked Mode to restrict editing or publishing activity during maintenance or review.
PlanFeaturesAvailableMailPoetBusiness String Includes MailPoet Business plan features for advanced email marketing automation.
PlanFeaturesAvailableManagePlugins String Allows activating, deactivating, and managing plugin updates or configurations.
PlanFeaturesAvailableNoAdverts String Removes all WordPress.com advertisements from the site's pages.
PlanFeaturesAvailablENOWPComBranding String Removes default WordPress.com branding elements from the site's footer and login screens.
PlanFeaturesAvailableOpentable String Adds OpenTable integration or blocks for online reservations.
PlanFeaturesAvailableOptionsPermalink String Allows configuration of advanced permalink structures for URLs.
PlanFeaturesAvailablePayments String Enables Payments features for collecting one-time or recurring payments directly on posts or pages.
PlanFeaturesAvailablePersonalThemes String Provides access to the Personal tier's exclusive theme collection.
PlanFeaturesAvailablePremiumContentContainer String Enables the Premium Content block to restrict access to posts or sections for subscribers only.
PlanFeaturesAvailablePremiumThemes String Provides access to premium WordPress.com themes included with the plan.
PlanFeaturesAvailablePrioritySupport String Provides priority handling for support requests and faster response times.
PlanFeaturesAvailablePrivateWhois String Enables private registration to hide domain ownership details from public records.
PlanFeaturesAvailableRealTimeBackups String Provides continuous, real-time backups that capture every site change instantly.
PlanFeaturesAvailableReducedEmailPriority String Indicates that email support requests receive lower priority under this plan tier.
PlanFeaturesAvailableRepublicize String Enables advanced Publicize features for sharing posts across connected social media accounts.
PlanFeaturesAvailableRestore String Allows restoring the site from previous backups or restore points.
PlanFeaturesAvailableScan String Provides automated security scans to detect malware, threats, or vulnerabilities.
PlanFeaturesAvailableScanManaged String Includes managed scanning services that automatically detect and repair site issues.
PlanFeaturesAvailableScheduledUpdates String Allows scheduling automatic plugin and theme updates to run at defined times.
PlanFeaturesAvailableSearch String Enables advanced on-site search functionality for faster, more accurate results.
PlanFeaturesAvailableSecuritySettings String Unlocks additional security configuration options to protect site data and user access.
PlanFeaturesAvailableSendAMessage String Provides access to tools that let users send direct messages or newsletters to followers.
PlanFeaturesAvailableSEOPreviewTools String Displays live previews of how posts appear in search results and on social media platforms.
PlanFeaturesAvailableSetPrimaryCustomDomain String Allows setting a specific custom domain as the site's primary URL.
PlanFeaturesAvailableSFTP String Enables secure file transfer (SFTP) access for uploading, editing, and managing site files.
PlanFeaturesAvailableSimplePayments String Enables Simple Payments buttons for accepting direct payments or donations through posts and pages.
PlanFeaturesAvailableSitePreviewLinks String Allows creating shareable preview links for draft posts and pages before publishing.
PlanFeaturesAvailableSocialEnhancedPublishing String Improves social sharing options with advanced scheduling and post formatting tools.
PlanFeaturesAvailableSocialImageGenerator String Automatically generates optimized social media images when sharing posts.
PlanFeaturesAvailableSocialPreviews String Shows real-time previews of how posts appear on social media feeds before publishing.
PlanFeaturesAvailableSpaceUpgradedStorage String Provides increased media storage capacity beyond the default plan limit.
PlanFeaturesAvailableSSH String Grants SSH access for secure command-line management of the site's hosting environment.
PlanFeaturesAvailableStagingSites String Allows creating and managing staging environments to test changes safely before going live.
PlanFeaturesAvailableStatsCommercial String Provides enhanced analytics and commercial-grade reporting on site performance and engagement.
PlanFeaturesAvailableStatsPaid String Includes advanced statistics and reporting features available to paid plans.
PlanFeaturesAvailableStudioSync String Supports synchronization between local WordPress Studio environments and the live site.
PlanFeaturesAvailableSubscriberUnlimitedImports String Allows importing an unlimited number of subscribers for newsletters or memberships.
PlanFeaturesAvailableSubscriptioNGifting String Enables gifting of site subscriptions or memberships to other users.
PlanFeaturesAvailableUpgradedUploadFiletypes String Expands allowed upload types beyond default WordPress file extensions.
PlanFeaturesAvailableUploadAudioFiles String Allows uploading, storing, and embedding audio files directly into site content.
PlanFeaturesAvailableUploadPlugins String Permits uploading and installing custom plugin ZIP files.
PlanFeaturesAvailableUploadThemes String Permits uploading and activating custom theme ZIP files.
PlanFeaturesAvailableUploadVideoFiles String Allows uploading, storing, and embedding video files within posts and pages.
PlanFeaturesAvailableVideoHosting String Provides dedicated video hosting services for faster playback and higher quality streaming.
PlanFeaturesAvailableVideopress String Enables VideoPress integration for optimized video delivery and privacy control.
PlanFeaturesAvailableVideopressVideo String Includes the VideoPress block and features for embedding videos from the VideoPress library.
PlanFeaturesAvailableWhatsappButton String Adds a WhatsApp contact or share button for posts and pages.
PlanFeaturesAvailableWoop String Includes WooCommerce Payments features for processing online transactions.
PlanFeaturesAvailableWordAds String Enables WordAds, allowing the site to display and monetize ads.
PlanFeaturesAvailableWordAdsJetpack String Extends WordAds monetization to Jetpack-connected self-hosted sites.
IsPlanFree Bool Indicates whether the current plan is the free version.
PlanLicenseKey String The license key associated with the site's active plan or product.
PlanProductID Int Unique identifier for the active product or plan.
PlanProductName String Full name of the plan or product assigned to the site.
PlanProductNameShort String Short display name of the current plan.
PlanProductSlug String Slug identifier for the plan used in API calls and URLs.
IsPlanUserOwner Bool Indicates whether the current user is the owner of the site's plan.
ProductsAggregate String Lists all products, add-ons, or services currently active for this site.
Isa4aClient Bool True if the site is an Automattic for Agencies (A4A) client deployment managed under the A4A program.
Isa4aDevSite Bool True if the site is an A4A development instance used for testing or staging.
IsCoreSiteEditorEnabled Bool Indicates whether the WordPress core Site Editor (block editor) is enabled.
IsDeleted Bool True if the site has been flagged as deleted or removed from active use.
IsFSEActive Bool True if Full Site Editing features are currently active.
IsFSEEligible Bool True if the site supports Full Site Editing based on theme compatibility and environment.
IsWPcomAtomic Bool True if the site is hosted on WordPress.com's Atomic infrastructure.
IsWPcomStagingSite Bool True if the site is a staging instance hosted on WordPress.com.
JetpackModulesAggregate String A list of active Jetpack modules enabled on this site.
LaunchStatus String Describes the site's launch state, such as launched, prelaunch, or coming soon.
QuotaPercentUsed Double Percentage of total storage space currently used by the site.
QuotaSpaceAllowed Long Total amount of storage space allocated to the site, in bytes.
QuotaSpaceAvailable Long Amount of unused storage space remaining, in bytes.
QuotaSpaceUsed Int Total amount of storage currently in use, in bytes.
SiteMigration String Information about migration history or transfer data for this site.
UpdatesAggregate String Details of available updates for WordPress core, themes, plugins, or languages.
UserInteractionsAggregate String Aggregated metrics of user activity or engagement on the site.
WasEcommerceTrial Bool True if the site previously used an eCommerce trial plan.
WasHostingTrial Bool True if the site previously used a hosting trial plan.
WasMigrationTrial Bool True if the site previously used a migration trial plan.
WasUpgradedFromTrial Bool True if the site was upgraded from a trial plan to a paid subscription.
WPComSiteSetup String Unique identifier for the site's WordPress.com setup flow or environment.
ZendeskSiteMetaAddonAggregate String Metadata describing Zendesk add-ons linked to the site.
ZendeskSiteMetaPlan String Metadata describing the Zendesk plan associated with the site.

CData Python Connector for WordPress

SiteSearchTerms

Query the SiteSearchTerms in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Period supports the '=' comparison.
  • Date supports the '=' comparison.
  • Summarize supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteSearchTerms WHERE Period='day'

Columns

Name Type References Description
Period String The reporting period covered by the returned search statistics (for example, day, week, or month).
SummaryEncryptedSearchTerms Int The total count of encrypted or anonymized search terms, representing searches where the original keywords are not available.
SummarySearchTerms String A list of the top search terms entered by site visitors during the reporting period.
SummaryOtherSearchTerms Int The number of less-frequent search terms grouped under 'Other' in the summary results.
SummaryTotalSearchTerms Int The total number of unique search terms recorded for the period, including summarized and encrypted terms.
DaysAggregate String An array showing daily search activity and corresponding search terms for each date (omitted when summarize=true).
Date Date The most recent date for which search term statistics are available.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
HasSummarize Boolean Indicates whether the results are summarized instead of showing detailed daily data.
NumofPeriods Int Specifies how many reporting periods are included in the returned results.

CData Python Connector for WordPress

SiteShortCodesRender

Get a rendered shortcode for a site

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Shortcode supports the '=' comparison.

The connector processes other filters client-side within the connector. For example, the following queries are processed server side:

SELECT * FROM SiteShortCodesRender WHERE Shortcode = 'short_code_string'
SELECT * FROM SiteShortCodesRender WHERE Shortcode = '[gallery]'

Columns

Name Type References Description
Shortcode String The shortcode string submitted for rendering, typically including attributes or parameters as used in post content.
Result String The rendered HTML output generated from the provided shortcode.
ScriptsAggregate String A list of JavaScript dependencies required to properly render and display the shortcode output.
StylesAggregate String A list of CSS stylesheets needed to apply the correct formatting and styling to the rendered shortcode content.

CData Python Connector for WordPress

SitesPageTemplates

Get a list of page templates supported by a site.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SitesPageTemplates

Columns

Name Type References Description
Label String The display name of the page template as shown in the WordPress editor template selection menu.
File String The file name or path of the page template file on the site (for example, page-contact.php or templates/about.php).

CData Python Connector for WordPress

SiteStats

Query the SiteStats in Wordpress.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteStats

Columns

Name Type References Description
Date Date The date the statistics snapshot was taken.
StatsCategories Int The total number of distinct categories created in the site.
StatsComments Int The total number of comments posted across all site content.
StatsCommentsMostActiveRecentDay String The most recent day when the site received the highest number of comments.
StatsCommentsMostActiveTime String The time of day when the site typically receives the most comments.
StatsCommentsPerMonth Int The average number of comments received each month.
StatsCommentsSpam Int The total number of comments flagged as spam.
StatsFollowersBlog Int The number of followers subscribed to the blog.
StatsFollowersComments Int The number of comments made by followers.
StatsPosts Int The total number of posts published on the site.
StatsShares Int The total number of content shares across all supported platforms.
StatsSharesFacebook Int The number of times content was shared on Facebook.
StatsSharesPressThis Int The number of times content was shared using the WordPress Press This bookmarklet.
StatsSharesTwitter Int The number of times content was shared on Twitter.
StatsTags Int The total number of unique tags applied to posts.
StatsViews Int The cumulative number of views across all posts and pages on the site.
StatsViewsBestDay String The date when the site received the highest number of views in a single day.
StatsViewsBestDayTotal Int The total number of views recorded on the site's best-performing day.
StatsViewsToday Int The total number of views recorded so far today.
StatsViewsYesterday Int The total number of views recorded on the previous day.
StatsVisitors Int The cumulative number of unique visitors who have accessed the site.
StatsVisitorsToday Int The number of unique visitors who have accessed the site today.
StatsVisitorsYesterday Int The number of unique visitors who accessed the site on the previous day.
VisitsDataAggregate String A collection of daily visitor and view counts, used to analyze traffic trends over time.
VisitsDate Date The specific date for which the visit data is reported.
VisitsFieldsAggregate String The set of metrics tracked for each recorded visit, such as views and visitors.
VisitsUnit String The time unit used for reporting visit data, typically measured on a daily basis.

CData Python Connector for WordPress

SiteStatsReferrers

Query the SiteStatsReferrers in Worpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.
  • Summarize supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteStatsReferrers WHERE Date='2025-05-14'
SELECT * FROM SiteStatsReferrers WHERE Period='month';

Columns

Name Type References Description
Date Date The most recent date for which referrer statistics are available.
GroupsAggregate String A list of referrer groups, where each entry represents a referring website, platform, or source domain that directed traffic to the site.
OtherViews Int The total number of views from referrers not included in the main groups, such as uncommon or unidentified traffic sources.
TotalViews Int The total number of views generated from all referrers, including both grouped and uncategorized sources.
DaysAggregate String A collection of daily referral data showing how views changed over time (omitted when summarize=true).
Period String The reporting period covered by the returned statistics, such as 'day', 'week', or 'month'.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
HasSummarize Boolean Indicates whether the summarize parameter is supported for this dataset.
NumofPeriods Int Specifies how many time periods are included in the result set.

CData Python Connector for WordPress

SiteStatsSummary

Query the SiteStatsSummary in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteStatsSummary where Date='2025-05-08'

Columns

Name Type References Description
Comments Int The total number of comments received during the specified reporting period.
Date Date The date marking the most recent point in the reporting period for which statistics are returned.
Followers Int The cumulative number of users following the site.
Likes Int The total number of likes recorded during the specified reporting period.
Period String The time range covered by the statistics, such as day, week, or month.
Reblogs Int The total number of times posts were reblogged during the specified reporting period.
Views Int The total number of views recorded during the specified reporting period, up to the given date.
Visitors Int The total number of unique visitors who accessed the site during the specified reporting period, up to the given date.

CData Python Connector for WordPress

SiteStatsTags

Get the SiteStatsTags for a blog.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteStatsTags;

Columns

Name Type References Description
Date Datetime The most recent date for which tag statistics are available.
TagsAggregate String A collection of tag data, where each entry includes details such as the tag name, post count, and related metrics.

CData Python Connector for WordPress

SiteStatsVideo

Query the SiteStatsVideo in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteStatsVideo WHERE PostID=21

Columns

Name Type References Description
PostID [KEY] Int The unique identifier of the video post.
PostName String The slug or name assigned to the video post.
PostParent Int The identifier of the parent post, if this post is part of a hierarchy.
PostPassword String The password required to access the post, if it is password-protected.
PostStatus String The publication status of the post, such as publish, draft, or private.
PostTitle String The title of the video post.
PostType String The content type of the post, such as post, page, or a custom post type like video or product.
FieldsAggregate String A collection of field definitions that describe the structure of the returned data.
DataAggregate String A collection of video-related statistics, including views, plays, and engagement data.
PagesAggregate String A list of pages on which the video appears or is embedded.
PostCommentCount String The total number of comments made on the post.
PostCommentStatus String Indicates whether comments are open or closed for the post.
PostFilter String Specifies how the post content is filtered before being returned.
PostGuid String The globally unique identifier (GUID) for the post, typically used internally by WordPress.
PostMenuOrder Int The numeric value used to determine the post's position in manual sorting or custom menus.
PostPermaLink String The full public URL where the post can be viewed in a browser.
PostPingStatus String Indicates whether pingbacks and trackbacks are allowed for the post.
PostPinged String A list of URLs that have already been pinged by this post.
PostAuthor String The user ID or username of the author who created the post.
PostContent String The full content of the post, including HTML or text formatting.
PostContentFiltered String A filtered version of the post content after WordPress or plugins apply transformations.
PostDate Datetime The date and time the post was created, in the site's local timezone.
PostDateGmt Datetime The creation date and time of the post in Greenwich Mean Time (GMT).
PostExcerpt String A short summary or excerpt of the post content.
PostMimeType String The Multipurpose Internet Mail Extensions (MIME) type of the post, used mainly for media attachments such as videos.
PostModified Datetime The date and time when the post was last modified, in the site's local timezone.
PostModifiedGmt Datetime The last modified date and time of the post in GMT.
PostToPing String A list of URLs to notify (ping) when the post is published.

CData Python Connector for WordPress

SiteTopAuthors

Query the SiteTopAuthors in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.
  • Summarize supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteTopAuthors WHERE Date='2025-05-08' AND Period='day'

Columns

Name Type References Description
Date Date The most recent date for which author statistics are available.
DaysAggregate String A collection of daily author view data, showing how many views each author received per day (omitted when summarize=true).
SummaryAggregate String A summary of total author views aggregated over the selected period (omitted when summarize=false).
Period String The time interval represented by the statistics, such as day, week, or month.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
HasSummarize Boolean Indicates whether the SiteTopAuthors results include summarized data.
NumofPeriods Int The number of reporting periods included in the results.

CData Python Connector for WordPress

SiteTopComments

Query the SiteTopComments in Wordpress.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteTopComments

Columns

Name Type References Description
Authors String A list of the top comment authors ranked by activity.
Date Date The most recent date for which comment statistics are available.
MonthlyComments Int The average number of comments received per month.
MostActiveDay String The day of the week when the site receives the highest comment activity.
MostActiveTime String The time of day when comment activity is at its peak.
MostCommentedPost String A list of posts that have received the highest number of comments.
Posts String A collection of posts included in the comment analysis.
TotalComments Int The total number of comments recorded during the selected reporting period.

CData Python Connector for WordPress

SiteTopPostsStats

Query the SiteTopPostsStats in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.
  • Summarize supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteTopPostsStats WHERE Date='2025-05-08' AND Period='day'

Columns

Name Type References Description
Date Date The most recent date for which post view statistics are available.
DaysAggregate String A collection of daily post view data, showing how many views each post received on specific days (omitted when summarize=true).
SummaryAggregate String A summary of post view totals aggregated across the selected reporting period (omitted when summarize=false).
Period String The reporting interval for which statistics are returned, such as day, week, or month.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
HasSummarize Boolean Indicates whether the SiteTopPostsStats results include summarized data.
NumofPeriods Int The number of reporting periods included in the returned statistics.

CData Python Connector for WordPress

SiteTotalViewsforPost

Query the SiteTotalViewsforPost in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • ID supports the '=', 'IN' comparisons.
  • Date supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteTotalViewsforPost WHERE ID=21
SELECT * FROM SiteTotalViewsforPost WHERE ID IN (21,66)

Columns

Name Type References Description
ID [KEY] Int The unique identifier of the post whose view count is being reported.
Views Int The total number of times the post has been viewed across all tracked periods.
Date Date The most recent date for which the post view statistics are available.

CData Python Connector for WordPress

SiteVideoPlays

Query the SiteVideoPlays in Wordpress.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Period supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteVideoPlays where Date='2025-05-08' 
SELECT * FROM SiteVideoPlays where Period='day'

Columns

Name Type References Description
Date Date The most recent date for which video play statistics are returned.
DaysAggregate String A collection of daily video play data showing how many times videos were played on specific days.
period String The reporting interval for which statistics are returned, such as day, week, or month.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
NumofPeriods Int The number of reporting periods included in the results.

CData Python Connector for WordPress

SiteWordAdsEarnings

List the SiteWordAdsEarnings for the WordPressOnline website.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SiteWordAdsEarnings

Columns

Name Type References Description
Id [KEY] Int The unique identifier of the site associated with the earnings data.
Name String The display name or title of the WordPress site.
ItemURL String The full URL of the site whose earnings are being reported.
EarningsTotalEarnings Int The total amount of revenue the site has earned through WordAds and related programs.
EarningsTotalAmountOwed Int The remaining balance owed to the site owner based on total earnings and payouts.
EarningsWordAdsAggregate String A collection of detailed earnings data from WordAds advertisements displayed on the site.
EarningsSponsoredAggregate String A collection of earnings data from sponsored posts and content partnerships.
EarningsAdjustmentAggregate String A collection of adjustments applied to earnings, such as refunds, chargebacks, or manual corrections.

CData Python Connector for WordPress

SiteWordAdsStats

List the SiteWordAdsStats for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Date supports the '=' comparison.
  • Unit supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SiteWordAdsStats
SELECT * FROM SiteWordAdsStats where Date='2024-08-19 11:42:25.0'
SELECT * FROM SiteWordAdsStats where Unit='day'

Columns

Name Type References Description
Date Date The date for which WordAds performance metrics are reported.
Unit String The reporting interval or unit of measurement, such as day, week, or month.

The allowed values are day, week, month.

Fields String A list of the statistical fields included in the report, such as impressions, clicks, and earnings.
DataAggregate String A collection of WordAds performance data organized by date, reflecting traffic and revenue trends over time.

CData Python Connector for WordPress

StatHighlights

Query the StatHighlights for a site in Wordpress.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM StatHighlights

Columns

Name Type References Description
PastSevenDaysComments Int The total number of comments received in the past seven days.
PastSevenDaysLikes Int The total number of likes received in the past seven days.
PastSevenDaysRangeEnd Date The end date of the most recent seven-day reporting period for your WordPress site statistics.
PastSevenDaysRangeStart Date The start date of the most recent seven-day reporting period for your WordPress site statistics.
PastSevenDaysViews Int The total number of views recorded in the past seven days.
PastSevenDaysVisitors Int The total number of unique visitors during the past seven days.
BetweenPastEightAndFifteenDaysComments Int The total number of comments received between eight and fifteen days ago.
BetweenPastEightAndFifteenDaysLikes Int The total number of likes received between eight and fifteen days ago.
BetweenPastEightAndFifteenDaysRangeEnd Date The end date of the eight-to-fifteen-day reporting period for your WordPress site statistics.
BetweenPastEightAndFifteenDaysRangeStart Date The start date of the eight-to-fifteen-day reporting period for your WordPress site statistics.
BetweenPastEightAndFifteenDaysViews Int The total number of views recorded between eight and fifteen days ago.
BetweenPastEightAndFifteenDaysVisitors Int The total number of unique visitors between eight and fifteen days ago.
PastThirtyDaysComments Int The total number of comments received during the past thirty days.
PastThirtyDaysLikes Int The total number of likes received during the past thirty days.
PastThirtyDaysRangeEnd Date The end date of the most recent thirty-day reporting period for your WordPress site statistics.
PastThirtyDaysRangeStart Date The start date of the most recent thirty-day reporting period for your WordPress site statistics.
PastThirtyDaysViews Int The total number of views recorded during the past thirty days.
PastThirtyDaysVisitors Int The total number of unique visitors during the past thirty days.
BetweenPastThirtyOneAndSixtyDaysComments Int The total number of comments received between thirty-one and sixty days ago.
BetweenPastThirtyOneAndSixtyDaysLikes Int The total number of likes received between thirty-one and sixty days ago.
BetweenPastThirtyOneAndSixtyDaysRangeEnd Date The end date of the thirty-one-to-sixty-day reporting period for your WordPress site statistics.
BetweenPastThirtyOneAndSixtyDaysRangeStart Date The start date of the thirty-one-to-sixty-day reporting period for your WordPress site statistics.
BetweenPastThirtyOneAndSixtyDaysViews Int The total number of views recorded between thirty-one and sixty days ago.
BetweenPastThirtyOneAndSixtyDaysVisitors Int The total number of unique visitors between thirty-one and sixty days ago.

CData Python Connector for WordPress

SubscriberPosts

List the SubscriberPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM SubscriberPosts where PostID=21

Columns

Name Type References Description
PostID [KEY] Int

Posts.ID

The unique identifier of the post associated with the subscription.
Subscriptions String Details about the user's subscription to the specified post, including follow status or notification preferences.

CData Python Connector for WordPress

SubscriptionCount

Get the SubscriptionCount for a blog.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM SubscriptionCount;

Columns

Name Type References Description
Blogs Int The total number of WordPress sites the user is currently subscribed to.
Comments Int The total number of comment threads the user is following across subscribed sites.
Pending Int The number of subscriptions awaiting confirmation or approval.

CData Python Connector for WordPress

TaxonomyPostType

Get a list of taxonomies associated with a post type.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • PostType supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM TaxonomyPostType where PostType='Post_type_string'

Columns

Name Type References Description
PostType [KEY] String The post type associated with the taxonomy (for example, post, page, or a custom post type).
Name [KEY] String The internal name (slug) of the taxonomy.
IsPublic Bool Indicates whether the taxonomy is publicly visible and queryable through the WordPress REST API.
Description String A short explanation describing the purpose of the taxonomy.
IsHierarchical Bool Specifies whether the taxonomy supports parent-child term relationships, such as categories.
Label String The main label used to identify the taxonomy in the WordPress admin interface.
LabelsAddNewItem String The label displayed for adding a new item in this taxonomy.
LabelsAddorRemoveItems String The label shown when adding or removing taxonomy terms.
LabelsAllItems String The label used to display all available taxonomy terms.
LabelsBacktoItems String The label displayed for navigation back to the taxonomy list.
LabelsChoosefromMostUsed String The label used for choosing from the most frequently used terms.
LabelsDescFieldDescription String Descriptive text shown beneath the taxonomy's description field.
LabelsEditItem String The label displayed when editing an existing taxonomy term.
LabelsFilterbyItem String The label used for filtering items by taxonomy term in the admin interface.
LabelsItemLink String The label for the term link field within the taxonomy editor.
LabelsItemLinkDescription String A description shown below the item link field in the taxonomy editor.
LabelsItemsList String The label for the taxonomy's item list view in the admin area.
LabelsItemsListNavigation String The label used for navigation controls in the item list view.
LabelsMenuName String The label displayed in the admin menu for the taxonomy.
LabelsMostUsed String The label used for the most frequently used taxonomy terms.
LabelsName String The plural display name for the taxonomy.
LabelsNameAdminBar String The label shown in the WordPress admin bar for quick taxonomy access.
LabelsNameFieldDescription String A short description displayed under the name input field in the taxonomy editor.
LabelsNewItemName String The label shown for entering a new taxonomy term name.
LabelsNoTerms String The label displayed when no terms exist in this taxonomy.
LabelsNotFound String The label displayed when no matching taxonomy terms are found.
LabelsParentFieldDescription String Descriptive text shown beneath the parent term field for hierarchical taxonomies.
LabelsParentItem String The label for selecting the parent taxonomy term.
LabelsParentItemColon String The label for the parent taxonomy term followed by a colon (used in some admin layouts).
LabelsPopularItems String The label for the section listing popular taxonomy terms.
LabelsSearchItems String The label used for the taxonomy term search field.
LabelsSeparateItemsWithCommas String The instructional label for separating multiple taxonomy terms with commas.
LabelsSingularName String The singular display name for the taxonomy.
LabelsSlugFieldDescription String A description displayed below the slug input field in the taxonomy editor.
LabelsTemplateName String The label for selecting a taxonomy template, if applicable.
LabelsUpdateItem String The label displayed when updating a taxonomy term.
LabelsViewItem String The label for viewing a taxonomy term on the front end.
CapabilitiesAssignTerms String The capability required to assign existing taxonomy terms to posts.
CapabilitiesDeleteTerms String The capability required to delete taxonomy terms.
CapabilitiesEditTerms String The capability required to edit taxonomy terms.
CapabilitiesManageTerms String The capability required to manage taxonomy terms, including creating and assigning them.

CData Python Connector for WordPress

TopTags

Get a filtered list of top tags, grouped by letter.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM TopTags;

Columns

Name Type References Description
ID [KEY] String The unique identifier assigned to the tag.
Title String The display title of the tag, often matching its name in WordPress.
DisplayName String The name of the tag as shown to site visitors or readers.
Slug String The URL-friendly version of the tag name, used in permalinks and API requests.
Description String A brief summary or explanation of what the tag represents.
ItemURL String The full URL to the tag's archive page on the site.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
Alphabet String The alphabet letter used to group or sort tags for display.

CData Python Connector for WordPress

TrendingTags

Get a list of trending tags.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • Count supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM TrendingTags
SELECT * FROM TrendingTags where Count=10

Columns

Name Type References Description
TagID [KEY] Int The unique numeric identifier assigned to the tag.
TagsTitle String The display title of the tag, often matching its WordPress name.
TagDisplayName String The name of the tag as shown to site visitors or readers.
TagsSlug String The URL-friendly version of the tag name, used in permalinks and API requests.
TagDescription String A short description or summary that explains what the tag represents.
ItemURL String The full URL linking to the tag's archive page or listing on the site.
Count Int The total number of posts or items associated with this tag.

CData Python Connector for WordPress

UserBillingHistory

Query the Billing History in Wordpress.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM UserBillingHistory

Columns

Name Type References Description
Id [KEY] String The unique identifier for the billing record.
Address String The billing address associated with the user's account.
Amount String The total billed amount, including the currency symbol.
AmountInteger Int The billed amount expressed in the smallest currency unit (for example, cents).
BillingHistoryTotal Int The total number of billing records available for the user.
Date Datetime The date and time when the transaction occurred.
CCDisplayBrand String The display name or brand of the credit card used for the transaction.
CCEmail String The email address linked to the credit card account.
CCName String The name of the credit card holder.
CCNum String The masked credit card number displayed for reference.
CCType String The type or category of credit card used (for example, Visa or MasterCard).
Credit String The amount of credit or discount applied to this transaction.
Currency String The three-letter currency code used for the transaction (for example, USD or EUR).
Desc String A description of the billing item or service charged.
Icon String The resource path or URL for the icon image representing the billing item.
Items String A list of items or services included in the billing transaction.
Org String The organization responsible for issuing the billing or payment request.
PayPart String The payment partner or processor used to complete the transaction.
PayRef String The reference or charge ID from the payment processor for this transaction.
Service String The platform, product, or service associated with the billed item.
ServiceSlug String A URL- and code-friendly version of the service name.
Subtotal String The subtotal amount displayed in readable currency format before taxes or additional fees.
SubtotalInteger Int The subtotal amount represented in the smallest currency unit (for example, cents).
Support String The URL to the customer support page related to this billing item or service.
Tax String The total amount of tax charged for this transaction.
TaxCountryCode String The ISO country code for the country where the tax was applied.
TaxExternalId String The external tax ID or reference code associated with the applied tax.
TaxInteger Int The taxed amount represented in the smallest currency unit (for example, cents).
TaxVendorInfo String Metadata or response details returned by the third-party tax service provider.
UpcomingCharges String The total amount scheduled for the next billing or renewal period.
ItemURL String The full URL linking to this billing record in the user's billing history.
Volume String The quantity of items or units included in this billing record.

CData Python Connector for WordPress

UserFollowedPosts

List the UserFollowedPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • DateRangeAfter supports the '<', '>' comparisons.
  • DateRangeBefore supports the '<', '>' comparisons.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM UserFollowedPosts
SELECT * FROM UserFollowedPosts where DateRangeBefore<'2025-05-08'

Columns

Name Type References Description
DateRangeAfter Datetime Filters followed posts to include only those published after this date and time.
DateRangeBefore Datetime Filters followed posts to include only those published before this date and time.
Number Int The total number of followed posts returned in the query.
Posts String An array containing details about each post the user follows, including title, ID, and publication metadata.

CData Python Connector for WordPress

UserFollowingFeeds

Query the info about the user following feeds.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM UserFollowingFeeds

Columns

Name Type References Description
ID [KEY] String The unique identifier assigned to the user's feed subscription.
BlogID String The unique ID of the WordPress site associated with the followed feed.
DateSubscribed Datetime The date and time when the user subscribed to the feed.
Url String The full URL of the followed site or blog feed.

CData Python Connector for WordPress

UserLikedPosts

List the UserLikedPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • DateRangeAfter supports the '<', '>' comparisons.
  • DateRangeBefore supports the '<', '>' comparisons.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM UserLikedPosts
SELECT * FROM UserLikedPosts where where DateRangeBefore<'2025-05-08'

Columns

Name Type References Description
DateRangeAfter Datetime Filters liked posts to include only those created after this date and time.
DateRangeBefore Datetime Filters liked posts to include only those created before this date and time.
Number Int The total number of liked posts returned in the query.
Posts String An array containing details about each post the user has liked, including title, ID, and publication information.

CData Python Connector for WordPress

UserLikes

Query the info about the posts liked by the user.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM UserLikes

Columns

Name Type References Description
PostID [KEY] String The unique identifier of the post that was liked by the user.
SiteID String The unique identifier of the WordPress site where the liked post is published.
Added Datetime The date and time when the like action was recorded.
MetaSelf String Metadata describing the user's like action, such as the like ID and related user context.
MetaHelp String Metadata containing available actions, permissions, or related help links for managing likes.
MetaLikes String A list of all users who have liked the same post, including their basic profile details.
MetaPost String Comprehensive details about the liked post, such as its title, author, and publication status.
MetaSite String Metadata about the WordPress site hosting the post, including site name, URL, and post statistics.

CData Python Connector for WordPress

UserPreferences

Update and List the UserPreferences for the WordPressOnline website.

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM UserPreferences;

Columns

Name Type References Description
CalypsoPreferencesColorScheme String The user's selected color scheme for the WordPress.com (Calypso) interface.
CanCalypsoPreferencesDismissibleCardDismissibleCardA8cForAgenciesSites Bool Indicates whether the user has dismissed the ‘Agencies Sites' informational card in Calypso.
CanCalypsoPreferencesHasSeenReaderOnboarding Bool Whether the user has completed or viewed the Reader onboarding experience.
CanCalypsoPreferencesHelpCenterOpen Bool Indicates whether the Help Center panel in the Calypso interface is currently expanded or collapsed.
CanCalypsoPreferencesIsNewReader Bool Shows whether the user is flagged as new to the WordPress Reader.
CalypsoPreferencesRecentSites String A list of recently accessed WordPress site identifiers for quick navigation.
CanCalypsoPreferencesSidebarCollapsed Bool Indicates whether the Calypso left sidebar is currently collapsed or expanded in the user interface.
CanCalypsoPreferencesSiteManagementPanelDismiss Bool Specifies whether the Site Management panel was dismissed by the user.
CalypsoPreferencesSiteManagementPanelTimestamp Long The timestamp recording when the Site Management panel was last dismissed.
CalypsoPreferencesSitesSorting String Defines the sorting order of sites displayed in the Calypso site list (for example, by name or last updated).

CData Python Connector for WordPress

UserSitesPosts

List the UserSitesPosts for the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • AuthorId supports the '=' comparison.
  • Status supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM UserSitesPosts
SELECT * FROM UserSitesPosts where AuthorId = 21

Columns

Name Type References Description
ID [KEY] Int The unique identifier of the post.
SiteID [KEY] Int The unique identifier of the WordPress site the post belongs to.
AuthorAvatarURL String The URL of the author's avatar image.
IsAuthorEmailAvailable Boolean Indicates whether the author's email address is available.
AuthorFirstName String The author's first name.
AuthorID Int The unique identifier of the post author.
AuthorLastName String The author's last name.
AuthorLogin String The author's WordPress login name.
AuthorName String The display name of the author, typically shown on posts and comments.
AuthorNiceName String A URL-friendly version of the author's display name.
AuthorProfileURL String The full URL to the author's public WordPress profile.
AuthorSiteID Int The unique identifier of the author's primary WordPress site.
AuthorURL String The author's website or profile URL.
Date Datetime The date and time the post was created, in the site's local timezone.
Modified Datetime The date and time the post was last updated.
Title String The title of the post.
URL String The full permalink URL to the post.
ShortURL String The WordPress shortlink (wp.me) version of the post URL.
Content String The full content of the post, in HTML or plain text format.
Excerpt String A short excerpt or summary of the post content.
Slug String The post's slug — the URL-friendly name used in its permalink.
Guid String The globally unique identifier (GUID) for the post.
Status String The publication status of the post, such as publish, draft, or private.
IsSticky Boolean Indicates whether the post is marked as sticky (pinned to the top of the blog).
Password String The password required to view the post, if it is password protected.
HasParent Boolean Indicates whether the post has a parent (for hierarchical post types).
Type String The post type, such as post, page, or a registered custom type.
DiscussionCommentCount Int The total number of comments associated with the post.
DiscussionCommentStatus String The current comment status, such as open or closed.
HasDiscussionCommentsOpen Boolean Indicates whether new comments can be added to the post.
DiscussionPingStatus String The pingback or trackback status for the post.
HasDiscussionPingsOpen Boolean Indicates whether pingbacks or trackbacks are allowed.
HasLikesEnabled Boolean Indicates whether the post can receive likes.
HasSharingEnabled Boolean Indicates whether social sharing buttons are enabled for this post.
LikeCount Int The total number of likes the post has received.
ILike Boolean Indicates whether the current user has liked the post.
IsFollowing Boolean Indicates whether the current user follows the blog containing this post.
IsReblogged Boolean Indicates whether the current user has reblogged this post.
GlobalID String A unique WordPress.com-wide identifier for the post.
FeaturedImage String The URL of the post's featured image, if available.
PostThumbnail String The attachment object representing the post's featured image.
Format String The post format, such as standard, image, quote, video, or gallery.
HasGeo Boolean Indicates whether the post includes geolocation data.
MenuOrder Int The order value used to arrange pages hierarchically or in menus.
PageTemplate String The page template assigned to this post, if applicable.
PublicizeURLsAggregates String An array of URLs to posts shared via connected Publicize services (for example, Facebook).
CategoriesAggregates String A collection of categories assigned to the post, keyed by category name.
TermsCategoryAggregates String A taxonomy mapping that lists category terms applied to the post.
TermsPostTagAggregates String A taxonomy mapping that lists tag terms applied to the post.
TermsPostFormatAggregates String A taxonomy mapping that lists post format terms applied to the post.
TermsMentionsAggregates String A taxonomy mapping that lists mention terms applied to the post.
TagsAggregates String A collection of tags applied to the post, keyed by tag name.
Attachments String A list of attachment objects (keyed by attachment ID), limited to the most recent 20 items.
AttachmentCount Int The total number of media attachments associated with this post.
MetadataAggregates String A collection of post metadata key-value pairs.
HasCapabilitiesDeletePost String Indicates whether the current user has permission to delete the post.
HasCapabilitiesEditPost String Indicates whether the current user has permission to edit the post.
HasCapabilitiesPublishPost String Indicates whether the current user has permission to publish the post.

CData Python Connector for WordPress

UserSubscribedTags

Get a list of tags subscribed to by the user

Table Specific Information

SELECT

The connector processes all the filters client-side within the connector.

SELECT * FROM UserSubscribedTags

Columns

Name Type References Description
ID [KEY] String The unique identifier of the tag the user is subscribed to.
Title String The title of the tag as it appears in WordPress.
DisplayName String The display name of the tag shown to users in the Reader or Tag pages.
Slug String The URL-friendly version of the tag name used in permalinks.
Description String A short description or summary of the tag's purpose or topic.
ItemURL String The full URL linking to the tag's public page on WordPress.com.

CData Python Connector for WordPress

VideoPoster

Get the poster for a specified VideoPress video.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • VideoGUID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM VideoPoster where VideoGUID='guid_string'

Columns

Name Type References Description
VideoGUID [KEY] String

Videos.Id

The globally unique identifier (GUID) of the video associated with the poster image.
Poster String The URL of the image used as the video's poster or preview thumbnail.
IsPosterImageGenerating Bool Indicates whether the poster image is currently being generated (true) or has already been created and is available (false).

CData Python Connector for WordPress

VideopressChapter

Get the chapters for a specified VideoPress video of the WordPressOnline website.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • GUID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM videopresschapter where GUID='529DrhwH';

Columns

Name Type References Description
Description String A brief description or title of the video chapter segment.
Start Int The start time (in seconds) marking when this chapter begins within the video.
End Int The end time (in seconds) marking when this chapter segment finishes.
Guid String The globally unique identifier (GUID) of the video used to retrieve chapter details for the specified VideoPress video.

CData Python Connector for WordPress

Videos

Get the metadata for a specified VideoPress video.

Table Specific Information

SELECT

The connector uses the WordPress API to process some of the filters.

  • VideoGUID supports the '=' comparison.

The connector processes other filters client-side within the connector.

For example, the following queries are processed server side.

SELECT * FROM Videos where VideoGUID='guid_string'

Columns

Name Type References Description
GUID [KEY] String The globally unique identifier (GUID) assigned to the video.
Title String The title of the video as displayed in the media library or post editor.
Description String A short summary or description of the video's content.
width Integer The width of the video frame in pixels.
Height Integer The height of the video frame in pixels.
Duration Integer The total playback length of the video, measured in milliseconds.
HasDisplayEmbed Boolean Indicates whether the video embed menu is visible to viewers.
HasAllowDownload Boolean Specifies whether viewers can download the video from the player interface.
Rating String The video's content rating, if applicable.
Poster String The URL of the image displayed as the video's poster or preview thumbnail.
Original String The URL of the original, uncompressed video file.
Watermark String The URL of a watermark or logo overlay applied to the video.
BgColor String The custom background color used in the video player.
BlogId String The unique identifier of the WordPress site where the video was uploaded.
PostId Integer The post ID of the video attachment or associated post.
IsPrivate Boolean Indicates whether the video is private and restricted to authorized viewers.
PrivacySetting Integer The numeric value representing the video's privacy level or access control setting.
HasPrivateEnabledForSite Boolean Indicates whether private video mode is enabled for the site.
UploadDate Datetime The date and time the video was uploaded, in ISO 8601 format.
HasVideoTranscodingFinished Boolean Indicates whether the video transcoding process has completed.
Subtitles String A list of available subtitle or caption files, including languages and formats.
TracksAggregate String A collection of auxiliary media tracks, such as subtitles or metadata tracks, linked to the video.
AdaptiveStreaming String The HLS (HTTP Live Streaming) URL used for adaptive bitrate playback.
IsThumbnailGenerating Boolean Indicates whether thumbnail grid generation is currently in progress.
FilesAggregate String A list of available video file formats and their corresponding file names.
FileUrlBaseHttp String The base HTTP URL structure used to generate video file links.
FileUrlBaseHttps String The base HTTPS URL structure used to generate video file links.
PrivacyDetailsAggregate String Additional metadata describing the video's privacy configuration.
FilesStatusAggregate String Status information for each video file format during or after transcoding.
FormatMetaAggregate String Technical metadata describing each encoded video format.
ThumbnailsGridAggregate String Detailed information about the generated video thumbnail grid.

CData Python Connector for WordPress

Stored Procedures

Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT/INSERT/UPDATE/DELETE operations with WordPress.

Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from WordPress, along with an indication of whether the procedure succeeded or failed.

CData Python Connector for WordPress Stored Procedures

Name Description
ActivateWidgets Activates widgets on a WordPress site by updating their configuration and status.
CreateMedia Creates a new media item, such as an image, video, or document, and uploads it to the WordPress.com Media Library for use in posts or pages.
DeleteTracks Deletes tracking or activity records from WordPress.
FollowSpecifiedBlog Allows the user to follow a specific WordPress blog by providing its blog Id or URL.
GetAutomatedTransferStatus Retrieve the current status of an automated transfer for a specific WordPress site.
GetOAuthAccessToken Gets the OAuth access token from Wordpress.
GetOAuthAuthorizationURL Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.
LikeAComment Adds a like to a specific WordPress comment and updates the like count accordingly.
LikeAPost Adds a like to a specific WordPress post and updates the post's like count accordingly.
MarkNotificationAsRead Mark the user's notifications as read, updating their status in WordPress.com so they no longer appear as new or unread.
PostCounts Get number of posts in the post type groups by post status.
ProvisionAgencySite Provision a new agency site in WordPress.com with specified configuration options.
ReblogPost Reblog a post.
RecentNotificationSeenTimestamp Set the timestamp of the most recently seen notification.
RemoveLikeFromComment Remove like from a comment.
ReplytoAnotherComment Create a comment as a reply to another comment.
ReportReferrerAsSpam Report a referrer as spam.
RestorePosts Restore multiple posts
RestorePoststoPreviousStatus Restore a post or page from the trash to its previous status.
SendTwoStepCode Sends a two-step code via SMS to the current user.
SiteEmbeds Sends a two-step code via SMS to the current user.
SiteRenderedEmbeds Like a comment.
SiteShortCodes Get a list of shortcodes available on a site. Note: The current user must have publishing access.
SubscribeNewTag Subscribe to a new tag.
UnFollowSpecifiedBlog Follow the specified blog.
UnLikeAPost UnLike a post.
UnReportReferrerAsSpam Unreport a referrer as spam.
UnsubscribeTag Unsubscribe to a tag.
UploadTracks Upload a subtitle/caption track for a specified VideoPress video.
WordAdsApproved Request streamlined approval to join the WordAds program.

CData Python Connector for WordPress

ActivateWidgets

Activates widgets on a WordPress site by updating their configuration and status.

Table Specific Information

Execute

Sends a two-step code via SMS to the current user.

Note: To activate a widget, you must specify the IdBase column. <

EXEC ActivateWidgets IdBase='"text"';

Input

Name Type Description
IdBase String The base identifier for the widget type in WordPress, such as 'text' or 'recent-posts'.
Sidebar String The identifier of the sidebar where this widget is active. If empty, the widget is added in the first sidebar available. This field is optional.
Position Integer Specifies the position in which the widget appears within the assigned sidebar. This field is optional.
SettingsAggregate String Contains the widget's configuration data, stored as aggregated settings returned by WordPress. This field is optional.

Result Set Columns

Name Type Description
Success String Indicates whether the operation was successful or not.
Id String The unique identifier for the widget instance being activated.
IdBase String The base identifier for the widget type in WordPress, such as 'text' or 'recent-posts'.
Position Integer Specifies the position in which the widget appears within the assigned sidebar. This field is optional.
SideBar String The identifier of the sidebar where this widget is active. If empty, the widget is added in the first sidebar available. This field is optional.
SettingsAggregate String Contains the widget's configuration data, stored as aggregated settings returned by WordPress. This field is optional.

CData Python Connector for WordPress

CreateMedia

Creates a new media item, such as an image, video, or document, and uploads it to the WordPress.com Media Library for use in posts or pages.

Table Specific Information

Execute

Upload a new piece of media.

Note: To Upload a new piece of media, you must specify the Media column.

EXEC CreateMedia Media='"C:\\Users\\Downloads\\cdata.png"';

Input

Name Type Description
FileLocation String The path or URL of the file to be uploaded to the WordPress Media Library.
MediaUrls String The URL or list of URLs for the media items uploaded to WordPress.
Title String The title assigned to the media item in WordPress.
Description String The description text for the media item in WordPress.
Caption String The caption text to display with the media item in WordPress.
ParentId String The identifier of the post or page the media item is attached to in WordPress.
FileName String The file name assigned to the uploaded media item in WordPress.

Result Set Columns

Name Type Description
Success String Indicates whether the operation was successful or not.
Media String An array of uploaded media objects representing the files added to the WordPress Media Library.

CData Python Connector for WordPress

DeleteTracks

Deletes tracking or activity records from WordPress.

Stored Procedure Specific Information

Execute

Call this procedure to delete an existing subtitle/caption track for a specified VideoPress video. To delete an existing subtitle/caption track for a specified VideoPress video, you must specify the following columns: GUID, Kind, and SrcLang. For example:

EXEC DeleteTracks GUID='529DrhwH', Kind='"subtitles"', SrcLang='"en"';

Input

Name Type Description
GUID String The globally unique identifier of the tracking record to be deleted.
Kind String The type or category of the tracking record being deleted, such as a view or click event.
SrcLang String The source language code associated with the tracking record to be deleted.

Result Set Columns

Name Type Description
Success String Indicates whether the WordPress operation completed successfully.
Deleted Boolean Indicates whether the tracking record was successfully deleted from WordPress.

CData Python Connector for WordPress

FollowSpecifiedBlog

Allows the user to follow a specific WordPress blog by providing its blog Id or URL.

Stored Procedure Specific Information

Execute

Call this procedure to follow the specified blog. To follow the specified blog, you must specify the following column: BlogUrl. A successful authentication is also required. For example:

EXEC FollowSpecifiedBlog BlogUrl='http://ramaarya.blog';

Input

Name Type Description
BlogUrl String The URL of the blog to follow.

Result Set Columns

Name Type Description
Success String Indicates whether the operation to follow the specified WordPress blog was successful.
Subscribed Boolean Indicates whether the user successfully subscribed to the specified WordPress blog.
Info String Provides additional details or messages returned by WordPress about the follow operation.
SubscriptionId Integer The unique identifier of the WordPress subscription created for the followed blog.
SubscriptionBlogId Integer The unique identifier of the WordPress blog that was followed.
SubscriptionURL String he URL of the WordPress blog that was followed.
SubscriptionDateSubscribed String The date and time when the user subscribed to the specified WordPress blog.
SubscriptionFeedId String The unique identifier of the feed associated with the blog subscription.
DeliveryMethodsEmailSendPosts Boolean Indicates whether new posts from the followed blog are sent by email.
DeliveryMethodsEmailSendComments Boolean Indicates whether new comment notifications from the followed blog are sent by email.
DeliveryMethodsEmailPostDeliveryFrequency String The frequency at which email notifications for new posts are sent.
DeliveryMethodsEmailDateSubscribed Datetime The date and time when the user subscribed to receive email notifications from the followed blog
NotificationSendPosts Boolean Indicates whether the user receives notifications for new posts from the followed blog.
MetaAggregate String Aggregated metadata for the follow subscription returned by the WordPress API.

CData Python Connector for WordPress

GetAutomatedTransferStatus

Retrieve the current status of an automated transfer for a specific WordPress site.

Stored Procedure-Specific Information

To get the automated transfer status, you must specify the Site parameter. The following example shows how to get the automated transfer status.

EXECUTE GetAutomatedTransferStatus Site='example.wordpress.com';

You can also use the site ID instead of the domain:

EXECUTE GetAutomatedTransferStatus Site='123456';

Input

Name Type Description
Site String The site ID or domain for which to retrieve the automated transfer status.

Result Set Columns

Name Type Description
Status String The current status of the automated transfer operation.

CData Python Connector for WordPress

GetOAuthAccessToken

Gets the OAuth access token from Wordpress.

Input

Name Type Description
AuthMode String The type of authentication mode to use. The allowed values are APP, WEB.
Scope String The scope or permissions you are requesting.

The default value is global.

CallbackUrl String The URL the user will be redirected to after authorizing your application.
Verifier String The verifier returned from Wordpress after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL.
State String This field indicates any state that may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to Google authorization server and back. Uses include redirecting the user to the correct resource in your site, using nonces, and mitigating cross-site request forgery.

Result Set Columns

Name Type Description
OAuthAccessToken String The authentication token returned from Wordpress.
ExpiresIn String The remaining lifetime for the access token in seconds.

CData Python Connector for WordPress

GetOAuthAuthorizationURL

Gets the Wordpress authorization URL. Access the URL returned in the output in a Web browser. This requests the access token that can be used as part of the connection string to Wordpress.

Input

Name Type Description
CallbackUrl String The URL that Wordpress will return to after the user has authorized your app.
Scope String The scope or permissions you are requesting.

The default value is global.

State String This field indicates any state that may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to Google authorization server and back. Uses include redirecting the user to the correct resource in your site, using nonces, and mitigating cross-site request forgery.

Result Set Columns

Name Type Description
URL String The URL to be entered into a Web browser to obtain the verifier token and authorize the data provider with.

CData Python Connector for WordPress

LikeAComment

Adds a like to a specific WordPress comment and updates the like count accordingly.

Stored Procedure Specific Information

Execute

Call this procedure to like a comment. To like a comment, you must specify the following column: CommentId. A successful authentication is also required. For example:

EXEC LikeAComment CommentId=80;

Input

Name Type Description
CommentId Integer The unique identifier of the WordPress comment being liked.

Result Set Columns

Name Type Description
Success String Indicates whether the like action for the specified comment completed successfully.
ILike Boolean Indicates whether the current user has liked the comment.
LikeCount Integer The total number of likes the comment has received in WordPress.
MetaAggregate String Aggregated metadata for the comment like action returned by the WordPress API.

CData Python Connector for WordPress

LikeAPost

Adds a like to a specific WordPress post and updates the post's like count accordingly.

Input

Name Type Description
PostId Integer The unique identifier of the WordPress post being liked.

Result Set Columns

Name Type Description
Success String Indicates whether the like action for the specified post completed successfully.
PostId Integer The unique identifier of the WordPress post being liked.
SiteId Integer The unique identifier of the WordPress site where the liked post is hosted.
ILike Boolean The unique identifier of the user who liked the post.
LikerId Integer The unique identifier of the user who liked the post.
LikerLogin String The WordPress username of the user who liked the post.
LikerEmail String The email address of the user who liked the post.
LikerName String The display name of the user who liked the post.
LikerFirstName String The first name of the user who liked the post.
LikerLastName String The last name of the user who liked the post.
LikerNiceName String The URL-friendly version of the liker's display name used in profile URLs.
LikerURL String The website URL associated with the user who liked the post.
LikerAvatarURL String The URL of the avatar image for the user who liked the post.
LikerProfileURL String The URL of the WordPress profile page for the user who liked the post.
LikerIPAddress String The IP address associated with the user who liked the WordPress post.
LikerSiteId Int The unique identifier of the WordPress site associated with the user who liked the post.
LikerSiteVisibile Boolean Indicates whether the liker's WordPress site is publicly visible.
LikerDefaultAvatar Boolean Indicates whether the user who liked the post is using the default WordPress avatar image.
MetaAggregate String Aggregated metadata for the post like action returned by the WordPress API.

CData Python Connector for WordPress

MarkNotificationAsRead

Mark the user's notifications as read, updating their status in WordPress.com so they no longer appear as new or unread.

Stored Procedure Specific Information

Execute

Call this procedure to mark a set of notifications as read. To mark a set of notifications as read, you must specify the following column: Count. A successful authentication is also required. For example:

EXEC MarkNotificationAsRead Count='{\"123456\":\"1\"}';

Input

Name Type Description
Count String Specifies the number of notifications to mark as read for the current user.

Result Set Columns

Name Type Description
Success String Indicates whether the operation to mark notifications as read completed successfully.
Updated String Returns the IDs of notifications that were updated and now marked as read.

CData Python Connector for WordPress

PostCounts

Get number of posts in the post type groups by post status.

Stored Procedure Specific Information

Execute

Call this procedure to get number of posts in the post type groups by post status. To get number of posts in the post type groups by post status, you must specify the following column: PostType. For example:

EXEC PostCounts PostType='post';

Input

Name Type Description
PostType String Specifies the WordPress post type to analyze, such as post, page, or custom post type.

Result Set Columns

Name Type Description
Success String Indicates whether the post count retrieval operation completed successfully.
CountsAllPublish String Returns the total number of published posts across all users for the specified post type.
CountsAllDraft String Returns the total number of draft posts across all users for the specified post type.
CountsMinePublish String Returns the total number of published posts created by the current authenticated user.

CData Python Connector for WordPress

ProvisionAgencySite

Provision a new agency site in WordPress.com with specified configuration options.

Stored Procedure-Specific Information

To provision an agency site, you must specify the AgencyId and SiteId parameters. The following example shows how to provision an agency site.

EXECUTE ProvisionAgencySite AgencyId='123', SiteId='456';

You can also specify optional configuration parameters:

EXECUTE ProvisionAgencySite AgencyId='123', SiteId='456', SiteName='My New Site', PhpVersion='8.1', PrimaryDataCenter='us-east-1', IsFullyManagedAgencySite='true';

The procedure returns a JobId that can be used to track the provisioning progress.

Input

Name Type Description
AgencyId Integer The unique identifier of the agency.
SiteId Integer The unique identifier of the agency site to be provisioned.
SiteName String The name to assign to the provisioned site.
PhpVersion String The PHP version to use for the site (e.g., '7.4', '8.0', '8.1').
PrimaryDataCenter String The primary data center location for hosting the site.
IsFullyManagedAgencySite Boolean Whether the site should be fully managed by the agency.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the site provisioning operation was initiated successfully.
JobId Integer The unique identifier of the provisioning job for tracking progress.

CData Python Connector for WordPress

ReblogPost

Reblog a post.

Stored Procedure Specific Information

Execute

Call this procedure to reblog a post. To reblog a post, you must specify the following column: PostId. A successful authentication is also required. For example:

EXECUTE ReblogPost PostId='166';

Input

Name Type Description
PostId Integer The unique identifier of the WordPress post to be reblogged.

Result Set Columns

Name Type Description
Success String Indicates whether the reblog operation completed successfully.
Id Integer The unique identifier assigned to the newly created reblogged post.
CanReblog String Indicates whether the post is eligible to be reblogged by any WordPress user.
CanUserReblog Boolean Indicates whether the authenticated user has permission to reblog the specified post.
IsReblogged Boolean Shows whether the authenticated user has already reblogged this post.
MetaAggregate String Contains metadata and response details returned from the WordPress API related to the reblog operation.

CData Python Connector for WordPress

RecentNotificationSeenTimestamp

Set the timestamp of the most recently seen notification.

Stored Procedure Specific Information

Execute

Call this procedure to set the timestamp of the most recently seen notification. To set the timestamp of the most recently seen notification, you must specify the following column: Time. A successful authentication is also required. For example:

EXEC RecentNotificationSeenTimestamp Time='1746934534';

Input

Name Type Description
Time String The UNIX timestamp representing the most recent notification seen by the user on their WordPress client.

Result Set Columns

Name Type Description
Success String Indicates whether the request to update or retrieve the notification timestamp completed successfully.
LastSeenTime Datetime The UNIX timestamp showing when the user last viewed their notifications in WordPress.

CData Python Connector for WordPress

RemoveLikeFromComment

Remove like from a comment.

Stored Procedure Specific Information

Execute

Call this procedure to remove your like from a comment. To remove your like from a comment, you must specify the following column: CommentId. A successful authentication is also required. For example:

EXEC RemoveLikeFromComment CommentId=80;

Input

Name Type Description
CommentId Int The unique identifier of the comment from which the like is removed.

Result Set Columns

Name Type Description
Success String Indicates whether the request to remove the like was completed successfully.
ILike Boolean Indicates whether the authenticated user currently likes the comment after the operation.
LikeCount Integer The total number of likes the comment has after the operation.
MetaAggregate String Contains metadata and response details returned by the WordPress API for the unlike operation.

CData Python Connector for WordPress

ReplytoAnotherComment

Create a comment as a reply to another comment.

Stored Procedure Specific Information

Execute

Call this procedure to create a comment as a reply to another comment. To create a comment as a reply to another comment, you must specify the following columns: CommentId and Content. A successful authentication is also required. For example:

EXEC ReplytoAnotherComment CommentId=80,Content='\"testing123\"';

Input

Name Type Description
CommentId Integer The CommentId.
Content String The comment text.

Result Set Columns

Name Type Description
Success String Indicates whether the operation was successful or not.
Id Integer The comment ID.
PostId Integer The post ID.
PostTitle String The post title.
PostType String The post type.
PostLink String The post link.
AuthorId Integer The author id.
AuthorLogin String The author login.
AuthorEmail String The author email.
AuthorName String The author name.
AuthorFirstName String The author first name.
AuthorLastName String The author last name.
AuthorNiceName String The author nice name.
AuthorURL String The author URL.
AuthorAvatarURL String The author Avatar URL.
AuthorProfileURL String The author Profile URL.
AuthorIPAddress String The author IP Address.
AuthorSiteId Integer The author site ID.
AuthorSiteVisible Boolean The author site Visible.
AuthorNiceName String The author nice name.
Date Datetime Date.
URL String Url.
ShortURL String Short Url.
Content String Content.
RawContent String Content.
Status String Status.
ParentId String parentId.
ParentType String parenttype.
ParentLink String parentlink.
Type String Type for the comment.
LikeCount Integer Like Count for the comment.
Ilike Boolean ILike for the comment.
MetaAggregate String MetaAggregate for the comment.
CanModerate Boolean CanModerate for the comment.
IReplied Boolean IReplied for the comment.

CData Python Connector for WordPress

ReportReferrerAsSpam

Report a referrer as spam.

Stored Procedure Specific Information

Execute

Call this procedure to report a referrer as spam. To report a referrer as spam, you must specify the following column: Domain. A successful authentication is also required. For example:

EXEC ReportReferrerAsSpam Domain='testingra.wordpress.com';

Input

Name Type Description
Domain String The domain name of the referrer site being reported as spam.

Result Set Columns

Name Type Description
Success String Indicates whether the request to flag the referrer domain as spam was processed successfully.

CData Python Connector for WordPress

RestorePosts

Restore multiple posts

Stored Procedure Specific Information

Execute

Call this procedure to restore mulitple posts. To restore a post, you must specify the following column: PostId. A successful authentication is also required. For example:

EXECUTE RestorePosts PostId='6'

Input

Name Type Description
PostIds String A comma-separated list of post IDs to restore from the trash.

Result Set Columns

Name Type Description
Success String Indicates whether the request to restore the specified post or posts was completed successfully.
Id Integer The unique identifier of the restored post.
SiteId Integer The unique identifier of the WordPress site the restored post belongs to.
AuthorId Integer The unique identifier of the user who authored the restored post.
AuthorLogin String The login name of the post author.
AuthorEmail String The email address of the post author.
AuthorName String The display name of the post author.
AuthorFirstName String The first name of the post author.
AuthorLastName String The last name of the post author.
AuthorNiceName String A URL-friendly version of the author's username.
AuthorURL String The author's website URL associated with the post.
AuthorAvatarURL String The URL to the author's avatar image.
AuthorProfileURL String The profile or Gravatar URL of the post author.
Date Date The date and time when the post was originally created, in the site's timezone.
Modified Datetime The date and time when the post was last modified after restoration.
Title String The title of the restored post.
URL String The permalink URL of the restored post.
ShortURL String The WordPress shortlink (wp.me) for the restored post.
Content String The full HTML content of the restored post.
Excerpt String The excerpt or summary text of the restored post.
Slug String The URL-friendly name (slug) for the restored post.
Guid String The globally unique identifier (GUID) for the restored post.
Status String The current publication status of the restored post, such as publish, draft, or private.
Sticky String Indicates whether the restored post is marked as sticky on the site.
Password String The password protecting the post, if applicable.
Parent String The ID of the parent post, if this post is a child page or revision.
Type String The post type, such as post, page, or custom type.
DiscussionCommentsOpen String Indicates whether comments are open for the restored post.
DiscussionCommentStatus String The moderation status of comments on the post, such as open or closed.
DiscussionPingsOpen String Indicates whether pingbacks and trackbacks are open for the post.
DiscussionPingStatus String The current pingback status of the post.
LikesEnabled String Indicates whether likes are enabled for the post.
SharingEnabled String Indicates whether sharing options are enabled for the post.
LikeCount String The number of likes the restored post currently has.
ILike String Indicates whether the authenticated user has liked the post.
IsReblogged String Indicates whether the authenticated user has reblogged this post.
IsFollowing String Indicates whether the authenticated user follows the site hosting this post.
GlobalId String A unique WordPress.com-wide identifier for the restored post.
FeaturedImage String The URL of the featured image for the post, if one is assigned.
PostThumbnail String Metadata or attachment object representing the post's featured image.
Format String The post format, such as standard, video, gallery, or quote.
Geo String Geolocation data associated with the post, if available.
MenuOrder String The order of the post relative to others of the same type.
PageTemplate String The page template applied to the post, if it is a page.
PublicizeURLs String A list of URLs where the post has been shared through Publicize integrations.
Terms String A collection of taxonomy terms associated with the post.
Tags String The tags assigned to the restored post.
Categories String The categories assigned to the restored post.
Attachments String A list of media attachments associated with the post.
AttachmentCount String The total number of attachments linked to the restored post.
Metadata String Custom metadata fields and values for the restored post.
Meta String Additional metadata returned from the WordPress API.
Capabilities String Permissions or capabilities associated with the post, such as edit or delete rights.
Revisions String A list of previous revisions available for the restored post.
OtherURLs String Additional URLs related to the post, such as alternate views or API endpoints.

CData Python Connector for WordPress

RestorePoststoPreviousStatus

Restore a post or page from the trash to its previous status.

Stored Procedure Specific Information

Execute

Call this procedure to restore a post or page from the trash to its previous status.

The only required column is PostId, which must reference a valid post in the trash. A successful authentication is also required.

EXECUTE RestorePoststoPreviousStatus PostId=6 

Input

Name Type Description
PostId Integer The unique identifier of the post to restore to its previous status.

Result Set Columns

Name Type Description
Success String Indicates whether the request to restore the post to its previous status was completed successfully.
Id Integer The unique identifier of the restored post.
SiteId Integer The unique identifier of the WordPress site that owns the restored post.
AuthorId Integer The unique identifier of the user who authored the restored post.
AuthorLogin String The login name of the post author.
AuthorEmail String The email address of the post author.
AuthorName String The display name of the post author.
AuthorFirstName String The first name of the post author.
AuthorLastName String The last name of the post author.
AuthorNiceName String A URL-friendly version of the author's username.
AuthorURL String The website URL provided by the post author.
AuthorAvatarURL String The URL to the author's avatar image.
AuthorProfileURL String The profile or Gravatar URL of the post author.
Date Date The original date and time when the post was created, in the site's timezone.
Modified Datetime The date and time when the post was last modified after being restored.
Title String The title of the restored post.
URL String The permalink URL of the restored post.
ShortURL String The WordPress shortlink (wp.me) for the restored post.
Content String The full HTML content of the restored post.
Excerpt String The excerpt or summary of the restored post.
Slug String The URL-friendly slug used for the restored post.
Guid String The globally unique identifier (GUID) of the restored post.
Status String The post's restored publication status, such as publish, draft, or private.
Sticky String Indicates whether the restored post is marked as sticky.
Password String The password protecting the post, if applicable.
Parent String The ID of the parent post, if this post is part of a hierarchy.
Type String The post type, such as post, page, or custom type.
DiscussionCommentsOpen String Indicates whether comments are open for the restored post.
DiscussionCommentStatus String The current moderation status of comments on the post.
DiscussionPingsOpen String Indicates whether pingbacks and trackbacks are open for the post.
DiscussionPingStatus String The pingback status of the post.
LikesEnabled String Indicates whether likes are enabled for the post.
SharingEnabled String Indicates whether sharing options are enabled for the post.
LikeCount String The total number of likes for the restored post.
ILike String Indicates whether the authenticated user has liked the post.
IsReblogged String Indicates whether the authenticated user has reblogged the post.
IsFollowing String Indicates whether the authenticated user follows the site hosting the post.
GlobalId String A unique WordPress.com-wide identifier for the restored post.
FeaturedImage String The URL of the featured image assigned to the restored post.
PostThumbnail String The attachment object representing the post's featured image.
Format String The post format, such as standard, gallery, quote, video, or audio.
Geo String Geolocation data associated with the restored post, if available.
MenuOrder String The order of the post relative to others of the same type.
PageTemplate String The page template applied to the post, if it is a page.
PublicizeURLs String A list of URLs where the post has been shared through connected Publicize services.
Terms String The taxonomy terms associated with the post.
Tags String The tags applied to the restored post.
Categories String The categories assigned to the restored post.
Attachments String A list of media attachments linked to the post.
AttachmentCount String The total number of media attachments associated with the post.
Metadata String Custom metadata fields and their values associated with the post.
Meta String Additional metadata details returned from the WordPress API.
Capabilities String The user's permissions related to this post, such as edit or delete rights.
Revisions String A list of available revisions for the restored post.
OtherURLs String Additional URLs associated with the post, such as alternate endpoints or feeds.

CData Python Connector for WordPress

SendTwoStepCode

Sends a two-step code via SMS to the current user.

Table Specific Information

Execute

Sends a two-step code via SMS to the current user.

There are no required columns to run the stored procedure, only a succesful authentication is required.

EXECUTE SendTwoStepCode 

Result Set Columns

Name Type Description
Success String Indicates whether the two-step verification request was completed successfully.
Sent Boolean Indicates whether the verification code was successfully sent to the user's registered device or contact method.

CData Python Connector for WordPress

SiteEmbeds

Sends a two-step code via SMS to the current user.

Stored Procedure Specific Information

Execute

Call this procedure to get a list of embeds available on a site. Note: The current user must have publishing access. To get a list of embeds available on a site, the following quey can be executed: For example:

EXEC SiteEmbeds;

Result Set Columns

Name Type Description
Success String Indicates whether the embed retrieval operation completed successfully.
Embeds String Contains the list or details of embedded items retrieved for the specified site, such as media, posts, or external content.

CData Python Connector for WordPress

SiteRenderedEmbeds

Like a comment.

Stored Procedure Specific Information

Execute

Call this procedure to get a rendered embed for a site. Note: The current user must have publishing access. To get a rendered embed for a site, you must specify the following column: EmbedUrl. For example:

EXEC SiteRenderedEmbeds EmbedUrl='https://www.youtube.com/watch?v=dQw4w9WgXcQ';

Input

Name Type Description
EmbedUrl String The query-string–encoded embed URL to render. Only one URL can be submitted per request.

Result Set Columns

Name Type Description
Success String Indicates whether the embed rendering operation completed successfully.
EmbedUrl String The embed URL that was processed for rendering.
Result String The rendered HTML output generated from the specified embed URL.

CData Python Connector for WordPress

SiteShortCodes

Get a list of shortcodes available on a site. Note: The current user must have publishing access.

Stored Procedure Specific Information

Execute

Call this procedure to get a list of shortcodes available on a site. Note: The current user must have publishing access. To get a list of shortcodes available on a site, the following quey can be executed: For example:

EXEC SiteShortCodes;

Result Set Columns

Name Type Description
Success String Indicates whether the shortcode retrieval operation completed successfully.
ShortCodes String Returns a list of all supported shortcodes available for the site, identified by their shortcode handles.

CData Python Connector for WordPress

SubscribeNewTag

Subscribe to a new tag.

Stored Procedure Specific Information

Execute

Call this procedure to subscribe to a new tag. To subscribe to a new tag, you must specify the following column: Slug. A successful authentication is also required. For example:

EXEC SubscribeNewTag Slug='tagsome';

Input

Name Type Description
Slug String The slug (URL-friendly name) of the tag to subscribe to.

Result Set Columns

Name Type Description
Success String Indicates whether the tag subscription request completed successfully.
Subscribed Boolean Returns true if the tag was successfully added to the user's subscription list.
AddedTag String The unique identifier of the newly subscribed tag.
TagsAggregate String A collection of tags currently subscribed to by the user.

CData Python Connector for WordPress

UnFollowSpecifiedBlog

Follow the specified blog.

Stored Procedure Specific Information

Execute

Call this procedure to unfollow the specified blog. To unfollow the specified blog, you must specify the following column: BlogUrl. A successful authentication is also required. For example:

EXEC UnfollowSpecifiedBlog BlogUrl='http://ramaarya.blog';

Input

Name Type Description
BlogUrl String The full URL of the blog that the user wants to unfollow.

Result Set Columns

Name Type Description
Success String Indicates whether the unfollow request completed successfully.
Subscribed Boolean Indicates whether the user is still subscribed to the blog after the operation.
Info String Additional details about the unfollowed blog, such as its name or status.

CData Python Connector for WordPress

UnLikeAPost

UnLike a post.

Input

Name Type Description
PostId Integer The unique identifier of the post to unlike.

Result Set Columns

Name Type Description
Success String Indicates whether the unlike operation completed successfully.
PostId Integer The unique identifier of the post affected by the operation.
SiteId Integer The unique identifier of the site the post belongs to.
ILike Boolean Indicates whether the current user still likes the post after the operation.
LikerId Integer The unique identifier of the user who performed the unlike action.
LikerLogin String The WordPress login name of the user who performed the unlike action.
LikerEmail String The email address associated with the user who performed the unlike action.
LikerName String The display name of the user who performed the unlike action.
LikerFirstName String The first name of the user who performed the unlike action.
LikerLastName String The last name of the user who performed the unlike action.
LikerNiceName String The user's nice name, used for URL-friendly profile references.
LikerURL String The URL associated with the user's account or personal site.
LikerAvatarURL String The direct link to the user's avatar image.
LikerProfileURL String The full URL to the user's public WordPress.com profile.
LikerIPAddress String The IP address of the user who performed the unlike action.
LikerSiteId String The unique site identifier associated with the user.
LikerSiteVisible Boolean Indicates whether the user's site is publicly visible.
LikerDefaultAvatar Boolean Specifies whether the default avatar is being used for the user.
MetaAggregate String An array of metadata returned for the unliked post, including contextual details.

CData Python Connector for WordPress

UnReportReferrerAsSpam

Unreport a referrer as spam.

Stored Procedure Specific Information

Execute

Call this procedure to unreport a referrer as spam. To unreport a referrer as spam, you must specify the following column: Domain. A successful authentication is also required. For example:

EXEC UnreportReferrerAsSpam Domain='testingra.wordpress.com';

Input

Name Type Description
Domain String The domain name of the referrer to remove from the spam report list.

Result Set Columns

Name Type Description
Success String Indicates whether the referrer was successfully unreported as spam.

CData Python Connector for WordPress

UnsubscribeTag

Unsubscribe to a tag.

Stored Procedure Specific Information

Execute

Call this procedure to unsubscribe from a tag. To unsubscribe from a tag, you must specify the following column: Slug. A successful authentication is also required. For example:

EXEC UnsubscribeTag Slug='tagsome';

Input

Name Type Description
Slug String The slug (URL-friendly name) of the tag that the user wants to unsubscribe from.

Result Set Columns

Name Type Description
Success String Indicates whether the unsubscribe operation completed successfully.
Subscribed Boolean Indicates whether the user is still subscribed to the tag after the operation.
RemovedTag String The unique identifier of the tag that was unsubscribed.
TagsAggregate String An array of tags associated with the user's subscriptions after the operation.

CData Python Connector for WordPress

UploadTracks

Upload a subtitle/caption track for a specified VideoPress video.

Stored Procedure Specific Information

Execute

Call this procedure to upload a subtitle/caption track for a specified VideoPress video. To upload a subtitle/caption track for a specified VideoPress video, you must specify the following columns: GUID, Kind, SrcLang and Label. For example:

EXEC UploadTracks GUID='529DrhwH', Kind='"subtitles"', SrcLang='"en"', label='"englsih"', file='"D:\\wordpress_vide.vtt"';

Input

Name Type Description
GUID String The globally unique identifier (GUID) of the video to which the track is attached.
Kind String Specifies the type of track to upload. Supported values include subtitles, captions, descriptions, chapters, or metadata.
Label String A user-friendly label that identifies the track within the video player.
SrcLang String The language code of the track, following ISO 639-1 format (for example, 'en' for English).
FileLocation String The local path to a .vtt (WebVTT) track file to be uploaded and attached to the video.
FileName String The name of the track file being uploaded. Required when FileLocation is not defined.

Result Set Columns

Name Type Description
Success String Indicates whether the track upload completed successfully.

CData Python Connector for WordPress

WordAdsApproved

Request streamlined approval to join the WordAds program.

Table Specific Information

Execute

Request streamlined approval to join the WordAds program.

There are no required columns to run the stored procedure, only a succesful authentication is required.

EXECUTE WordAdsApproved 

Result Set Columns

Name Type Description
Success String Indicates whether the WordAds approval request was processed successfully.
Approved Boolean Confirms that the site has been approved and is now eligible to display WordAds.

CData Python Connector for WordPress

System Tables

You can query the system tables described in this section to access schema information, information on data source functionality, and batch operation statistics.

Schema Tables

The following tables return database metadata for WordPress:

Data Source Tables

The following tables return information about how to connect to and query the data source:

  • sys_connection_props: Returns information on the available connection properties.
  • sys_sqlinfo: Describes the SELECT queries that the connector can offload to the data source.

Query Information Tables

The following table returns query statistics for data modification queries

  • sys_identity: Returns information about batch operations or single updates.

CData Python Connector for WordPress

sys_catalogs

Lists the available databases.

The following query retrieves all databases determined by the connection string:

SELECT * FROM sys_catalogs

Columns

Name Type Description
CatalogName String The database name.

CData Python Connector for WordPress

sys_schemas

Lists the available schemas.

The following query retrieves all available schemas:

          SELECT * FROM sys_schemas
          

Columns

Name Type Description
CatalogName String The database name.
SchemaName String The schema name.

CData Python Connector for WordPress

sys_tables

Lists the available tables.

The following query retrieves the available tables and views:

          SELECT * FROM sys_tables
          

Columns

Name Type Description
CatalogName String The database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view.
TableType String The table type (table or view).
Description String A description of the table or view.
IsUpdateable Boolean Whether the table can be updated.
IsInsertable Boolean Whether the table can be inserted into.
IsDeleteable Boolean Whether rows can be deleted from the table.

CData Python Connector for WordPress

sys_tablecolumns

Describes the columns of the available tables and views.

The following query returns the columns and data types for the Categories table:

SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName = 'Categories' 

Columns

Name Type Description
CatalogName String The name of the database containing the table or view.
SchemaName String The schema containing the table or view.
TableName String The name of the table or view containing the column.
ColumnName String The column name.
DataTypeName String The data type name.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
Length Int32 The storage size of the column.
DisplaySize Int32 The designated column's normal maximum width in characters.
NumericPrecision Int32 The maximum number of digits in numeric data. The column length in characters for character and date-time data.
NumericScale Int32 The column scale or number of digits to the right of the decimal point.
IsNullable Boolean Whether the column can contain null.
Description String A brief description of the column.
Ordinal Int32 The sequence number of the column.
IsAutoIncrement String Whether the column value is assigned in fixed increments.
IsGeneratedColumn String Whether the column is generated.
IsHidden Boolean Whether the column is hidden.
IsArray Boolean Whether the column is an array.
IsReadOnly Boolean Whether the column is read-only.
IsKey Boolean Indicates whether a field returned from sys_tablecolumns is the primary key of the table.
ColumnType String The role or classification of the column in the schema. Possible values include SYSTEM, LINKEDCOLUMN, NAVIGATIONKEY, REFERENCECOLUMN, and NAVIGATIONPARENTCOLUMN.
ColumnCapabilities Int32 A bit mask denoting the column's write capabilities. The value is the sum of the following: 1 if the column is required for INSERTs, 2 if the column is allowed for INSERTs, and 4 if the column is allowed for UPDATEs. A value of 0 indicates that the write capabilities of the column are unknown or that the column is read-only.

CData Python Connector for WordPress

sys_procedures

Lists the available stored procedures.

The following query retrieves the available stored procedures:

          SELECT * FROM sys_procedures
          

Columns

Name Type Description
CatalogName String The database containing the stored procedure.
SchemaName String The schema containing the stored procedure.
ProcedureName String The name of the stored procedure.
Description String A description of the stored procedure.
ProcedureType String The type of the procedure, such as PROCEDURE or FUNCTION.

CData Python Connector for WordPress

sys_procedureparameters

Describes stored procedure parameters.

The following query returns information about all of the input parameters for the SelectEntries stored procedure:

SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SelectEntries' AND Direction = 1 OR Direction = 2

To include result set columns in addition to the parameters, set the IncludeResultColumns pseudo column to True:

SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SelectEntries' AND IncludeResultColumns='True'

Columns

Name Type Description
CatalogName String The name of the database containing the stored procedure.
SchemaName String The name of the schema containing the stored procedure.
ProcedureName String The name of the stored procedure containing the parameter.
ColumnName String The name of the stored procedure parameter.
Direction Int32 An integer corresponding to the type of the parameter: input (1), input/output (2), or output(4). input/output type parameters can be both input and output parameters.
DataType Int32 An integer indicating the data type. This value is determined at run time based on the environment.
DataTypeName String The name of the data type.
NumericPrecision Int32 The maximum precision for numeric data. The column length in characters for character and date-time data.
Length Int32 The number of characters allowed for character data. The number of digits allowed for numeric data.
NumericScale Int32 The number of digits to the right of the decimal point in numeric data.
IsNullable Boolean Whether the parameter can contain null.
IsRequired Boolean Whether the parameter is required for execution of the procedure.
IsArray Boolean Whether the parameter is an array.
Description String The description of the parameter.
Ordinal Int32 The index of the parameter.
Values String The values you can set in this parameter are limited to those shown in this column. Possible values are comma-separated.
SupportsStreams Boolean Whether the parameter represents a file that you can pass as either a file path or a stream.
IsPath Boolean Whether the parameter is a target path for a schema creation operation.
Default String The value used for this parameter when no value is specified.
SpecificName String A label that, when multiple stored procedures have the same name, uniquely identifies each identically-named stored procedure. If there's only one procedure with a given name, its name is simply reflected here.
IsCDataProvided Boolean Whether the procedure is added/implemented by CData, as opposed to being a native WordPress procedure.

Pseudo-Columns

Name Type Description
IncludeResultColumns Boolean Whether the output should include columns from the result set in addition to parameters. Defaults to False.

CData Python Connector for WordPress

sys_keycolumns

Describes the primary and foreign keys.

The following query retrieves the primary key for the Categories table:

         SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Categories' 
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
IsKey Boolean Whether the column is a primary key in the table referenced in the TableName field.
IsForeignKey Boolean Whether the column is a foreign key referenced in the TableName field.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.

CData Python Connector for WordPress

sys_foreignkeys

Describes the foreign keys.

The following query retrieves all foreign keys which refer to other tables:

         SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
PrimaryKeyName String The name of the primary key.
ForeignKeyName String The name of the foreign key.
ReferencedCatalogName String The database containing the primary key.
ReferencedSchemaName String The schema containing the primary key.
ReferencedTableName String The table containing the primary key.
ReferencedColumnName String The column name of the primary key.
ForeignKeyType String Designates whether the foreign key is an import (points to other tables) or export (referenced from other tables) key.

CData Python Connector for WordPress

sys_primarykeys

Describes the primary keys.

The following query retrieves the primary keys from all tables and views:

         SELECT * FROM sys_primarykeys
          

Columns

Name Type Description
CatalogName String The name of the database containing the key.
SchemaName String The name of the schema containing the key.
TableName String The name of the table containing the key.
ColumnName String The name of the key column.
KeySeq String The sequence number of the primary key.
KeyName String The name of the primary key.

CData Python Connector for WordPress

sys_indexes

Describes the available indexes. By filtering on indexes, you can write more selective queries with faster query response times.

The following query retrieves all indexes that are not primary keys:

          SELECT * FROM sys_indexes WHERE IsPrimary='false'
          

Columns

Name Type Description
CatalogName String The name of the database containing the index.
SchemaName String The name of the schema containing the index.
TableName String The name of the table containing the index.
IndexName String The index name.
ColumnName String The name of the column associated with the index.
IsUnique Boolean True if the index is unique. False otherwise.
IsPrimary Boolean True if the index is a primary key. False otherwise.
Type Int16 An integer value corresponding to the index type: statistic (0), clustered (1), hashed (2), or other (3).
SortOrder String The sort order: A for ascending or D for descending.
OrdinalPosition Int16 The sequence number of the column in the index.

CData Python Connector for WordPress

sys_connection_props

Returns information on the available connection properties and those set in the connection string.

The following query retrieves all connection properties that have been set in the connection string or set through a default value:

SELECT * FROM sys_connection_props WHERE Value <> ''

Columns

Name Type Description
Name String The name of the connection property.
ShortDescription String A brief description.
Type String The data type of the connection property.
Default String The default value if one is not explicitly set.
Values String A comma-separated list of possible values. A validation error is thrown if another value is specified.
Value String The value you set or a preconfigured default.
Required Boolean Whether the property is required to connect.
Category String The category of the connection property.
IsSessionProperty String Whether the property is a session property, used to save information about the current connection.
Sensitivity String The sensitivity level of the property. This informs whether the property is obfuscated in logging and authentication forms.
PropertyName String A camel-cased truncated form of the connection property name.
Ordinal Int32 The index of the parameter.
CatOrdinal Int32 The index of the parameter category.
Hierarchy String Shows dependent properties associated that need to be set alongside this one.
Visible Boolean Informs whether the property is visible in the connection UI.
ETC String Various miscellaneous information about the property.

CData Python Connector for WordPress

sys_sqlinfo

Describes the SELECT query processing that the connector can offload to the data source.

See SQL Compliance for SQL syntax details.

Discovering the Data Source's SELECT Capabilities

Below is an example data set of SQL capabilities. Some aspects of SELECT functionality are returned in a comma-separated list if supported; otherwise, the column contains NO.

NameDescriptionPossible Values
AGGREGATE_FUNCTIONSSupported aggregation functions.AVG, COUNT, MAX, MIN, SUM, DISTINCT
COUNTWhether COUNT function is supported.YES, NO
IDENTIFIER_QUOTE_OPEN_CHARThe opening character used to escape an identifier.[
IDENTIFIER_QUOTE_CLOSE_CHARThe closing character used to escape an identifier.]
SUPPORTED_OPERATORSA list of supported SQL operators.=, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR
GROUP_BYWhether GROUP BY is supported, and, if so, the degree of support.NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE
OJ_CAPABILITIESThe supported varieties of outer joins supported.NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS
OUTER_JOINSWhether outer joins are supported.YES, NO
SUBQUERIESWhether subqueries are supported, and, if so, the degree of support.NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED
STRING_FUNCTIONSSupported string functions.LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE
NUMERIC_FUNCTIONSSupported numeric functions.ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE
TIMEDATE_FUNCTIONSSupported date/time functions.NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT
REPLICATION_SKIP_TABLESIndicates tables skipped during replication.
REPLICATION_TIMECHECK_COLUMNSA string array containing a list of columns which will be used to check for (in the given order) to use as a modified column during replication.
IDENTIFIER_PATTERNString value indicating what string is valid for an identifier.
SUPPORT_TRANSACTIONIndicates if the provider supports transactions such as commit and rollback.YES, NO
DIALECTIndicates the SQL dialect to use.
KEY_PROPERTIESIndicates the properties which identify the uniform database.
SUPPORTS_MULTIPLE_SCHEMASIndicates if multiple schemas may exist for the provider.YES, NO
SUPPORTS_MULTIPLE_CATALOGSIndicates if multiple catalogs may exist for the provider.YES, NO
DATASYNCVERSIONThe CData Data Sync version needed to access this driver.Standard, Starter, Professional, Enterprise
DATASYNCCATEGORYThe CData Data Sync category of this driver.Source, Destination, Cloud Destination
SUPPORTSENHANCEDSQLWhether enhanced SQL functionality beyond what is offered by the API is supported.TRUE, FALSE
SUPPORTS_BATCH_OPERATIONSWhether batch operations are supported.YES, NO
SQL_CAPAll supported SQL capabilities for this driver.SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX
PREFERRED_CACHE_OPTIONSA string value specifies the preferred cacheOptions.
ENABLE_EF_ADVANCED_QUERYIndicates if the driver directly supports advanced queries coming from Entity Framework. If not, queries will be handled client side.YES, NO
PSEUDO_COLUMNSA string array indicating the available pseudo columns.
MERGE_ALWAYSIf the value is true, The Merge Mode is forcibly executed in Data Sync.TRUE, FALSE
REPLICATION_MIN_DATE_QUERYA select query to return the replicate start datetime.
REPLICATION_MIN_FUNCTIONAllows a provider to specify the formula name to use for executing a server side min.
REPLICATION_START_DATEAllows a provider to specify a replicate startdate.
REPLICATION_MAX_DATE_QUERYA select query to return the replicate end datetime.
REPLICATION_MAX_FUNCTIONAllows a provider to specify the formula name to use for executing a server side max.
IGNORE_INTERVALS_ON_INITIAL_REPLICATEA list of tables which will skip dividing the replicate into chunks on the initial replicate.
CHECKCACHE_USE_PARENTIDIndicates whether the CheckCache statement should be done against the parent key column.TRUE, FALSE
CREATE_SCHEMA_PROCEDURESIndicates stored procedures that can be used for generating schema files.

The following query retrieves the operators that can be used in the WHERE clause:

SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
Note that individual tables may have different limitations or requirements on the WHERE clause; refer to the Data Model section for more information.

Columns

Name Type Description
NAME String A component of SQL syntax, or a capability that can be processed on the server.
VALUE String Detail on the supported SQL or SQL syntax.

CData Python Connector for WordPress

sys_identity

Returns information about attempted modifications.

The following query retrieves the Ids of the modified rows in a batch operation:

         SELECT * FROM sys_identity
          

Columns

Name Type Description
Id String The database-generated Id returned from a data modification operation.
Batch String An identifier for the batch. 1 for a single operation.
Operation String The result of the operation in the batch: INSERTED, UPDATED, or DELETED.
Message String SUCCESS or an error message if the update in the batch failed.

CData Python Connector for WordPress

sys_information

Describes the available system information.

The following query retrieves all columns:

SELECT * FROM sys_information

Columns

NameTypeDescription
ProductStringThe name of the product.
VersionStringThe version number of the product.
DatasourceStringThe name of the datasource the product connects to.
NodeIdStringThe unique identifier of the machine where the product is installed.
HelpURLStringThe URL to the product's help documentation.
LicenseStringThe license information for the product. (If this information is not available, the field may be left blank or marked as 'N/A'.)
LocationStringThe file path location where the product's library is stored.
EnvironmentStringThe version of the environment or rumtine the product is currently running under.
DataSyncVersionStringThe tier of CData Sync required to use this connector.
DataSyncCategoryStringThe category of CData Sync functionality (e.g., Source, Destination).

CData Python Connector for WordPress

Connection String Options

The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider. Click the links for further details.

For more information on establishing a connection, see Establishing a Connection.

Authentication


PropertyDescription
AuthSchemeSpecifies the authentication scheme to use when connecting to WordPress or WordPressOnline.
URLThe URL of your WordPress site. For WordPress schema, the URL is the base URL for the site for wordpress. For WordPressOnline schema URL is the Rest API BaseURL for the wordpress site, sample URL will be testdev.wordpress.com.
SchemaThe Schema for the WordPress.
UserSpecifies the authenticating user's user ID.
PasswordSpecifies the authenticating user's password.

SSO


PropertyDescription
SSOLoginURLThe identity provider's login URL.
SSOPropertiesAdditional properties required to connect to the identity provider, formatted as a semicolon-separated list.
SSOExchangeURLThe URL used for consuming the SAML response and exchanging it for service specific credentials.

OAuth


PropertyDescription
InitiateOAuthSpecifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.
OAuthClientIdSpecifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.
OAuthClientSecretSpecifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server. (Custom OAuth applications only.).
OAuthAccessTokenSpecifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.
OAuthSettingsLocationSpecifies the location of the settings file where OAuth values are saved.
CallbackURLIdentifies the URL users return to after authenticating to WordPress via OAuth (Custom OAuth applications only).
ScopeSpecifies the scope of the authenticating user's access to the application, to ensure they get appropriate access to data. If a custom OAuth application is needed, this is generally specified at the time the application is created.
OAuthVerifierSpecifies a verifier code returned from the OAuthAuthorizationURL . Used when authenticating to OAuth on a headless server, where a browser can't be launched. Requires both OAuthSettingsLocation and OAuthVerifier to be set.
OAuthRefreshTokenSpecifies the OAuth refresh token used to request a new access token after the original has expired.
OAuthExpiresInSpecifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.
OAuthTokenTimestampDisplays a Unix epoch timestamp in milliseconds that shows how long ago the current access token was created.

SSL


PropertyDescription
SSLServerCertSpecifies the certificate to be accepted from the server when connecting using TLS/SSL.

Firewall


PropertyDescription
FirewallTypeSpecifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.
FirewallServerIdentifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.
FirewallPortSpecifies the TCP port to be used for a proxy-based firewall.
FirewallUserIdentifies the user ID of the account authenticating to a proxy-based firewall.
FirewallPasswordSpecifies the password of the user account authenticating to a proxy-based firewall.

Proxy


PropertyDescription
ProxyAutoDetectSpecifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.
ProxyServerIdentifies the hostname or IP address of the proxy server through which you want to route HTTP traffic.
ProxyPortIdentifies the TCP port on your specified proxy server that has been reserved for routing HTTP traffic to and from the client.
ProxyAuthSchemeSpecifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.
ProxyUserProvides the username of a user account registered with the proxy server specified in the ProxyServer connection property.
ProxyPasswordSpecifies the password of the user specified in the ProxyUser connection property.
ProxySSLTypeSpecifies the SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.
ProxyExceptionsSpecifies a semicolon-separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.

Logging


PropertyDescription
LogfileSpecifies the file path to the log file where the provider records its activities, such as authentication, query execution, and connection details.
VerbositySpecifies the verbosity level of the log file, which controls the amount of detail logged. Supported values range from 1 to 5.
LogModulesSpecifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.
MaxLogFileSizeSpecifies the maximum size of a single log file in bytes. For example, '10 MB'. When the file reaches the limit, the provider creates a new log file with the date and time appended to the name.
MaxLogFileCountSpecifies the maximum number of log files the provider retains. When the limit is reached, the oldest log file is deleted to make space for a new one.

Schema


PropertyDescription
LocationSpecifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.
BrowsableSchemasOptional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .
TablesOptional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .
ViewsOptional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .

Caching


PropertyDescription
AutoCacheSpecifies whether the content of tables targeted by SELECT queries is automatically cached to the specified cache database.
CacheProviderThe namespace of an ADO.NET provider. The specified provider is used as the target database for all caching operations.
CacheDriverThe driver class of a JDBC driver. The specified driver is used to connect to the target database for all caching operations.
CacheConnectionSpecifies the connection string for the specified cache database.
CacheLocationSpecifies the path to the cache when caching to a file.
CacheToleranceNotes the tolerance, in seconds, for stale data in the specified cache database. Requires AutoCache to be set to True.
OfflineGets the data from the specified cache database instead of live WordPress data.
CacheMetadataDetermines whether the provider caches table metadata to a file-based cache database.

Miscellaneous


PropertyDescription
MaxRowsSpecifies the maximum number of rows returned for queries that do not include either aggregation or GROUP BY.
OtherSpecifies advanced connection properties for specialized scenarios. Use this property only under the guidance of our Support team to address specific issues.
PseudoColumnsSpecifies the pseudocolumns to expose as table columns, expressed as a string in the format 'TableName=ColumnName;TableName=ColumnName'.
ReadonlyToggles read-only access to WordPress from the provider.
RTKSpecifies the runtime key for licensing the provider. If unset or invalid, the provider defaults to the standard licensing method. This property is only required in environments where the standard licensing method is unsupported or requires a runtime key.
TimeoutSpecifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error.
UserDefinedViewsSpecifies a filepath to a JSON configuration file that defines custom views. The provider automatically detects and uses the views specified in this file.
CData Python Connector for WordPress

Authentication

This section provides a complete list of the Authentication properties you can configure in the connection string for this provider.


PropertyDescription
AuthSchemeSpecifies the authentication scheme to use when connecting to WordPress or WordPressOnline.
URLThe URL of your WordPress site. For WordPress schema, the URL is the base URL for the site for wordpress. For WordPressOnline schema URL is the Rest API BaseURL for the wordpress site, sample URL will be testdev.wordpress.com.
SchemaThe Schema for the WordPress.
UserSpecifies the authenticating user's user ID.
PasswordSpecifies the authenticating user's password.
CData Python Connector for WordPress

AuthScheme

Specifies the authentication scheme to use when connecting to WordPress or WordPressOnline.

Possible Values

Basic, OAuth, OAuthClient, OKTA, PingFederate, AzureAD, OAuthPassword

Data Type

string

Default Value

"Basic"

Remarks

This property specifies the authentication scheme to use when connecting to WordPress or WordPressOnline.

The available values are:

  • For WordPress: Basic, OAuth, OAuthClient, Okta, PingFederate, AzureAD.
  • For WordPressOnline: OAuth, OAuthPassword.

Option descriptions:

  • Basic: Use Basic user/password authentication. Recommended only for testing environments.
  • OAuth: Use standard OAuth 2.0 authentication flows.
  • OAuthClient: Use OAuth 2.0 Client Credentials grant type.
  • Okta: Use Okta SSO authentication.
  • PingFederate: Use PingFederate SSO authentication. Requires a valid license and customer-side configuration for validation.
  • AzureAD: Use Azure Active Directory (Entra ID) SSO authentication.
  • OAuthPassword: Use OAuth password authentication with the WordPressOnline schema.

CData Python Connector for WordPress

URL

The URL of your WordPress site. For WordPress schema, the URL is the base URL for the site for wordpress. For WordPressOnline schema URL is the Rest API BaseURL for the wordpress site, sample URL will be testdev.wordpress.com.

Data Type

string

Default Value

""

Remarks

The URL of your WordPress site. Required for both Basic and OAuth authentication.

CData Python Connector for WordPress

Schema

The Schema for the WordPress.

Possible Values

WordPressOnline, WordPress

Data Type

string

Default Value

"WordPress"

Remarks

The schemas available are WordPressOnline (to use WordPress REST API) and WordPress (to use WordPress OnPrem).

CData Python Connector for WordPress

User

Specifies the authenticating user's user ID.

Data Type

string

Default Value

""

Remarks

The authenticating server requires both User and Password to validate the user's identity.

CData Python Connector for WordPress

Password

Specifies the authenticating user's password.

Data Type

string

Default Value

""

Remarks

The authenticating server requires both User and Password to validate the user's identity.

CData Python Connector for WordPress

SSO

This section provides a complete list of the SSO properties you can configure in the connection string for this provider.


PropertyDescription
SSOLoginURLThe identity provider's login URL.
SSOPropertiesAdditional properties required to connect to the identity provider, formatted as a semicolon-separated list.
SSOExchangeURLThe URL used for consuming the SAML response and exchanging it for service specific credentials.
CData Python Connector for WordPress

SSOLoginURL

The identity provider's login URL.

Data Type

string

Default Value

""

Remarks

The identity provider's login URL.

CData Python Connector for WordPress

SSOProperties

Additional properties required to connect to the identity provider, formatted as a semicolon-separated list.

Data Type

string

Default Value

""

Remarks

Additional properties required to connect to the identity provider, formatted as a semicolon-separated list.

This is used with the SSOLoginURL.

SSO configuration is discussed further in Establishing a Connection.

CData Python Connector for WordPress

SSOExchangeURL

The URL used for consuming the SAML response and exchanging it for service specific credentials.

Data Type

string

Default Value

""

Remarks

The CData Python Connector for WordPress will use the URL specified here to consume a SAML response and exchange it for service specific credentials. The retrieved credentials are the final piece during the SSO connection that are used to communicate with WordPress.

CData Python Connector for WordPress

OAuth

This section provides a complete list of the OAuth properties you can configure in the connection string for this provider.


PropertyDescription
InitiateOAuthSpecifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.
OAuthClientIdSpecifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.
OAuthClientSecretSpecifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server. (Custom OAuth applications only.).
OAuthAccessTokenSpecifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.
OAuthSettingsLocationSpecifies the location of the settings file where OAuth values are saved.
CallbackURLIdentifies the URL users return to after authenticating to WordPress via OAuth (Custom OAuth applications only).
ScopeSpecifies the scope of the authenticating user's access to the application, to ensure they get appropriate access to data. If a custom OAuth application is needed, this is generally specified at the time the application is created.
OAuthVerifierSpecifies a verifier code returned from the OAuthAuthorizationURL . Used when authenticating to OAuth on a headless server, where a browser can't be launched. Requires both OAuthSettingsLocation and OAuthVerifier to be set.
OAuthRefreshTokenSpecifies the OAuth refresh token used to request a new access token after the original has expired.
OAuthExpiresInSpecifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.
OAuthTokenTimestampDisplays a Unix epoch timestamp in milliseconds that shows how long ago the current access token was created.
CData Python Connector for WordPress

InitiateOAuth

Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working.

Possible Values

OFF, REFRESH, GETANDREFRESH

Data Type

string

Default Value

"OFF"

Remarks

OAuth is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service. The OAuth flow defines the method to be used for:

  • Logging in users.
  • Exchanging user credentials for an OAuth access token to be used for authentication.
  • Providing limited access to applications.

The options for initiating and maintaining OAuth access are named for the parts of that flow that the connector handles:

OFF The connector provides no automatic OAuth flow initiation. The OAuth flow is handled entirely by the user.
This means that the user must refresh the token manually, and reconnect with an updated OAuthAccessToken property when the current token expires.
GETANDREFRESH The connector handles the entire OAuth flow (both GET and REFRESH). This means that if a token already exists, the connector refreshes it when necessary; if no token currently exists, the connector obtains it by prompting the user to login.
REFRESH The user obtains the OAuth Access Token and sets up the sequence for refreshing the OAuth Access Token. (The user is never prompted to log in to authenticate.) After the user logs in, the connector handles the refresh of the OAuth Access Token.

For more information on how to set up OAuth and use this property when configuring a connection, see Establishing a Connection.

CData Python Connector for WordPress

OAuthClientId

Specifies the client ID (also known as the consumer key) assigned to your custom OAuth application. This ID is required to identify the application to the OAuth authorization server during authentication.

Data Type

string

Default Value

""

Remarks

This property is required in two cases:

  • When using a custom OAuth application, such as in web-based authentication flows, service-based authentication, or certificate-based flows that require application registration.
  • If the driver does not provide embedded OAuth credentials.

(When the driver provides embedded OAuth credentials, this value may already be provided by the connector and thus not require manual entry.)

OAuthClientId is generally used alongside other OAuth-related properties such as OAuthClientSecret and OAuthSettingsLocation when configuring an authenticated connection.

OAuthClientId is one of the key connection parameters that need to be set before users can authenticate via OAuth. You can usually find this value in your identity provider’s application registration settings. Look for a field labeled Client ID, Application ID, or Consumer Key.

While the client ID is not considered a confidential value like a client secret, it is still part of your application's identity and should be handled carefully. Avoid exposing it in public repositories or shared configuration files.

For more information on how this property is used when configuring a connection, see Establishing a Connection.

CData Python Connector for WordPress

OAuthClientSecret

Specifies the client secret assigned to your custom OAuth application. This confidential value is used to authenticate the application to the OAuth authorization server. (Custom OAuth applications only.).

Data Type

string

Default Value

""

Remarks

This property (sometimes called the application secret or consumer secret) is required when using a custom OAuth application in any flow that requires secure client authentication, such as web-based OAuth, service-based connections, or certificate-based authorization flows. It is not required when using an embedded OAuth application.

The client secret is used during the token exchange step of the OAuth flow, when the driver requests an access token from the authorization server. If this value is missing or incorrect, authentication fails with either an invalid_client or an unauthorized_client error.

OAuthClientSecret is one of the key connection parameters that need to be set before users can authenticate via OAuth. You can obtain this value from your identity provider when registering the OAuth application.

Notes:

  • This value should be stored securely and never exposed in public repositories, scripts, or unsecured environments.
  • Client secrets may also expire after a set period. Be sure to monitor expiration dates and rotate secrets as needed to maintain uninterrupted access.

For more information on how this property is used when configuring a connection, see Establishing a Connection

CData Python Connector for WordPress

OAuthAccessToken

Specifies the OAuth access token used to authenticate requests to the data source. This token is issued by the authorization server after a successful OAuth exchange.

Data Type

string

Default Value

""

Remarks

OAuthAccessToken is a temporary credential that authorizes access to protected resources. It is typically returned by the identity provider after the user or client application completes an OAuth authentication flow. This property is most commonly used in automated workflows or custom OAuth implementations where you want to manage token handling outside of the driver.

The OAuth access token has a server-dependent timeout, limiting user access. The timeout is set using the OAuthExpiresIn property. However, it can be reissued between requests to keep access alive as long as the user keeps working.

If InitiateOAuth is set to REFRESH, we recommend that you also set both OAuthExpiresIn and OAuthTokenTimestamp. The connector uses these properties to determine when the token expires so it can refresh most efficiently. If OAuthExpiresIn and OAuthTokenTimestamp are not specified, the connector refreshes the token immediately.

Note: Access tokens should be treated as sensitive credentials and stored securely. Avoid exposing them in logs, scripts, or configuration files that are not access-controlled.

For more information on how this property is used when configuring a connection, see Establishing a Connection.

CData Python Connector for WordPress

OAuthSettingsLocation

Specifies the location of the settings file where OAuth values are saved.

Data Type

string

Default Value

"%APPDATA%\\CData\\Wordpress Data Provider\\OAuthSettings.txt"

Remarks

Storing OAuth settings in a central location avoids the need for users to enter OAuth connection properties manually each time they log in. It also enables credentials to be shared across connections or processes.

You can store OAuth values in a central file for shared access to those values, in either of the following ways:

  • Set InitiateOAuth to either GETANDREFRESH or REFRESH and specify a filepath to the OAuth settings file.
  • Use memory storage to load the credentials into static memory.

The following sections provide more detail on each of these methods.

Specifying the OAuthSettingsLocation Filepath

The default OAuth setting location is %APPDATA%\\CData\\Wordpress Data Provider\\OAuthSettings.txt, with %APPDATA% set to the user's configuration directory. Default values vary, depending on the user's operating system.

  • Windows (ODBC and Power BI): registry://%DSN%
  • Windows: %APPDATA%CDataWordpress Data Provider\OAuthSettings.txt
  • Mac: %APPDATA%/CData/Wordpress Data Provider/OAuthSettings.txt
  • Linux: %APPDATA%/CData/Wordpress Data Provider/OAuthSettings.txt

Loading Credentials Via Memory Storage

Memory locations are specified by using a value starting with memory://, followed by a unique identifier for that set of credentials (for example, memory://user1). The identifier can be anything you choose, but it should be unique to the user.

Unlike file-based storage, where credentials persist across connections, memory storage loads the credentials into static memory and the credentials are shared between connections using the same identifier for the life of the process. To persist credentials outside the current process, you must manually store the credentials prior to closing the connection. This enables you to set them in the connection when the process is started again.

To retrieve OAuth property values, query the sys_connection_props system table. If there are multiple connections using the same credentials, the properties are read from the previously closed connection.

Supported Storage Types

  • memory://: Stores OAuth tokens in-memory (unique identifier, shared within same process, etc.)
  • registry://: Only supported in the Windows ODBC and Power BI editions. Stores OAuth tokens in the registry under the DSN settings. Must end in a DSN name like registry://CData Python Connector for WordPress Data Source, or registry://%DSN%.
  • %DSN%: The name of the DSN you are connecting with.
  • Default (no prefix): Stores OAuth tokens within files. The value can be either an absolute path, or a path starting with %APPDATA% or %PROGRAMFILES%.

For more information on how this property is used when configuring a connection, see Establishing a Connection.

CData Python Connector for WordPress

CallbackURL

Identifies the URL users return to after authenticating to WordPress via OAuth (Custom OAuth applications only).

Data Type

string

Default Value

""

Remarks

If you created a custom OAuth application, the OAuth authorization server redirects the user to this URL during the authentication process. This value must match the callback URL you specified when you configured the custom OAuth application.

CData Python Connector for WordPress

Scope

Specifies the scope of the authenticating user's access to the application, to ensure they get appropriate access to data. If a custom OAuth application is needed, this is generally specified at the time the application is created.

Data Type

string

Default Value

""

Remarks

Scopes are set to define what kind of access the authenticating user will have; for example, read, read and write, restricted access to sensitive information. System administrators can use scopes to selectively enable access by functionality or security clearance.

When InitiateOAuth is set to GETANDREFRESH, you must use this property if you want to change which scopes are requested.

When InitiateOAuth is set to either REFRESH or OFF, you can change which scopes are requested using either this property or the Scope input.

CData Python Connector for WordPress

OAuthVerifier

Specifies a verifier code returned from the OAuthAuthorizationURL . Used when authenticating to OAuth on a headless server, where a browser can't be launched. Requires both OAuthSettingsLocation and OAuthVerifier to be set.

Data Type

string

Default Value

""

Remarks

For detailed instructions about how to obtain the OAuthVerifier value, see Establishing a Connection.

CData Python Connector for WordPress

OAuthRefreshToken

Specifies the OAuth refresh token used to request a new access token after the original has expired.

Data Type

string

Default Value

""

Remarks

The refresh token is used to obtain a new access token when the current one expires. It enables seamless authentication for long-running or automated workflows without requiring the user to log in again. This property is especially important in headless, CI/CD, or server-based environments where interactive authentication is not possible.

The refresh token is typically obtained during the initial OAuth exchange by calling the GetOAuthAccessToken stored procedure. After that, it can be set using this property to enable automatic token refresh, or passed to the RefreshOAuthAccessTokenproc; stored procedure if you prefer to manage the refresh manually.

When InitiateOAuth is set to REFRESH, the driver uses this token to retrieve a new access token automatically. After the first refresh, the driver saves updated tokens in the location defined by OAuthSettingsLocation, and uses those values for subsequent connections.

Note: The OAuthRefreshToken should be handled securely and stored in a trusted location. Like access tokens, refresh tokens can expire or be revoked depending on the identity provider’s policies.

For more information on how this property is used when configuring a connection, see Establishing a Connection.

CData Python Connector for WordPress

OAuthExpiresIn

Specifies the duration in seconds, of an OAuth Access Token's lifetime. The token can be reissued to keep access alive as long as the user keeps working.

Data Type

string

Default Value

""

Remarks

The OAuth Access Token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.

An access token created by the server is only valid for a limited time. OAuthExpiresIn is the number of seconds the token is valid from when it was created. For example, a token generated at 2024-01-29 20:00:00 UTC that expires at 2024-01-29 21:00:00 UTC (an hour later) would have an OAuthExpiresIn value of 3600, no matter what the current time is.

To determine how long the user has before the Access Token will expire, check OAuthTokenTimestamp.

CData Python Connector for WordPress

OAuthTokenTimestamp

Displays a Unix epoch timestamp in milliseconds that shows how long ago the current access token was created.

Data Type

string

Default Value

""

Remarks

The OAuth access token is assigned to an authenticated user, granting that user access to the network for a specified period of time. The access token is used in place of the user's login ID and password, which stay on the server.

An access token created by the server is only valid for a limited time. OAuthTokenTimestamp is the Unix timestamp when the server created the token. For example, OAuthTokenTimestamp=1706558400 indicates the OAuthAccessToken was generated by the server at 2024-01-29 20:00:00 UTC.

CData Python Connector for WordPress

SSL

This section provides a complete list of the SSL properties you can configure in the connection string for this provider.


PropertyDescription
SSLServerCertSpecifies the certificate to be accepted from the server when connecting using TLS/SSL.
CData Python Connector for WordPress

SSLServerCert

Specifies the certificate to be accepted from the server when connecting using TLS/SSL.

Data Type

string

Default Value

""

Remarks

If you are using a TLS/SSL connection, use this property to specify the TLS/SSL certificate to be accepted from the server. If you specify a value for this property, all other certificates that are not trusted by the machine are rejected.

This property can take the following forms:

Description Example
A full PEM Certificate (example shortened for brevity) -----BEGIN CERTIFICATE-----
MIIChTCCAe4CAQAwDQYJKoZIhv......Qw==
-----END CERTIFICATE-----
A path to a local file containing the certificate C:\cert.cer
The public key (example shortened for brevity) -----BEGIN RSA PUBLIC KEY-----
MIGfMA0GCSq......AQAB
-----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space- or colon-separated) ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space- or colon-separated) 34a929226ae0819f2ec14b4a3d904f801cbb150d

Note: It is possible to use '*' to signify that all certificates should be accepted, but due to security concerns this is not recommended.

CData Python Connector for WordPress

Firewall

This section provides a complete list of the Firewall properties you can configure in the connection string for this provider.


PropertyDescription
FirewallTypeSpecifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.
FirewallServerIdentifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.
FirewallPortSpecifies the TCP port to be used for a proxy-based firewall.
FirewallUserIdentifies the user ID of the account authenticating to a proxy-based firewall.
FirewallPasswordSpecifies the password of the user account authenticating to a proxy-based firewall.
CData Python Connector for WordPress

FirewallType

Specifies the protocol the provider uses to tunnel traffic through a proxy-based firewall.

Possible Values

NONE, TUNNEL, SOCKS4, SOCKS5

Data Type

string

Default Value

"NONE"

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

Note: By default, the connector connects to the system proxy. To disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.

The following table provides port number information for each of the supported protocols.

Protocol Default Port Description
TUNNEL 80 The port where the connector opens a connection to WordPress. Traffic flows back and forth via the proxy at this location.
SOCKS4 1080 The port where the connector opens a connection to WordPress. SOCKS 4 then passes theFirewallUser value to the proxy, which determines whether the connection request should be granted.
SOCKS5 1080 The port where the connector sends data to WordPress. If the SOCKS 5 proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.

To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.

CData Python Connector for WordPress

FirewallServer

Identifies the IP address, DNS name, or host name of a proxy used to traverse a firewall and relay user queries to network resources.

Data Type

string

Default Value

""

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

CData Python Connector for WordPress

FirewallPort

Specifies the TCP port to be used for a proxy-based firewall.

Data Type

int

Default Value

0

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

CData Python Connector for WordPress

FirewallUser

Identifies the user ID of the account authenticating to a proxy-based firewall.

Data Type

string

Default Value

""

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

CData Python Connector for WordPress

FirewallPassword

Specifies the password of the user account authenticating to a proxy-based firewall.

Data Type

string

Default Value

""

Remarks

A proxy-based firewall (or proxy firewall) is a network security device that acts as an intermediary between user requests and the resources they access. The proxy accepts the request of an authenticated user, tunnels through the firewall, and transmits the request to the appropriate server.

Because the proxy evaluates and transfers data backets on behalf of the requesting users, the users never connect directly with the servers, only with the proxy.

CData Python Connector for WordPress

Proxy

This section provides a complete list of the Proxy properties you can configure in the connection string for this provider.


PropertyDescription
ProxyAutoDetectSpecifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.
ProxyServerIdentifies the hostname or IP address of the proxy server through which you want to route HTTP traffic.
ProxyPortIdentifies the TCP port on your specified proxy server that has been reserved for routing HTTP traffic to and from the client.
ProxyAuthSchemeSpecifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.
ProxyUserProvides the username of a user account registered with the proxy server specified in the ProxyServer connection property.
ProxyPasswordSpecifies the password of the user specified in the ProxyUser connection property.
ProxySSLTypeSpecifies the SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.
ProxyExceptionsSpecifies a semicolon-separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.
CData Python Connector for WordPress

ProxyAutoDetect

Specifies whether the provider checks your system proxy settings for existing proxy server configurations, rather than using a manually specified proxy server.

Data Type

bool

Default Value

true

Remarks

When this connection property is set to True, the connector checks your system proxy settings for existing proxy server configurations (no need to manually supply proxy server details).

This connection property takes precedence over other proxy settings. If you want to configure the connector to connect to a specific proxy server, set ProxyAutoDetect to False.

On Windows, the connector reads the proxy settings from the Internet Options in the registry, specifically the registry key HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\. On Windows 10 and later, this corresponds to the Proxy Settings found in the Windows Settings.

Note that these settings apply only to the current user of the machine. If you're running an application as a service, the connector does not read your own user's settings. You must instead manually supply the proxy settings in the connector's connection properties.

On Mac, the connector reads proxy settings from the system-configured CFNetwork settings.

On Linux, this property is unsupported, and is set to False by default.

To connect to an HTTP proxy, see ProxyServer. For other proxies, such as SOCKS or tunneling, see FirewallType.

CData Python Connector for WordPress

ProxyServer

Identifies the hostname or IP address of the proxy server through which you want to route HTTP traffic.

Data Type

string

Default Value

""

Remarks

The connector only routes HTTP traffic through the proxy server specified in this connection property when ProxyAutoDetect is set to False.

If ProxyAutoDetect is set to True (the default), the connector instead routes HTTP traffic through the proxy server specified in your system proxy settings.

CData Python Connector for WordPress

ProxyPort

Identifies the TCP port on your specified proxy server that has been reserved for routing HTTP traffic to and from the client.

Data Type

int

Default Value

80

Remarks

The connector only routes HTTP traffic through the ProxyServer port specified in this connection property when ProxyAutoDetect is set to False.

If ProxyAutoDetect is set to True (the default), the connector instead routes HTTP traffic through the proxy server port specified in your system proxy settings.

For other proxy types, see FirewallType.

CData Python Connector for WordPress

ProxyAuthScheme

Specifies the authentication method the provider uses when authenticating to the proxy server specified in the ProxyServer connection property.

Possible Values

BASIC, DIGEST, NONE, NEGOTIATE, NTLM

Data Type

string

Default Value

"BASIC"

Remarks

Note: The connector only uses this ProxyAuthScheme when ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True (the default), the connector instead uses the authentication method specified in your system proxy settings.

Supported authentication types :

  • BASIC: The connector performs HTTP basic authentication.
  • DIGEST: The connector performs HTTP digest authentication.
  • NTLM: The connector retrieves an NTLM token.
  • NEGOTIATE: The connector retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
  • NONE: Signifies that the ProxyServer does not require authentication.

For all values other than NONE, you must also set the ProxyUser and ProxyPassword connection properties.

If you need to use another authentication type, such as SOCKS 5 authentication, see FirewallType.

CData Python Connector for WordPress

ProxyUser

Provides the username of a user account registered with the proxy server specified in the ProxyServer connection property.

Data Type

string

Default Value

""

Remarks

The ProxyUser and ProxyPassword connection properties are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

After selecting one of the available authentication types in ProxyAuthScheme, set this property as follows:

ProxyAuthScheme Value Value to set for ProxyUser
BASIC The username of a user registered with the proxy server.
DIGEST The username of a user registered with the proxy server.
NEGOTIATE The username of a Windows user who is a valid user in the domain or trusted domain that the proxy server is part of, in the format user@domain or domain\user.
NTLM The username of a Windows user who is a valid user in the domain or trusted domain that the proxy server is part of, in the format user@domain or domain\user.
NONE Do not set the ProxyPassword connection property.

Note: The connector only uses this username if ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True (the default), the connector instead uses the username specified in your system proxy settings.

CData Python Connector for WordPress

ProxyPassword

Specifies the password of the user specified in the ProxyUser connection property.

Data Type

string

Default Value

""

Remarks

The ProxyUser and ProxyPassword connection properties are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

After selecting one of the available authentication types in ProxyAuthScheme, set this property as follows:

ProxyAuthScheme Value Value to set for ProxyPassword
BASIC The password associated with the proxy server user specified in ProxyUser.
DIGEST The password associated with the proxy server user specified in ProxyUser.
NEGOTIATE The password associated with the Windows user account specified in ProxyUser.
NTLM The password associated with the Windows user account specified in ProxyUser.
NONE Do not set the ProxyPassword connection property.

For SOCKS 5 authentication or tunneling, see FirewallType.

Note: The connector only uses this password if ProxyAutoDetect is set to False. If ProxyAutoDetect is set to True (the default), the connector instead uses the password specified in your system proxy settings.

CData Python Connector for WordPress

ProxySSLType

Specifies the SSL type to use when connecting to the proxy server specified in the ProxyServer connection property.

Possible Values

AUTO, ALWAYS, NEVER, TUNNEL

Data Type

string

Default Value

"AUTO"

Remarks

This property determines when to use SSL for the connection to the HTTP proxy specified by ProxyServer. You can set this connection property to the following values :

AUTODefault setting. If ProxyServer is set to an HTTPS URL, the connector uses the TUNNEL option. If ProxyServer is set to an HTTP URL, the component uses the NEVER option.
ALWAYSThe connection is always SSL enabled.
NEVERThe connection is not SSL enabled.
TUNNELThe connection is made through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.

CData Python Connector for WordPress

ProxyExceptions

Specifies a semicolon-separated list of destination hostnames or IPs that are exempt from connecting through the proxy server set in the ProxyServer connection property.

Data Type

string

Default Value

""

Remarks

The ProxyServer is used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.

Note: The connector uses the system proxy settings by default, without further configuration needed. If you want to explicitly configure proxy exceptions for this connection, set ProxyAutoDetect to False.

CData Python Connector for WordPress

Logging

This section provides a complete list of the Logging properties you can configure in the connection string for this provider.


PropertyDescription
LogfileSpecifies the file path to the log file where the provider records its activities, such as authentication, query execution, and connection details.
VerbositySpecifies the verbosity level of the log file, which controls the amount of detail logged. Supported values range from 1 to 5.
LogModulesSpecifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.
MaxLogFileSizeSpecifies the maximum size of a single log file in bytes. For example, '10 MB'. When the file reaches the limit, the provider creates a new log file with the date and time appended to the name.
MaxLogFileCountSpecifies the maximum number of log files the provider retains. When the limit is reached, the oldest log file is deleted to make space for a new one.
CData Python Connector for WordPress

Logfile

Specifies the file path to the log file where the provider records its activities, such as authentication, query execution, and connection details.

Data Type

string

Default Value

""

Remarks

This property specifies the location and name of the log file where the connector records its operations, including authentication events, query execution, and connection details. If the specified file does not exist, the connector creates it. Ensure that the user or the service running the connector has write access to the specified path or file. Without sufficient permissions, the log file is not created.

Sensitive information from the connection string, such as passwords and tokens, is automatically masked in the logs. However, sensitive information present in the data itself may not be masked.

If you specify a relative path for Logfile, and if the Location property is set, that directory is used as the base path for the log file.

Additional properties allow you to customize logging behavior:

CData Python Connector for WordPress

Verbosity

Specifies the verbosity level of the log file, which controls the amount of detail logged. Supported values range from 1 to 5.

Data Type

string

Default Value

"1"

Remarks

This property defines the level of detail the connector includes in the log file. Higher verbosity levels increase the detail of the logged information, but may also result in larger log files and slower performance due to the additional data being captured.

The default verbosity level is 1, which is recommended for regular operation. Higher verbosity levels are primarily intended for debugging purposes. For more information on each level, refer to Logging.

When combined with the LogModules property, Verbosity can refine logging to specific categories of information.

CData Python Connector for WordPress

LogModules

Specifies the core modules to include in the log file. Use a semicolon-separated list of module names. By default, all modules are logged.

Data Type

string

Default Value

""

Remarks

The connector writes details about each operation it performs into the logfile specified by the Logfile connection property.

Each of these logged operations are assigned to a themed category called a module, and each module has a corresponding short code used to labels individual connector operations as belonging to that module.

When this connection property is set to a semicolon-separated list of module codes, only operations belonging to the specified modules are written to the logfile. Note that this only affects which operations are logged moving forward and doesn't retroactively alter the existing contents of the logfile. For example: INFO;EXEC;SSL;META;

By default, logged operations from all modules are included.

You can explicitly exclude a module by prefixing it with a "-". For example: -HTTP

To apply filters to submodules, identify them with the syntax <module name>.<submodule name>. For example, the following value causes the connector to only log actions belonging to the HTTP module, and further refines it to exclude actions belonging to the Res submodule of the HTTP module: HTTP;-HTTP.Res

Note that the logfile filtering triggered by the Verbosity connection property takes precedence over the filtering imposed by this connection property. This means that operations of a higher verbosity level than the level specified in the Verbosity connection property are not printed in the logfile, even if they belong to one of the modules specified in this connection property.

The available modules and submodules are:

Module Name Module Description Submodules
INFO General Information. Includes the connection string, product version (build number), and initial connection messages.
  • Connec – Information related to creating or destroying connections.
  • Messag – Generic label for messages pertaining to connections, the connection string, and product version. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
EXEC Query Execution. Includes execution messages for user-written SQL queries, parsed SQL queries, and normalized SQL queries. Success/failure messages for queries and query pages appear here as well.
  • Messag – Messages pertaining to query execution. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • Normlz – Query normalization steps. Query normalization is when the product takes the user-submitted query and rewrites the query to get the same results with optimal performance.
  • Origin – This label applies to any messages recording a user's original query (the exact, unaltered, non-normalized query executed by the user).
  • Page – Messages related to query paging.
  • Parsed – Query parsing steps. Parsing is the process of converting the user-submitted query into a standardized format for easier processing.
HTTP HTTP protocol messages. Includes HTTP requests/responses (including POST messages), as well as Kerberos related messages.
  • KERB – HTTP requests related to Kerberos.
  • Messag – Messages pertaining to HTTP protocols. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • Unpack – This label applies to messages about zipped data being returned from the service API and unpacked by the product.
  • Res – Messages containing HTTP responses.
  • Req – Messages containing HTTP requests.
WSDL Messages pertaining to the generation of WSDL/XSD files.
SSL SSL certificate messages.
  • Certif – Messages pertaining to SSL certificates.
AUTH Authentication related failure/success messages.
  • Messag – Messages pertaining to authentication. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • OAuth – Messages related to OAuth authentication.
  • Krbros – Kerberos-related authentication messages.
SQL Includes SQL transactions, SQL bulk transfer messages, and SQL result set messages.
  • Bulk – Messages pertaining to bulk query execution.
  • Cache – Messages related to reading row data from and writing row data to the product's cache for better performance.
  • Messag – Messages pertaining to SQL transactions. These messages are typically specific to the connector, rather than being received and passed along directly from the service.
  • ResSet – Query resultsets.
  • Transc – Messages related to handling transactions, including information about the number of jobs executed and backup table handling.
META Metadata cache and schema messages.
  • Cache – Messages related to reading from and modifying column and table definitions in the product's cache for better performance.
  • Schema – Messages related to retrieving metadata from or modifying the service schema.
  • MemSto – Messages related to writing to or reading from in-memory metadata cache.
  • Storag – Messages relating to storing metadata on disk or in an external data store, rather than in memory.
FUNC Information related to executing SQL functions.
  • Errmsg – Error messages related to executing SQL functions.
TCP Incoming and outgoing raw bytes on TCP transport layer messages.
  • Send – Raw data sent via the TCP protocol.
  • Receiv – Raw data received via the TCP protocol.
FTP Messages pertaining to the File Transfer Protocol.
  • Info – Status messages related to communication in the FTP protocol.
  • Client – Messages related to actions taken by the FTP client (the product) during FTP communication.
  • Server – Messages related to actions taken by the FTP server during FTP communication.
SFTP Messages pertaining to the Secure File Transfer Protocol.
  • Info – Status messages related to communication in the SFTP protocol.
  • To_Server – Messages related to actions taken by the SFTP client (the product) during SFTP communication.
  • From_Server – Messages related to actions taken by the SFTP server during SFTP communication.
POP Messages pertaining to data transferred via the Post Office Protocol.
  • Client – Messages related to actions taken by the POP client (the product) during POP communication.
  • Server – Messages related to actions taken by the POP server during POP communication.
  • Status – Status messages related to communication in the POP protocol.
SMTP Messages pertaining to data transferred via the Simple Mail Transfer Protocol.
  • Client – Messages related to actions taken by the SMTP client (the product) during SMTP communication.
  • Server – Messages related to actions taken by the SMTP server during SMTP communication.
  • Status – Status messages related to communication in the SMTP protocol.
CORE Messages relating to various internal product operations not covered by other modules.
DEMN Messages related to SQL remoting.
CLJB Messages about bulk data uploads (cloud job).
  • Commit – Submissions for bulk data uploads.
SRCE Miscellaneous messages produced by the product that don't belong in any other module.
TRANCE Advanced messages concerning low-level product operations.

CData Python Connector for WordPress

MaxLogFileSize

Specifies the maximum size of a single log file in bytes. For example, '10 MB'. When the file reaches the limit, the provider creates a new log file with the date and time appended to the name.

Data Type

string

Default Value

"100MB"

Remarks

For values lower than 100 KB, the connector uses 100 KB as the minimum allowable size.

To control the total number of log files retained, use the MaxLogFileCount property in conjunction with this property. Together, these properties allow you to manage the size and retention of log files effectively.

CData Python Connector for WordPress

MaxLogFileCount

Specifies the maximum number of log files the provider retains. When the limit is reached, the oldest log file is deleted to make space for a new one.

Data Type

int

Default Value

-1

Remarks

Each log file name includes the date and time for easier identification.

This property accepts the following values:

  • A value of 2 or higher sets the maximum number of log files retained.
  • A value of 1 retains only one log file. When it reaches the maximum size, the file is deleted and replaced by a new one, leaving no history beyond the current log.
  • A value of 0 or negative indicates no limit on the number of log files, and logging continues indefinitely.

To manage log file size, use the MaxLogFileSize property. The two properties work together to control the size and retention of log files in the logging folder.

CData Python Connector for WordPress

Schema

This section provides a complete list of the Schema properties you can configure in the connection string for this provider.


PropertyDescription
LocationSpecifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.
BrowsableSchemasOptional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .
TablesOptional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .
ViewsOptional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .
CData Python Connector for WordPress

Location

Specifies the location of a directory containing schema files that define tables, views, and stored procedures. Depending on your service's requirements, this may be expressed as either an absolute path or a relative path.

Data Type

string

Default Value

"%APPDATA%\\CData\\Wordpress Data Provider\\Schema"

Remarks

The Location property is only needed if you want to either customize definitions (for example, change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.

If left unspecified, the default location is %APPDATA%\\CData\\Wordpress Data Provider\\Schema, where %APPDATA% is set to the user's configuration directory:

Platform %APPDATA%
Windows The value of the APPDATA environment variable
Linux ~/.config

CData Python Connector for WordPress

BrowsableSchemas

Optional setting that restricts the schemas reported to a subset of all available schemas. For example, BrowsableSchemas=SchemaA,SchemaB,SchemaC .

Data Type

string

Default Value

""

Remarks

Listing all available database schemas can take extra time, thus degrading performance. Providing a list of schemas in the connection string saves time and improves performance.

CData Python Connector for WordPress

Tables

Optional setting that restricts the tables reported to a subset of all available tables. For example, Tables=TableA,TableB,TableC .

Data Type

string

Default Value

""

Remarks

Listing all available tables from some databases can take extra time, thus degrading performance. Providing a list of tables in the connection string saves time and improves performance.

If there are lots of tables available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those tables. To do this, specify the tables you want in a comma-separated list. Each table should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space`.

Note: If you are connecting to a data source with multiple schemas or catalogs, you must specify each table you want to view by its fully qualified name. This avoids ambiguity between tables that may exist in multiple catalogs or schemas.

CData Python Connector for WordPress

Views

Optional setting that restricts the views reported to a subset of the available tables. For example, Views=ViewA,ViewB,ViewC .

Data Type

string

Default Value

""

Remarks

Listing all available views from some databases can take extra time, thus degrading performance. Providing a list of views in the connection string saves time and improves performance.

If there are lots of views available and you already know which ones you want to work with, you can use this property to restrict your viewing to only those views. To do this, specify the views you want in a comma-separated list. Each view should be a valid SQL identifier with any special characters escaped using square brackets, double-quotes or backticks. For example, Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space`.

Note: If you are connecting to a data source with multiple schemas or catalogs, you must specify each view you want to examine by its fully qualified name. This avoids ambiguity between views that may exist in multiple catalogs or schemas.

CData Python Connector for WordPress

Caching

This section provides a complete list of the Caching properties you can configure in the connection string for this provider.


PropertyDescription
AutoCacheSpecifies whether the content of tables targeted by SELECT queries is automatically cached to the specified cache database.
CacheProviderThe namespace of an ADO.NET provider. The specified provider is used as the target database for all caching operations.
CacheDriverThe driver class of a JDBC driver. The specified driver is used to connect to the target database for all caching operations.
CacheConnectionSpecifies the connection string for the specified cache database.
CacheLocationSpecifies the path to the cache when caching to a file.
CacheToleranceNotes the tolerance, in seconds, for stale data in the specified cache database. Requires AutoCache to be set to True.
OfflineGets the data from the specified cache database instead of live WordPress data.
CacheMetadataDetermines whether the provider caches table metadata to a file-based cache database.
CData Python Connector for WordPress

AutoCache

Specifies whether the content of tables targeted by SELECT queries is automatically cached to the specified cache database.

Data Type

bool

Default Value

false

Remarks

When this connection property is set to True, the connector automatically caches the contents of tables targeted by SELECT queries. The content of these tables is cached to the cache database specified by the CacheConnection and CacheProvider connection properties.

See Also

For additional information, see:

  • CacheMetadata: With CacheMetadata enabled, all retrieved metadata is mirrored in the cache database. This means that any subsequent attempts by the connector to discover metadata are much faster, as this metadata is then read directly from the cache database, without needing to spend time requesting metadata from WordPress.
  • Explicitly Caching Data: This topic provides examples for using AutoCache in Offline mode.
  • CACHE Statements: You can use the CACHE statement to explicitly cache the content of any table targeted by a SELECT query.

CData Python Connector for WordPress

CacheProvider

The namespace of an ADO.NET provider. The specified provider is used as the target database for all caching operations.

Data Type

string

Default Value

""

Remarks

You can cache to ADO.NET providers saved in your ADO.NET global assembly cache (GAC).

CData ADO.NET providers automatically register themselves with the GAC during installation, so you don't need to do so manually.

Third-party ADO.NET providers may or may not automatically register themselves with the GAC during installation. If you want to cache to a third-party ADO.NET provider, consult the documentation for that provider to determine what steps (if any) you must take to register them with the GAC. Once they have been registered, you can supply their namespace in this connection property.

You must also set the CacheConnection connection property to provide a connection string for the specified ADO.NET provider.

The following sections show connection examples and address other requirements for several popular database providers. Refer to CacheConnection for more information on typical connection properties.

SQLite

You can use the Microsoft ADO.NET Provider for SQLite to cache to SQLite databases.

CacheProvider=Microsoft.Data.Sqlite;CacheConnection='DataSource=C:\\Users\\Public\\cache.db;'URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

MySQL

To cache to MySQL, you can use the CData ADO.NET Provider for MySQL:
Cache Provider=System.Data.CData.MySQL;Cache Connection='Server=localhost;Port=3306;Database=cache;User=root;Password=123456';User=myUser;Password=myPassword;Security Token=myToken;

SQL Server

You can use the Microsoft .NET Framework Provider for SQL Server, included in the .NET Framework, to cache to SQL Server:

Cache Provider=System.Data.SqlClient;Cache Connection="Server=MyMACHINE\MyInstance;Database=SQLCACHE;User Id=root;Password=admin";URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

Oracle

To cache to Oracle, you can use the Oracle Data Provider for .NET, as shown in the following example:

Cache Provider=Oracle.DataAccess.Client;Cache Connection='User Id=scott;Password=tiger;Data Source=ORCL';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

The Oracle Data Provider for .NET also requires the Oracle Database Client. When you download the Oracle Database Client, ensure that its bitness matches the bitness of your machine. When you install, select either the Runtime or Administrator installation type. The Instant Client is not sufficient.

PostgreSQL

To cache to PostgreSQL, you can use the CData ADO.NET Provider for PostgreSQL:
Cache Provider=System.Data.CData.PostgreSQL;Cache Connection='Server=localhost;Port=5432;Database=cache;User=postgres;Password=123456';User=myUser;Password=myPassword;Security Token=myToken;

CData Python Connector for WordPress

CacheDriver

The driver class of a JDBC driver. The specified driver is used to connect to the target database for all caching operations.

Data Type

string

Default Value

""

Remarks

You can cache to any database for which you have a JDBC driver, including CData JDBC drivers.

Note: You must add the JAR file of the specified JDBC driver to the classpath. For CData JDBC drivers, you can find this JAR file in the "lib" subfolder of that driver's installation directory.

You must also set the CacheConnection connection property to provide a connection string for the specified JDBC driver.

For Linux systems and macOS, you need to create a config.ini file on the installation path of the driver (site-packages/cdata). The config.ini file has the following format (the driver and the path of the JDBC driver):

[salesforce.cpython-38-x86_64-linux-gnu.so]
CLASSPATH = /home/usrname/Downloads/lib/cdata.jdbc.postgresql.jar

Examples

The following examples show how to cache to several major databases. For more information on the JDBC URL syntax and typical connection properties, see CacheConnection.

Derby and Java DB

Java DB is the Oracle distribution of Derby. You must add the Derby JDBC driver's JAR file, derbytools.jar, to your classpath to cache to Java DB.

The Derby JDBC driver's JAR file is bundled in db-derby-10.17.1.0-bin.zip, which you can download from this page. You can find derbytools.jar in the "lib" subfolder of this zip file.

After adding derbytools.jar to the classpath, you can cache to a Java DB database as follows:

jdbc:wordpress:CacheDriver=org.apache.derby.jdbc.EmbeddedDriver;CacheConnection='jdbc:derby:sample';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;
To cache to an in-memory database, use a JDBC URL like the following:
jdbc:wordpress:CacheDriver=org.apache.derby.jdbc.EmbeddedDriver;CacheConnection='jdbc:derby:memory';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

SQLite

The following is a JDBC URL for the SQLite JDBC driver:

jdbc:wordpress:CacheDriver=org.sqlite.JDBC;CacheConnection='jdbc:sqlite:C:/Temp/sqlite.db';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

MySQL

The following is a JDBC URL for the CData JDBC Driver for MySQL:

  jdbc:wordpress:Cache Driver=cdata.jdbc.mysql.MySQLDriver;Cache Connection='jdbc:mysql:Server=localhost;Port=3306;Database=cache;User=root;Password=123456';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;
  

SQL Server

The following JDBC URL uses the Microsoft JDBC Driver for SQL Server:

jdbc:wordpress:Cache Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver;Cache Connection='jdbc:sqlserver://localhost\sqlexpress:7437;user=sa;password=123456;databaseName=Cache';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

Oracle

The following is a JDBC URL for the Oracle Thin Client:

jdbc:wordpress:Cache Driver=oracle.jdbc.OracleDriver;CacheConnection='jdbc:oracle:thin:scott/tiger@localhost:1521:orcldb';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;
NOTE: If using a version of Oracle older than 9i, the cache driver will instead be oracle.jdbc.driver.OracleDriver .

PostgreSQL

The following JDBC URL uses the official PostgreSQL JDBC driver:

jdbc:wordpress:CacheDriver=cdata.jdbc.postgresql.PostgreSQLDriver;CacheConnection='jdbc:postgresql:User=postgres;Password=admin;Database=postgres;Server=localhost;Port=5432;';URL=http://www.yourwordpresshost.com;User=yourUsername;Password=yourPassword;

CData Python Connector for WordPress

CacheConnection

Specifies the connection string for the specified cache database.

Data Type

string

Default Value

""

Remarks

The target cache database is determined by a combination of this connection property and the CacheProvider connection property. Both properties are required to use the specified cache database.

The connection string specified in this connection property is passed directly to the specified in the CacheProvider connection property. Consult the documentation for the specified for more information on its available connection properties.

Examples of common cache database settings can be found below.

SQLite

MySQL

The following are typical connection properties:

  • Server: The IP address or domain name of the server hosting the MySQL database that you want to cache to.
  • Port: The port on the specified server where your MySQL instance is running.
  • Database: The name of the MySQL database that you want to cache to. Must match the name of a MySQL database hosted on the specified server.
  • User: The username of a user registered with the selected MySQL database.
  • Password: The password associated with the specified MySQL user.

SQL Server

The following are typical SQL Server connection properties:

  • Server: The name or network address of the computer running SQL Server. To connect to a named instance instead of the default instance, specify the host name and the instance name, separated by a backslash.
  • Port: The port on the specified server where your SQL Server instance is running.
  • Database: The name of the SQL Server database you want to cache to. Must match the name of a SQL Server database hosted on the specified server.
  • Integrated Security: To use the current Windows account for authentication, set this option to True. To authenticate with User and Password instead, set this option to False.
  • User Id: The username of a user registered with the selected SQL Server database. This property is only needed if you are not using integrated security.
  • Password: The password associated with the specified SQL Server user. This property is only needed if you are not using integrated security.

Oracle

The following are typical connection properties:

  • Data Source: The connect descriptor that identifies the Oracle database. This can be a TNS connect descriptor, an Oracle Net Services name that resolves to a connect descriptor, or, after version 11g, an Easy Connect naming (the host name of the Oracle server with an optional port and service name).

  • User Id: The username of a user registered with the selected Oracle database.
  • Password: The password associated with the specified Oracle user.

PostgreSQL

The following are typical connection properties:

  • Host: The address of the server hosting the PostgreSQL database.
  • Port: The port on the specified host server where your PostgreSQL database is hosted.
  • Database: The name of the PostgreSQL database you want to cache to. Must match the name of a PostgreSQL database hosted on the specified server.
  • User name: The username of a user registered with the selected PostgreSQL database.
  • Password: The password associated with the specified user.

CData Python Connector for WordPress

CacheLocation

Specifies the path to the cache when caching to a file.

Data Type

string

Default Value

"%APPDATA%\\CData\\Wordpress Data Provider"

Remarks

The CacheLocation is a simple, file-based cache.

If left unspecified, the default location is %APPDATA%\\CData\\Wordpress Data Provider, where %APPDATA% is set to the user's configuration directory:

Platform %APPDATA%
Windows The value of the APPDATA environment variable
Linux ~/.config

See Also

  • AutoCache: Set to implicitly create and maintain a cache for later offline use.
  • CacheMetadata: Set to persist the WordPress catalog in CacheLocation.

CData Python Connector for WordPress

CacheTolerance

Notes the tolerance, in seconds, for stale data in the specified cache database. Requires AutoCache to be set to True.

Data Type

int

Default Value

600

Remarks

When you execute a query for tables in the cache, the connector checks the time elapsed since the last update to the cache.

If the last update to the cache is older than the value of this connection property (measured in seconds), the connector refreshes the cache.

Otherwise, the connector returns data directly from the cache.

CData Python Connector for WordPress

Offline

Gets the data from the specified cache database instead of live WordPress data.

Data Type

bool

Default Value

false

Remarks

When this connection property is set to True, all queries execute against the cache database instead of the live WordPress data.

In this mode, some SQL operations like INSERT, UPDATE, DELETE, and CACHE are disabled.

CData Python Connector for WordPress

CacheMetadata

Determines whether the provider caches table metadata to a file-based cache database.

Data Type

bool

Default Value

false

Remarks

When this connection property is set to True, as you execute queries, table metadata in the WordPress catalog is cached to the cache database specified by CacheConnection and CacheProvider, or, if those connection properties are not set, to the user's home directory.

The location of your home directory varies by platform:

PlatformHome Directory
Windows %APPDATA%\\CData\\Wordpress Data Provider
Mac ~/Library/Application Support/CData/Wordpress Data Provider
Unix ~/.config/CData/Wordpress Data Provider

A table's metadata is retrieved only once, when the table is queried for the first time.

When to Use CacheMetadata

When there are a large number of WordPress tables and columns for the connector to retrieve during metadata discovery, the connector may take a while to list all table metadata.

You may experience slow metadata retrieval when:

  • Your WordPress instance naturally has a large table count.
  • The connector has been configured, via its connection properties, to discover more tables than it would under its default configuration.
  • You make many short-lived connections to the connector.
With CacheMetadata enabled, all retrieved metadata is mirrored in the cache database. This means that any subsequent attempts by the connector to discover metadata are much faster, as this metadata is then read directly from the cache database, without needing to spend time requesting metadata from WordPress.

When Not to Use CacheMetadata

The connector automatically persists metadata in memory for up to an hour when you first discover the metadata for a table or view, so CacheMetadata is generally not necessary.

CacheMetadata is not ideal in scenarios where you are working with volatile metadata. The first time you query a table, the connector caches its metadata to the cache database file. This cache is not dynamically updated to reflect updates to the table schema, so you must delete and rebuild the cache database file to pick up new, changed, or deleted columns.

CData Python Connector for WordPress

Miscellaneous

This section provides a complete list of the Miscellaneous properties you can configure in the connection string for this provider.


PropertyDescription
MaxRowsSpecifies the maximum number of rows returned for queries that do not include either aggregation or GROUP BY.
OtherSpecifies advanced connection properties for specialized scenarios. Use this property only under the guidance of our Support team to address specific issues.
PseudoColumnsSpecifies the pseudocolumns to expose as table columns, expressed as a string in the format 'TableName=ColumnName;TableName=ColumnName'.
ReadonlyToggles read-only access to WordPress from the provider.
RTKSpecifies the runtime key for licensing the provider. If unset or invalid, the provider defaults to the standard licensing method. This property is only required in environments where the standard licensing method is unsupported or requires a runtime key.
TimeoutSpecifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error.
UserDefinedViewsSpecifies a filepath to a JSON configuration file that defines custom views. The provider automatically detects and uses the views specified in this file.
CData Python Connector for WordPress

MaxRows

Specifies the maximum number of rows returned for queries that do not include either aggregation or GROUP BY.

Data Type

int

Default Value

-1

Remarks

The default value for this property, -1, means that no row limit is enforced unless the query explicitly includes a LIMIT clause. (When a query includes a LIMIT clause, the value specified in the query takes precedence over the MaxRows setting.)

Setting MaxRows to a whole number greater than 0 ensures that queries do not return excessively large result sets by default.

This property is useful for optimizing performance and preventing excessive resource consumption when executing queries that could otherwise return very large datasets.

CData Python Connector for WordPress

Other

Specifies advanced connection properties for specialized scenarios. Use this property only under the guidance of our Support team to address specific issues.

Data Type

string

Default Value

""

Remarks

This property allows advanced users to configure hidden properties for specialized situations, with the advice of our Support team. These settings are not required for normal use cases but can address unique requirements or provide additional functionality. To define multiple properties, use a semicolon-separated list.

Note: It is strongly recommended to set these properties only when advised by the Support team to address specific scenarios or issues.

Caching Configuration

PropertyDescription
CachePartial=TrueCaches only a subset of columns, which you can specify in your query.
QueryPassthrough=TruePasses the specified query to the cache database instead of using the SQL parser of the connector.

Integration and Formatting

PropertyDescription
DefaultColumnSizeSets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000.
ConvertDateTimeToGMT=TrueConverts date-time values to GMT, instead of the local time of the machine. The default value is False (use local time).
RecordToFile=filenameRecords the underlying socket data transfer to the specified file.

CData Python Connector for WordPress

PseudoColumns

Specifies the pseudocolumns to expose as table columns, expressed as a string in the format 'TableName=ColumnName;TableName=ColumnName'.

Data Type

string

Default Value

""

Remarks

This property allows you to define which pseudocolumns the connector exposes as table columns.

To specify individual pseudocolumns, use the following format:

Table1=Column1;Table1=Column2;Table2=Column3

To include all pseudocolumns for all tables use:

*=*

CData Python Connector for WordPress

Readonly

Toggles read-only access to WordPress from the provider.

Data Type

bool

Default Value

false

Remarks

When set to True, the connector allows only SELECT queries. Attempting an INSERT, UPDATE, DELETE, or stored procedure query fails with an error message.

CData Python Connector for WordPress

RTK

Specifies the runtime key for licensing the provider. If unset or invalid, the provider defaults to the standard licensing method. This property is only required in environments where the standard licensing method is unsupported or requires a runtime key.

Data Type

string

Default Value

""

Remarks

This property is typically unnecessary, as most configurations support a standard licensing mechanism.

Warning: The value of this property takes precedence over all existing licensing information. To avoid licensing errors, ensure the provided runtime key is correct.

CData Python Connector for WordPress

Timeout

Specifies the maximum time, in seconds, that the provider waits for a server response before throwing a timeout error.

Data Type

int

Default Value

60

Remarks

The timeout applies to each individual communication with the server rather than the entire query or operation. For example, a query could continue running beyond 60 seconds if each paging call completes within the timeout limit.

Timeout is set to 60 seconds by default. To disable timeouts, set this property to 0.

Disabling the timeout allows operations to run indefinitely until they succeed or fail due to other conditions such as server-side timeouts, network interruptions, or resource limits on the server.

Note: Use this property cautiously to avoid long-running operations that could degrade performance or result in unresponsive behavior.

CData Python Connector for WordPress

UserDefinedViews

Specifies a filepath to a JSON configuration file that defines custom views. The provider automatically detects and uses the views specified in this file.

Data Type

string

Default Value

""

Remarks

UserDefinedViews allows you to define and manage custom views through a JSON-formatted configuration file called UserDefinedViews.json. These views are automatically recognized by the connector and enable you to execute custom SQL queries as if they were standard database views. The JSON file defines each view as a root element with a child element called "query", which contains the SQL query for the view.

For example:

{
	"MyView": {
		"query": "SELECT * FROM Categories WHERE MyColumn = 'value'"
	},
	"MyView2": {
		"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
	}
}

You can use this property to define multiple views in a single file and specify the filepath. For example:

UserDefinedViews=C:\Path\To\UserDefinedViews.json
When you specify a view in UserDefinedViews, the connector only sees that view.

For further information, see User Defined Views.

CData Python Connector for WordPress

Third Party Copyrights

LZMA from 7Zip LZMA SDK

LZMA SDK is placed in the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

LZMA2 from XZ SDK

Version 1.9 and older are in the public domain.

Xamarin.Forms

Xamarin SDK

The MIT License (MIT)

Copyright (c) .NET Foundation Contributors

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

NSIS 3.10

Copyright (C) 1999-2025 Contributors THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

1. DEFINITIONS

"Contribution" means:

a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and b) in the case of each subsequent Contributor:

i) changes to the Program, and

ii) additions to the Program;

where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.

"Contributor" means any person or entity that distributes the Program.

"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.

"Program" means the Contributions distributed in accordance with this Agreement.

"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.

2. GRANT OF RIGHTS

a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.

b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.

c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.

d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.

3. REQUIREMENTS

A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:

a) it complies with the terms and conditions of this Agreement; and

b) its license agreement:

i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;

ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;

iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and

iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.

When the Program is made available in source code form:

a) it must be made available under this Agreement; and

b) a copy of this Agreement must be included with each copy of the Program.

Contributors may not remove or alter any copyright notices contained within the Program.

Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.

4. COMMERCIAL DISTRIBUTION

Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.

For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.

5. NO WARRANTY

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.

6. DISCLAIMER OF LIABILITY

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

7. GENERAL

If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.

If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.

All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.

Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.

This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.

AdoptOpenJDK / Adoptium Temurin JRE 17.0.18_8

Copyright (c) Eclipse Foundation AISBL. All Rights Reserved.

Apache License, Version 2.0

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

  1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
  2. You must cause any modified files to carry prominent notices stating that You changed the files; and
  3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
  4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

Eclipse Distribution License - v 1.0

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Eclipse Public License - v 2.0

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

1. DEFINITIONS "Contribution" means:

  • a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and
  • b) in the case of each subsequent Contributor:
    • i) changes to the Program, and
    • ii) additions to the Program;
    where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution "originates" from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works.
"Contributor" means any person or entity that Distributes the Program. "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.

"Program" means the Contributions Distributed in accordance with this Agreement.

"Recipient" means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors.

"Derivative Works" shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship.

"Modified Works" shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or Modified Works thereof.

"Distribute" means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy.

"Source Code" means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files.

"Secondary License" means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor.

2. GRANT OF RIGHTS

  • a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works.
  • b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
  • c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to Distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
  • d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
  • e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3).

3. REQUIREMENTS 3.1 If a Contributor Distributes the Program in any form, then:

  • a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and
  • b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license:
    • i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
    • ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
    • iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and
    • iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3.
3.2 When the Program is Distributed as Source Code:
  • a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and
  • b) a copy of this Agreement must be included with each copy of the Program.
3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (‘notices') contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices.

4. COMMERCIAL DISTRIBUTION Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.

For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.

5. NO WARRANTY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.

6. DISCLAIMER OF LIABILITY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

7. GENERAL If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.

If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.

All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.

Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be Distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to Distribute the Program (including its Contributions) under the new version.

Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement.

Exhibit A – Form of Secondary Licenses Notice "This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}."

Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses.

If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.

You may add additional accurate notices of copyright ownership.

GNU Classpath

Classpath is distributed under the terms of the GNU General Public License with the following clarification and special exception.

Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination.

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

As such, it can be used to run, create and distribute a large class of applications and applets. When GNU Classpath is used unmodified as the core class library for a virtual machine, compiler for the java languge, or for a program written in the java programming language it does not affect the licensing for distributing those programs directly.

OpenJDK Assembly Exception

The OpenJDK source code made available by Oracle America, Inc. (Oracle) at openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU General Public License <http://www.gnu.org/copyleft/gpl.html> version 2 only ("GPL2"), with the following clarification and special exception.

Linking this OpenJDK Code statically or dynamically with other code is making a combined work based on this library. Thus, the terms and conditions of GPL2 cover the whole combination.

As a special exception, Oracle gives you permission to link this OpenJDK Code with certain code licensed by Oracle as indicated at http://openjdk.java.net/legal/exception-modules-2007-05-08.html ("Designated Exception Modules") to produce an executable, regardless of the license terms of the Designated Exception Modules, and to copy and distribute the resulting executable under GPL2, provided that the Designated Exception Modules continue to be governed by the licenses under which they were offered by Oracle.

As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code to build an executable that includes those portions of necessary code that Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 with the Classpath exception). If you modify or add to the OpenJDK code, that new GPL2 code may still be combined with Designated Exception Modules if the new code is made subject to this exception by its copyright holder.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655