![]() |
VOOZH | about |
The CData ODBC Driver for Bitbucket can be used from any platform or development technology that supports ODBC, including PowerBuilder. This article shows how to connect to Bitbucket data and execute queries from the Database Painter and controls such as the DataWindow.
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
For most queries, you must set the Workspace. The only exception to this is the Workspaces table, which does not require this property to be set, as querying it provides a list of workspace slugs that can be used to set Workspace. To query this table, you must set Schema to 'Information' and execute the query SELECT * FROM Workspaces>.
Setting Schema to 'Information' displays general information. To connect to Bitbucket, set these parameters:
Bitbucket supports OAuth authentication only. To enable this authentication from all OAuth flows, you must create a custom OAuth application, and set AuthScheme to OAuth.
Be sure to review the Help documentation for the required connection properties for you specific authentication needs (desktop applications, web applications, and headless machines).
From your Bitbucket account:
Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for Bitbucket. In the Database Painter, you can use wizards and the UI to work with Bitbucket data.
You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve Bitbucket data into a DataWindow. You can add the following code to the open method:
SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData Bitbucket Source'" CONNECT USING SQLCA; dw_issues.SetTransObject(SQLCA); dw_issues.Retrieve();
Download a free trial of the Bitbucket ODBC Driver to get started:
Download NowLearn more:
👁 Bitbucket IconThe Bitbucket ODBC Driver is a powerful tool that allows you to connect with live data from Bitbucket, directly from any applications that support ODBC connectivity.
Access Bitbucket data like you would a database - read, write, and update Bitbucket 0, etc. through a standard ODBC Driver interface.