CData Python Connector for GitHub

Build 25.0.9440

Branches

Contains detailed information about branches in a repository, including branch names and their relationships with other branches for version control.

Table-Specific Information

Select

The 本製品 processes all filters client-side within the 本製品. The following query is the only one processed server-side:

SELECT * FROM [Branches]

Insert

You can use the following columns to create (insert) a new record:

  • Name
  • TargetOid

You can use the following pseudo-column to create a new record: Force

INSERT INTO [Branches] ([Name], [TargetOid]) VALUES ('TestBranch', '6330b82300aa01f5f92cf7ac22e79ef261a5457a')

Update

You can use the following column to update a record: TargetOid

You can use the following pseudo-column to update a record: Force

UPDATE [Branches] SET [TargetOid] = '2fa01729273842c19b4ee9594f4f32007e4aea31', [Force] = 'true' WHERE [Id] = 'REF_kwDOOq2woLVyZWZzL2hlYWRzL1Rlc3RCcmFuY2g'

Delete

You can specify the following column to delete a record: Id

DELETE FROM [Branches] WHERE [Id] = 'REF_kwDOOq2woLRyZWZzL2hlYWRzL0RldkJyYW5jaA'

Columns

Name Type ReadOnly References Description
Id [KEY] String True

A unique identifier for the branch within the repository.

Name String False

The name of the branch, typically representing a feature, fix, or release.

Prefix String True

The standard prefix used for branch refs.

TargetId String True

The ID of the object the ref points to.

TargetOid String False

The Git object ID of the object the ref points to.

Pseudo-Columns

疑似カラムはWHERE 句でデータを絞り込むために使用できるフィールドですが、実際にはデータを含みません。

Name Type Description
Force Bool

Permit updates of branch refs that are not fast-forwards.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440