CData Cloud は、クラウドホスト型のソリューションで、複数の標準サービスやプロトコルにまたがるSlack へのアクセスを実現します。MySQL またはSQL Server データベースに接続できるアプリケーションであれば、CData Cloud を介してSlack に接続できます。
CData Cloud により、他のOData エンドポイントや標準SQL Server / MySQL データベースと同じように、Slack への接続を標準化し、構成することができます。
このページでは、CData Cloud でのSlack への接続の確立 のガイド、利用可能なリソースに関する情報、および使用可能な接続プロパティのリファレンスについて説明します。
接続の確立 は、CData Cloud にデータベースを作成するためのSlack への認証方法と必要な接続プロパティの設定方法について示します。
利用可能な標準サービスを経由してSlack からデータにアクセスする方法と、CData Cloud の管理については、CData Cloud ドキュメント で詳しく説明します。
Database タブで対応するアイコンを選択して、Slack に接続します。必須プロパティはSettings にリストされています。Advanced タブには、通常は必要ない接続プロパティが表示されます。
すべての認証フローで、OAuth 経由で接続するにはAuthScheme をOAuth に設定する必要があります。
以下のサブセクションでは、利用可能なOAuth フローでのSlack への認証について詳しく説明します。 カスタムOAuth アプリケーションの作成についての情報と、すでに埋め込みOAuth 認証情報を持つ認証フローでもカスタムOAuth アプリケーションを作成したほうがよい場合の説明については、カスタムOAuth アプリケーションの作成 を参照してください。
Slack で利用可能な接続文字列プロパティの全リストは、Connection を参照してください。
CData はOAuth アプリケーション認証情報を製品に組み込んでおり、デスクトップアプリケーションまたはヘッドレスマシン経由でSlack に接続する際に使用できます。(OAuthAccessToken およびその他の設定パラメータを取得および設定する方法についての情報は、「Slack への接続」の デスクトップ認証セクションを参照してください。)
ただし、Web 経由で接続するには、カスタムOAuth アプリケーションの作成が必要です。また、カスタムOAuth アプリケーションは、一般的に使用される3つの認証フローをすべてシームレスにサポートするため、これらの認証フロー用にカスタムOAuth アプリケーションを作成(独自のOAuth アプリケーションクレデンシャルを使用)することもできます。
カスタムOAuth アプリケーションは、次のような場合に有用です。
OAuth アプリケーションを作成すると、2つのOAuth クライアント資格情報、OAuthClientId およびOAuthClientSecret が取得されます。
アプリケーションを作成したら、CallbackURL を定義します。
すべての利用可能な機能を使用するには、GetOAuthAuthorizationURL とGetOAuthAccessToken プロシージャ、およびアプリケーション自体で必要なスコープを指定する必要があります。
OAuth アプリケーションで適切なスコープを設定するには:
必要なスコープ:
channels:read, groups:read, im:read, mpim:read, channels:write, groups:write, im:write, mpim:write, channels:history, groups:history,
im:history, mpim:history, search:read, chat:write:user, chat:write:bot, files:read, files:write:user, pins:read, pins:write, usergroups:read,
usergroups:write, reminders:read, reminders:write, users:read, users.profile:write.
これらの値はすべて、GetOAuthAuthorizationURL およびGetOAuthAccessToken プロシージャのデフォルトスコープとして送信されます。
デフォルトでは、Cloud はサーバーの証明書をシステムの信頼できる証明書ストアと照合してSSL / TLS のネゴシエーションを試みます。
別の証明書を指定するには、利用可能なフォーマットについてSSLServerCert プロパティを参照してください。
Windows のシステムプロキシ経由の接続では、接続プロパティを追加で設定する必要はありません。他のプロキシに接続するには、ProxyAutoDetect をfalse に設定します。
さらにHTTP プロキシへの認証には、ProxyServer とProxyPort に加えてProxyAuthScheme、ProxyUser、およびProxyPassword を設定します。
次のプロパティを設定します。
Cloud は、Slack API をテーブル およびストアドプロシージャ としてモデル化します。
ストアドプロシージャはSlack のファンクションライクなインターフェースで、Slack API の他の側面を扱うことを可能にします。ストアドプロシージャを使用すると、Slack 内の情報を検索、更新、および編集できます。
テーブルとストアドプロシージャは、静的なスキーマファイルで定義されているため、カスタマイズが容易です。
Cloud はSlack のデータを、標準のSQL ステートメントを使用してクエリできるリレーショナルデータベースのテーブルのリストとしてモデル化します。
Name | Description |
Calls | Register,update,end or return information about a Call. |
Channels | Create, update, and query the available channels in Slack. |
Files | Query and delete team files. |
MessageReplies | Create, update, delete, and query threads of messages posted to a conversation. |
Messages | Create, update, delete, and query the available messages in Slack. |
Pins | Create, delete, and query all items pinned to a channel. |
Reactions | Create, delete, and query reactions on items. |
Reminders | Create, delete, and query all reminders by or for a given user. |
UserGroups | Create, update, and query all User Groups for a Slack team. |
Users | Update and query all users for a Slack team. |
Register,update,end or return information about a Call.
You must specify the Id column in the WHERE clause to query the Calls table.
The Cloud will use the Slack API to process search criteria that refer to the Id column. This column supports server-side processing for the = operator. The Cloud processes other filters client-side within the Cloud.
For example, the following query is processed server side:
SELECT * FROM Calls WHERE Id = 'R04HH525YBS'
Inserts are allowed when you specify the ExternalUniqueId and JoinURL. For example:
INSERT INTO Calls (ExternalUniqueId, JoinURL) VALUES (uniqId, joinurl)
Updates are allowed when you specify the Id.
UPDATE Calls SET JoinURL = 'join', Title = 't' WHERE Id = 'R04HH525YBS'
You can delete a pin by providing the Id.
DELETE FROM Calls WHERE id = 'R04HH525YBS'
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
Id of the call. |
DateStart | Datetime | True |
Start time of the call. |
DesktopAppJoinURL | String | False |
The desktop app join url of the call. |
ExternalDisplayId | String | False |
The external display of the call. |
ExternalUniqueId | String | False |
The external unique Id of the call. |
JoinURL | String | False |
The joining url of the call. |
Title | String | False |
The title of the call. |
Users | String | True |
The users involved in the call. |
Create, update, and query the available channels in Slack.
The Cloud will use the Slack API to process search criteria that refer to the Id, IsArchived, IsPublic, IsGroup, IsDirectMessage, and IsMultipartyDirectMessage columns. These columns support server-side processing for the = operator. The Cloud processes other filters client-side within the Cloud.
For example, the following queries are processed server side by the Slack APIs:
SELECT * FROM Channels WHERE IsPublic = false AND IsGroup = false AND IsArchived = true SELECT * FROM Channels WHERE Id = 'D71R6CSR1'
The Name column is the minimum requirement for an insert. Name and IsPublic are the only columns that can be set on an insert.
INSERT INTO Channels (Name, IsPublic) VALUES ('initialname', true)
The Channels table allows updates for columns Name, Purpose, and Topic when Id is specified.
UPDATE Channels SET Topic = 'A Topic Text', Purpose = 'A Purpose Text', Name = 'updatedname' WHERE Id = 'D71R6CSR1'
Slack does not allow Channels to be deleted.
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the channel. |
Name | String | False |
The name of the channel. |
Topic | String | False |
Information about the channel topic. |
TopicCreator | String | True |
Creator of the channel topic. |
Purpose | String | False |
Information about the channel purpose. |
TotalMembers | Integer | True |
Number of members in the channel. |
Created | Datetime | True |
Channel creation datetime. |
Creator | String | True |
User ID of the member that created this channel. |
LastRead | Datetime | True |
The datetime for the last message the calling user has read in this channel. |
IsMember | Boolean | True |
Indicates the user or bot user or Slack app associated with the token making the API call is itself a member of the conversation. |
IsArchived | Boolean | True |
Indicates a conversation is archived. Frozen in time |
IsPublic | Boolean | False |
Indicates whether a conversation is a public channel. Everything said in a public channel can be read by anyone else belonging to a workspace. |
IsGroup | Boolean | True |
Indicates whether the channel is a private channel between a group of members. |
IsDirectMessage | Boolean | True |
Means the conversation is a direct message between two distinguished individuals or a user and a bot. |
IsMultipartyDirectMessage | Boolean | True |
Represents an unnamed private conversation between multiple users. |
IsGeneral | Boolean | True |
Means the channel is the workspace's 'general' discussion channel. |
Unlinked | Integer | True |
Number of times a link to the channel has been removed. |
NameNormalized | String | True |
Normalized name of the channel. |
IsShared | Boolean | True |
Means the conversation is in some way shared between multiple workspaces. |
IsExtShared | Boolean | True |
Represents this conversation as being part of a Shared Channel with a remote organization. |
IsOrgShared | Boolean | True |
Explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization. |
IsPendingExtShared | Boolean | True |
It means the conversation is ready to become an IsExtShared channel but isn't quite ready yet and needs some kind of approval or sign off. |
PreviousNames | String | True |
A list of previous names this channel has had. |
Locale | String | True |
Locale of the channel. |
User | String | True | |
IsUserDeleted | Boolean | True | |
Priority | String | True |
Query and delete team files.
The Cloud will use the Slack API to filter by search criteria that refer to the Id, Created, UserId, Types, SpecificChannel, or SearchTerm columns. All columns support server-side processing for the = operator, and the Created column also supports server-side processing for the >, >=, <, <= operators.
The Cloud processes other search criteria client-side within the Cloud.
For example, the following queries are processed server side:
SELECT * FROM Files WHERE Created > '2017-01-01' AND UserId = 'U2345NDS' AND SpecificChannel = 'D71R6CSR1'
You can also filter files by querying the files' contents: Set the SearchTerm pseudocolumn in the criteria. All files containing the queried word will be retrieved. For example:
SELECT * FROM Files WHERE SearchTerm = 'text'
Slack does not allow inserting new files.
Slack does not allow updating files.
Files can be deleted by providing the Id of the file.
DELETE FROM Files WHERE Id = 'F71R6DRR1'
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the file. |
Name | String | True |
The name of the file. It may nbe null for unnamed files |
Title | String | True |
The title of the file. |
Created | Datetime | True |
Creation date of the file. |
UserId | String | True |
User ID of the member that created this file. |
Username | String | True |
Username of the file creator. |
InitialComment | String | True |
A comment from the file uploader, and will only be set when the uploader left a comment at the time of upload. |
Size | Integer | True |
The filesize in bytes. Snippets are limited to a maximum file size of 1 megabyte |
Filetype | String | True |
The type of the file. |
Mimetype | String | True |
Mime type of the file. |
PrettyType | String | True |
Human-readable version of the type. |
CommentsCount | Integer | True |
Number of comments made on the file. |
Mode | String | True |
A property that contains one of hosted, external, snippet or post. |
PublicChannelIds | String | True |
A list of channel IDs in which the file is currently shared. |
GroupIds | String | True |
A list of private groups IDs in which the file is currently shared. |
DirectMessageIds | String | True |
A list of instant message IDs in which the file is currently shared. |
Editable | Boolean | True |
Indicates that files are stored in editable mode. |
Permalink | String | True |
URL that points to a single page for the file containing details, comments and a download link. |
PermalinkPublic | String | True |
If the file is available to the public, this URL points to the public file itself. |
EditLink | String | True |
Present for posts and snippets. The page where the file can be edited |
UrlPrivate | String | True |
Points to a URL to the file contents. |
UrlPrivateDownload | String | True |
For editable-mode files, this parameter includes headers to force a browser download. |
Thumb480 | String | True |
Contains the URL of an 480x480 thumb. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
SpecificChannel | String |
Filter files appearing in a specific channel, indicated by its ID. |
SearchTerm | String |
Filter by this column to retrieve all files that contain the word in the criteria. |
Types | String |
Filter files by type. Allowed values are all,spaces,snippets,images,gdocs,zips. Default value is all. 使用できる値は次のとおりです。all, spaces, snippets, images, gdocs, zips |
Create, update, delete, and query threads of messages posted to a conversation.
The MessageReplies table requires the ChannelId And ParentMessageId columns in the WHERE clause. Search criteria that refer to other columns are processed client-side within the Cloud.
For example, the following query is processed server side:
SELECT * FROM MessageReplies WHERE ChannelId = 'D71R6CSR1' AND ParentMessageId = '1234567890.123456'
Slack allows inserts only when ChannelId, Text, and ParentMessageId are specified.
INSERT INTO MessageReplies (ChannelId, Text, ParentMessageId) VALUES ('D71R6CSR1', 'This is a message', '1234567890.123456')
The MessageReplies table allows updates only for the Text field. Specify ChannelId and Id.
UPDATE MessageReplies SET Text = 'Updated message' WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
MessageReplies can be deleted by providing the ChannelId and the Id of the message.
DELETE FROM MessageReplies WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
Unique identifier for the messages. |
ChannelId [KEY] | String | False |
Conversation ID to fetch thread from. |
UserId | String | True |
User Id of the user who posted the reply. |
Text | String | False |
Reply message content. |
ParentMessageId [KEY] | String | False |
Unique identifier of a thread's parent message. |
ReplyCount | Integer | True |
The replies number for thread's parent message. |
Subscribed | Boolean | True |
Indicates if the user is subscribed to this channel. |
LastRead | Datetime | True |
The datetime for the last message the calling user has read in this channel. |
UnreadCount | Integer | True |
The number of members that have not read the parent message. |
Create, update, delete, and query the available messages in Slack.
The Messages table requires ChannelId or SearchTerm in the WHERE clause. The Cloud also uses the Slack API to process search criteria that refer to the Id column. The ChannelId, SearchTerm, and Id columns support server-side processing for the = operator. The Cloud processes other search criteria client-side within the Cloud.
SELECT * FROM Messages WHERE ChannelId = 'D71R6CSR1' SELECT * FROM Messages WHERE SearchTerm = 'text' SELECT * FROM Messages WHERE CreatedTime >= '7-30-2023 00:00:00' AND CreatedTime <= '8-4-2023 00:00:00'
Slack allows inserts only when ChannelId and Text are specified.
INSERT INTO Messages (ChannelId, Text) VALUES ('D71R6CSR1', 'This is a message')
The Messages table allows updates only for the Text field. Specify ChannelId and Id.
UPDATE Messages SET Text = 'Updated message' WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
Messages can be deleted by providing the ChannelId and the Id of the message.
DELETE FROM Messages WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the message. |
ChannelId [KEY] | String | False |
The Id of the channel the message was posted to. |
UserId | String | True |
The Id of the user that posted the message. |
Text | String | False |
Text of the message. |
Type | String | True |
Type of the message. |
Item_type | String | True |
Item type of the message. |
Subtype | String | True |
Subtype of the message. |
Team | String | True |
Team of the message. |
Pinned_to | String | False |
Pinned details of the message. |
Pinned_info_Channel | String | True |
Id of the pinned channel of the message. |
Pinned_info_pinned_by | String | True |
Id of the pinned by message. |
Pinned_info_pinned_ts | String | True |
Id of the pinned message of the message. |
AttachmentsAggregate | String | True |
Attachments made to the message. |
Purpose | String | False |
Purpose of the message. |
BotId | String | True |
BotId of the message. |
BotLink | String | True |
BotLink of the message. |
Username | String | True |
UserName of the message. |
Reply_count | Integer | False |
Count of the replied channels to the message. |
Reply_users_count | Integer | False |
Count of the replied users to the message. |
Latest_reply | String | True |
Latest message reply of the message. |
Last_read | String | True |
Last read message. |
Reply_usersAggreagte | String | True |
Replied user details of the message. |
Subscribed | Boolean | True |
Subscribed status of the message. |
Topic | String | True |
Topic of the message. |
Old_name | String | False |
Old Name of the message. |
Name | String | False |
Name of the message. |
SearchTerm | String | True |
Filter by this column to retrieve all messages that contain the word in the criteria. |
UserEditedDate | String | True |
The date of the edited message. |
UserEditedId | String | True |
The user id of the edited message. |
CreatedTime | Datetime | True |
The created date time of the message. |
Create, delete, and query all items pinned to a channel.
You must specify the ChannelId column in the WHERE clause to query the Pins table.
The Cloud will use the Slack API to process search criteria that refer to the ChannelId column. This column supports server-side processing for the = operator. The Cloud processes other filters client-side within the Cloud.
For example, the following query is processed server side:
SELECT * FROM Pins WHERE ChannelId = 'D71R6CSR1'
INSERTS are allowed when you specify the ChannelId, Id, and Type. For example:
INSERT INTO Pins (ChannelId, Id, Type) VALUES ('D71R6CSR1', 'F71R6DRR1', 'file')
Slack does not support UPDATE for pins.
You can delete a pin by providing the ChannelId, Id, and Type.
DELETE FROM Pins WHERE ChannelId = 'D71R6CSR1' AND Id = '1505287261.000226' AND Type = 'message'
Name | Type | ReadOnly | Description |
Id [KEY] | String | False |
The Id of the pinned item. |
Type [KEY] | String | False |
The type of the pinned item. 使用できる値は次のとおりです。message, file, file comment |
Created | Datetime | True |
A unique datetime representing when the item was pinned. |
ChannelId [KEY] | String | False |
Channel Id to get pinned items for. |
PinnedToChannelIds | String | True |
Comma separated list of channel ids the item is pinned to. |
CreatedBy | String | True |
The encoded user id of the user who pinned the item. |
Create, delete, and query reactions on items.
The Cloud will use the Slack API to process search criteria that refer to the Team, Users column. This column supports server-side processing for the = operator. The Cloud processes other filters client-side within the Cloud.
SELECT * FROM Reactions WHERE Users = 'U046AV8HU3G'
SELECT * FROM Reactions WHERE Team = 'T046W75LRTK'
SELECT * FROM Reactions WHERE Team = 'T046W75LRTK' AND Users = 'U046AV8HU3G'
Inserts are allowed when you specify the ChannelId, Id, Name and Type. For example:
INSERT INTO Reactions (ChannelId, Id, Type, Name) VALUES ('C04HBS2PS56', '1672114112.994259', 'message', 'raised_hands')
Slack does not support UPDATE for reactions.
You can delete a pin by providing the ChannelId, Id, Name and Type.
DELETE FROM Reactions WHERE Name = 'raised_hands' AND ChannelId = 'C04HBS2PS56' AND Id = '1672114112.994259' AND type = 'message'
Name | Type | ReadOnly | Description |
Id | String | False |
The Id of the reacted item. |
ChannelId | String | False |
The ChanneldId where item is reacted |
Type | String | False |
The type of the reacted item. 使用できる値は次のとおりです。message, file, file comment |
Name | String | False |
The name of the reaction |
Count | String | True |
The count of reactions on that message |
Users | String | True |
The encoded user id of the user who reacted to the message. |
Team | String | True |
The name of the reaction |
Create, delete, and query all reminders by or for a given user.
The Cloud uses the Slack API to process search criteria that refer to the Id column while other filters are processed client-side within the Cloud. For example, the following query is processed server side:
SELECT * FROM Reminders WHERE Id = 'RT7U7LN6F'
Inserts are allowed when you specify the Text and Time for the reminder. You can also add UserId. For example:
INSERT INTO Reminders (Text, Time, UserId) VALUES ('Remind me for coffee', '2017-01-01 10:00', 'U723764DF')
Slack does not support UPDATE for reminders.
You can delete a reminder by providing the Id.
DELETE FROM Reminders WHERE Id = 'R71R6CSR1'
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the reminder. |
Creator | String | True |
The Id of the user who created the reminder. |
UserId | String | False |
The Id of the user the reminder is set for. |
Text | String | False |
The content of the reminder. |
Recurring | Boolean | True |
Indicates if this reminder is to be repeated. |
Time | Datetime | False |
The datetime of the reminder. |
CompleteTimestamp | Datetime | True |
The datetime when the reminder was completed. |
Create, update, and query all User Groups for a Slack team.
The Cloud uses the Slack API to process search criteria that refer to the IncludeDisabled column while other search criteria are processed client-side within the Cloud. For example, the following query is processed server side:
SELECT * FROM UserGroups WHERE IncludeDisabled = 'true'
Inserts are allowed only for paid workspaces and when you specify the Name of the user group. Other optional fields are Description, Handle, and PreferredChannelIds. For example:
INSERT INTO UserGroups (Name, PreferredChannelIds) VALUES ('newgroup', 'C5S8LAY0Y,C79J7PREU')
You can update a user group by providing the Id and you can update the UserIds, Name, Description, PreferredChannelIds, and Handle columns. Updates are only allowed for paid workspaces.
UPDATE UserGroups SET PreferredChannelIds = 'C5S8LAY0Y,C79J7PREU', Name = 'newname' WHERE Id = 'U4826PEF'
Slack does not support the deletion of user groups.
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the User Group. |
Name | String | False |
Indicates the friendly name of the group. |
Description | String | False |
Explains the purpose of the group. |
TeamId | String | True |
Identifier of the team this user group belongs to. |
UserIds | String | False |
Contains a list of user id values that belong to the User Group. |
UserCount | String | True |
Indicates the total number of users in a group. |
Handle | String | False |
Indicates the value used to notify group members via a mention without a leading @ sign. |
PreferredChannelIds | String | False |
Channels that members of this group will be invited to upon joining. |
PreferredGroupsIds | String | True |
Groups (private channels) that members of this group will be invited to upon joining. |
IsExternal | Boolean | True |
Represents this conversation as being externally shared. |
DateCreated | Datetime | True |
Datetime of the creation of the user group. |
DateUpdated | Datetime | True |
Datetime that the user group became disabled. |
CreatedBy | String | True |
Id of the user who created the user group. |
UpdatedBy | String | True |
Id of the user who last modified the user group. |
DeletedBy | String | True |
Id of the user who disabled/archived the user group. |
AutoType | String | True |
This parameter's value can be admins for a Workspace Admins group, owners for a Workspace Owners group or null for a custom group. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
IncludeDisabled | Boolean |
A boolean set to include or exclude disabled User Groups in the retrieved data. |
Update and query all users for a Slack team.
The Cloud uses the Slack API to process search criteria that refer to the Id column, while other filters are processed client-side within the Cloud. For example, the following query is processed server side:
SELECT * FROM Users WHERE Id = 'U5SU7GU6N'
Slack does not support inserting new users.
You can update a user's FirstName, LastName, ProfileDisplayName, and ProfileEmail by providing the Id of the user. Only a team admin of a paid team can update another user's profile.
UPDATE Users SET ProfileDisplayName = 'Dis Name', ProfileEmail = '[email protected]' WHERE Id = 'U5SU7GU6N'
Slack does not support deleting users.
Name | Type | ReadOnly | Description |
Id [KEY] | String | True |
The Id of the User. |
FirstName | String | False |
Fist name of the user. |
LastName | String | False |
Last name of the user. |
FullName | String | True |
Full name of the user. |
ProfileDisplayName | String | False |
Display name of the user. |
ProfileEmail | String | False |
Email of the user. |
ProfileImage | String | True |
URLs to square, web-viewable image of a user's profile. |
Deleted | Boolean | True |
Indicates if the user is deactivated. |
TeamId | String | True |
Id of the Slack team the user belongs to. |
IsAdmin | Boolean | True |
Indicates whether the user administers this team. |
Color | String | True |
A field used in some clients to display a colored username. |
Timezone | String | True |
String for the geographic region. |
TimezoneLabel | String | True |
String describing the name of that timezone. |
TimezoneOffset | Integer | True |
A signed integer indicating the number of seconds to offset UTC time by. |
IsOwner | Boolean | True |
Indicates whether this user is the owner of this team. |
IsPrimaryOwner | Boolean | True |
Indicates whether this user is the primary owner of this team. |
IsRestricted | Boolean | True |
Indicates whether this user is restricted from the team . |
IsUltraRestricted | Boolean | True |
Indicates whether this user is forbidden from the team. |
Updated | Datetime | True |
A datetime that shows when the user was last updated. |
IsAppUser | Boolean | True |
A boolean value indicating if the user uses the Slack App. |
Has2fa | Boolean | True |
A boolean value indicating if the user uses Two Factor Authentication. |
ストアドプロシージャはファンクションライクなインターフェースで、Slack の単純なSELECT/INSERT/UPDATE/DELETE 処理にとどまらずCloud の機能を拡張します。
ストアドプロシージャは、パラメータのリストを受け取り、目的の機能を実行し、プロシージャが成功したか失敗したかを示すとともにSlack から関連するレスポンスデータを返します。
Name | Description |
CloseChannel | Closes a direct message or multiperson direct message. |
CompleteReminder | Marks a reminder as complete. |
InviteUser | Invites users to a channel. |
JoinChannel | Joins an existing conversation. |
LeaveChannel | Leaves a conversation. |
OpenChannel | Opens or resumes a direct message or multiperson direct message. |
Closes a direct message or multiperson direct message.
Name | Type | Description |
ChannelId | String | Id of the conversation to close. |
Name | Type | Description |
Success | String | The result of the procedure. |
Marks a reminder as complete.
Name | Type | Description |
Id | String | The Id of the reminder to be marked as complete |
Name | Type | Description |
Success | String | The result of the procedure. |
Invites users to a channel.
Name | Type | Description |
ChannelId | String | The Id of the public or private channel to invite user(s) to. |
Users | String | A comma separated list of user Ids. Up to 30 users may be listed. |
Name | Type | Description |
Success | String | The result of the procedure. |
Joins an existing conversation.
Name | Type | Description |
ChannelId | String | The Id of the channel to join. |
Name | Type | Description |
Success | String | The result of the procedure. |
Leaves a conversation.
Name | Type | Description |
ChannelId | String | Id of the conversation to leave. |
Name | Type | Description |
Success | String | The result of the procedure. |
Opens or resumes a direct message or multiperson direct message.
Name | Type | Description |
ChannelId | String | Resume a conversation by supplying an im or mpim's Id. Or, provide the Users field instead. |
Users | String | Comma-separated lists of users. If only one user is included, this creates a 1:1 DM. Supply a channel when not supplying users. |
Name | Type | Description |
Success | String | The result of the procedure. |
このセクションで説明されているシステムテーブルをクエリして、スキーマ情報、データソース機能に関する情報、およびバッチ操作の統計にアクセスできます。
以下のテーブルは、Slack のデータベースメタデータを返します。
以下のテーブルは、データソースへの接続方法およびクエリ方法についての情報を返します。
次のテーブルは、データ変更クエリのクエリ統計を返します。
利用可能なデータベースをリストします。
次のクエリは、接続文字列で決定されるすべてのデータベースを取得します。
SELECT * FROM sys_catalogs
Name | Type | Description |
CatalogName | String | データベース名。 |
利用可能なスキーマをリストします。
次のクエリは、すべての利用可能なスキーマを取得します。
SELECT * FROM sys_schemas
Name | Type | Description |
CatalogName | String | データベース名。 |
SchemaName | String | スキーマ名。 |
利用可能なテーブルをリストします。
次のクエリは、利用可能なテーブルおよびビューを取得します。
SELECT * FROM sys_tables
Name | Type | Description |
CatalogName | String | テーブルまたはビューを含むデータベース。 |
SchemaName | String | テーブルまたはビューを含むスキーマ。 |
TableName | String | テーブル名またはビュー名。 |
TableType | String | テーブルの種類(テーブルまたはビュー)。 |
Description | String | テーブルまたはビューの説明。 |
IsUpdateable | Boolean | テーブルが更新可能かどうか。 |
利用可能なテーブルおよびビューのカラムについて説明します。
次のクエリは、Channels テーブルのカラムとデータ型を返します。
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Channels'
Name | Type | Description |
CatalogName | String | テーブルまたはビューを含むデータベースの名前。 |
SchemaName | String | テーブルまたはビューを含むスキーマ。 |
TableName | String | カラムを含むテーブルまたはビューの名前。 |
ColumnName | String | カラム名。 |
DataTypeName | String | データ型の名前。 |
DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
Length | Int32 | カラムのストレージサイズ。 |
DisplaySize | Int32 | 指定されたカラムの通常の最大幅(文字数)。 |
NumericPrecision | Int32 | 数値データの最大桁数。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
NumericScale | Int32 | カラムのスケール(小数点以下の桁数)。 |
IsNullable | Boolean | カラムがNull を含められるかどうか。 |
Description | String | カラムの簡単な説明。 |
Ordinal | Int32 | カラムのシーケンスナンバー。 |
IsAutoIncrement | String | カラムに固定増分値が割り当てられるかどうか。 |
IsGeneratedColumn | String | 生成されたカラムであるかどうか。 |
IsHidden | Boolean | カラムが非表示かどうか。 |
IsArray | Boolean | カラムが配列かどうか。 |
IsReadOnly | Boolean | カラムが読み取り専用かどうか。 |
IsKey | Boolean | sys_tablecolumns から返されたフィールドがテーブルの主キーであるかどうか。 |
利用可能なストアドプロシージャをリストします。
次のクエリは、利用可能なストアドプロシージャを取得します。
SELECT * FROM sys_procedures
Name | Type | Description |
CatalogName | String | ストアドプロシージャを含むデータベース。 |
SchemaName | String | ストアドプロシージャを含むスキーマ。 |
ProcedureName | String | ストアドプロシージャの名前。 |
Description | String | ストアドプロシージャの説明。 |
ProcedureType | String | PROCEDURE やFUNCTION などのプロシージャのタイプ。 |
ストアドプロシージャパラメータについて説明します。
次のクエリは、RefreshOAuthAccessToken ストアドプロシージャのすべての入力パラメータについての情報を返します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName='RefreshOAuthAccessToken' AND Direction=1 OR Direction=2
Name | Type | Description |
CatalogName | String | ストアドプロシージャを含むデータベースの名前。 |
SchemaName | String | ストアドプロシージャを含むスキーマの名前。 |
ProcedureName | String | パラメータを含むストアドプロシージャの名前。 |
ColumnName | String | ストアドプロシージャパラメータの名前。 |
Direction | Int32 | パラメータのタイプに対応する整数値:input (1)。input/output (2)、またはoutput(4)。input/output タイプパラメータは、入力パラメータと出力パラメータの両方になれます。 |
DataTypeName | String | データ型の名前。 |
DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
Length | Int32 | 文字データの場合は、許可される文字数。数値データの場合は、許可される桁数。 |
NumericPrecision | Int32 | 数値データの場合は最大精度。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
NumericScale | Int32 | 数値データの小数点以下の桁数。 |
IsNullable | Boolean | パラメータがNull を含められるかどうか。 |
IsRequired | Boolean | プロシージャの実行にパラメータが必要かどうか。 |
IsArray | Boolean | パラメータが配列かどうか。 |
Description | String | パラメータの説明。 |
Ordinal | Int32 | パラメータのインデックス。 |
主キーおよび外部キーについて説明します。
次のクエリは、Channels テーブルの主キーを取得します。
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Channels'
Name | Type | Description |
CatalogName | String | キーを含むデータベースの名前。 |
SchemaName | String | キーを含むスキーマの名前。 |
TableName | String | キーを含むテーブルの名前。 |
ColumnName | String | キーカラムの名前 |
IsKey | Boolean | カラムがTableName フィールドで参照されるテーブル内の主キーかどうか。 |
IsForeignKey | Boolean | カラムがTableName フィールドで参照される外部キーかどうか。 |
PrimaryKeyName | String | 主キーの名前。 |
ForeignKeyName | String | 外部キーの名前。 |
ReferencedCatalogName | String | 主キーを含むデータベース。 |
ReferencedSchemaName | String | 主キーを含むスキーマ。 |
ReferencedTableName | String | 主キーを含むテーブル。 |
ReferencedColumnName | String | 主キーのカラム名。 |
外部キーについて説明します。
次のクエリは、他のテーブルを参照するすべての外部キーを取得します。
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
名前 | タイプ | 説明 |
CatalogName | String | キーを含むデータベースの名前。 |
SchemaName | String | キーを含むスキーマの名前。 |
TableName | String | キーを含むテーブルの名前。 |
ColumnName | String | キーカラムの名前 |
PrimaryKeyName | String | 主キーの名前。 |
ForeignKeyName | String | 外部キーの名前。 |
ReferencedCatalogName | String | 主キーを含むデータベース。 |
ReferencedSchemaName | String | 主キーを含むスキーマ。 |
ReferencedTableName | String | 主キーを含むテーブル。 |
ReferencedColumnName | String | 主キーのカラム名。 |
ForeignKeyType | String | 外部キーがインポート(他のテーブルを指す)キーかエクスポート(他のテーブルから参照される)キーかを指定します。 |
主キーについて説明します。
次のクエリは、すべてのテーブルとビューから主キーを取得します。
SELECT * FROM sys_primarykeys
Name | Type | Description |
CatalogName | String | キーを含むデータベースの名前。 |
SchemaName | String | キーを含むスキーマの名前。 |
TableName | String | キーを含むテーブルの名前。 |
ColumnName | String | キーカラムの名前。 |
KeySeq | String | 主キーのシーケンス番号。 |
KeyName | String | 主キーの名前。 |
利用可能なインデックスについて説明します。インデックスをフィルタリングすることで、より高速なクエリ応答時間でセレクティブクエリを記述できます。
次のクエリは、主キーでないすべてのインデックスを取得します。
SELECT * FROM sys_indexes WHERE IsPrimary='false'
Name | Type | Description |
CatalogName | String | インデックスを含むデータベースの名前。 |
SchemaName | String | インデックスを含むスキーマの名前。 |
TableName | String | インデックスを含むテーブルの名前。 |
IndexName | String | インデックス名。 |
ColumnName | String | インデックスに関連付けられたカラムの名前。 |
IsUnique | Boolean | インデックスが固有の場合はTrue。そうでない場合はFalse。 |
IsPrimary | Boolean | インデックスが主キーの場合はTrue。そうでない場合はFalse。 |
Type | Int16 | インデックスタイプに対応する整数値:statistic (0)、clustered (1)、hashed (2)、またはother (3)。 |
SortOrder | String | 並べ替え順序:A が昇順、D が降順。 |
OrdinalPosition | Int16 | インデックスのカラムのシーケンスナンバー。 |
利用可能な接続プロパティと、接続文字列に設定されている接続プロパティに関する情報を返します。
このテーブルをクエリする際は、config 接続文字列を使用する必要があります。
jdbc:cdata:slack:config:
この接続文字列を使用すると、有効な接続がなくてもこのテーブルをクエリできます。
次のクエリは、接続文字列に設定されている、あるいはデフォルト値で設定されているすべての接続プロパティを取得します。
SELECT * FROM sys_connection_props WHERE Value <> ''
Name | Type | Description |
Name | String | 接続プロパティ名。 |
ShortDescription | String | 簡単な説明。 |
Type | String | 接続プロパティのデータ型。 |
Default | String | 明示的に設定されていない場合のデフォルト値。 |
Values | String | 可能な値のカンマ区切りリスト。別な値が指定されていると、検証エラーがスローされます。 |
Value | String | 設定した値またはあらかじめ設定されたデフォルト。 |
Required | Boolean | プロパティが接続に必要かどうか。 |
Category | String | 接続プロパティのカテゴリ。 |
IsSessionProperty | String | プロパティが、現在の接続に関する情報を保存するために使用されるセッションプロパティかどうか。 |
Sensitivity | String | プロパティの機密度。これは、プロパティがロギングおよび認証フォームで難読化されているかどうかを通知します。 |
PropertyName | String | キャメルケースの短縮形の接続プロパティ名。 |
Ordinal | Int32 | パラメータのインデックス。 |
CatOrdinal | Int32 | パラメータカテゴリのインデックス。 |
Hierarchy | String | このプロパティと一緒に設定する必要がある、関連のある依存プロパティを表示します。 |
Visible | Boolean | プロパティが接続UI に表示されるかどうかを通知します。 |
ETC | String | プロパティに関するその他のさまざまな情報。 |
Cloud がデータソースにオフロードできるSELECT クエリ処理について説明します。
SQL 構文の詳細については、SQL 準拠 を参照してください。
以下はSQL 機能のサンプルデータセットです。 SELECT 機能のいくつかの側面がサポートされている場合には、カンマ区切りのリストで返されます。サポートされていない場合、カラムにはNO が入ります。
名前 | 説明 | 有効な値 |
AGGREGATE_FUNCTIONS | サポートされている集計関数。 | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
COUNT | COUNT 関数がサポートされているかどうか。 | YES, NO |
IDENTIFIER_QUOTE_OPEN_CHAR | 識別子をエスケープするための開始文字。 | [ |
IDENTIFIER_QUOTE_CLOSE_CHAR | 識別子をエスケープするための終了文字。 | ] |
SUPPORTED_OPERATORS | サポートされているSQL 演算子。 | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
GROUP_BY | GROUP BY がサポートされているかどうか。サポートされている場合、どのレベルでサポートされているか。 | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
OJ_CAPABILITIES | サポートされている外部結合の種類。 | NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS |
OUTER_JOINS | 外部結合がサポートされているかどうか。 | YES, NO |
SUBQUERIES | サブクエリがサポートされているかどうか。サポートされていれば、どのレベルでサポートされているか。 | NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED |
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_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_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_TABLES | レプリケーション中にスキップされたテーブルを示します。 | |
REPLICATION_TIMECHECK_COLUMNS | レプリケーション中に更新判断のカラムとして使用するかどうかを、(指定された順に)チェックするカラムのリストを含む文字列の配列。 | |
IDENTIFIER_PATTERN | 識別子としてどの文字列が有効かを示す文字列値。 | |
SUPPORT_TRANSACTION | プロバイダーが、コミットやロールバックなどのトランザクションをサポートしているかどうかを示します。 | YES, NO |
DIALECT | 使用するSQL ダイアレクトを示します。 | |
KEY_PROPERTIES | Uniform データベースを特定するプロパティを示します。 | |
SUPPORTS_MULTIPLE_SCHEMAS | プロバイダー用に複数のスキームが存在するかどうかを示します。 | YES, NO |
SUPPORTS_MULTIPLE_CATALOGS | プロバイダー用に複数のカタログが存在するかどうかを示します。 | YES, NO |
DATASYNCVERSION | このドライバーにアクセスするために必要な、CData Sync のバージョン。 | Standard, Starter, Professional, Enterprise |
DATASYNCCATEGORY | このドライバーのCData Sync カテゴリ。 | Source, Destination, Cloud Destination |
SUPPORTSENHANCEDSQL | API で提供されている以上の、追加SQL 機能がサポートされているかどうか。 | TRUE, FALSE |
SUPPORTS_BATCH_OPERATIONS | バッチ操作がサポートされているかどうか。 | YES, NO |
SQL_CAP | このドライバーでサポートされているすべてのSQL 機能。 | 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_OPTIONS | 使用したいcacheOptions を指定する文字列値。 | |
ENABLE_EF_ADVANCED_QUERY | ドライバーがEntity Framework の高度なクエリをサポートしているかどうかを示します。サポートしていなければ、クエリはクライアントサイドで処理されます。 | YES, NO |
PSEUDO_COLUMNS | 利用可能な疑似カラムを示す文字列の配列。 | |
MERGE_ALWAYS | 値がtrue であれば、CData Sync 内でMerge Model が強制的に実行されます。 | TRUE, FALSE |
REPLICATION_MIN_DATE_QUERY | レプリケート開始日時を返すSELECT クエリ。 | |
REPLICATION_MIN_FUNCTION | サーバーサイドでmin を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
REPLICATION_START_DATE | レプリケート開始日を、プロバイダーが指定できるようになります。 | |
REPLICATION_MAX_DATE_QUERY | レプリケート終了日時を返すSELECT クエリ。 | |
REPLICATION_MAX_FUNCTION | サーバーサイドでmax を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
IGNORE_INTERVALS_ON_INITIAL_REPLICATE | 初回のレプリケートで、レプリケートをチャンクに分割しないテーブルのリスト。 | |
CHECKCACHE_USE_PARENTID | CheckCache 構文を親キーカラムに対して実行するかどうかを示します。 | TRUE, FALSE |
CREATE_SCHEMA_PROCEDURES | スキーマファイルの生成に使用できる、ストアドプロシージャを示します。 |
次のクエリは、WHERE 句で使用できる演算子を取得します。
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
WHERE 句では、個々のテーブルの制限や要件が異なる場合がありますので注意してください。詳しくは、データモデル セクションを参照してください。
Name | Type | Description |
NAME | String | SQL 構文のコンポーネント、またはサーバー上で処理できる機能。 |
VALUE | String | サポートされるSQL またはSQL 構文の詳細。 |
試行された変更に関する情報を返します。
次のクエリは、バッチ処理で変更された行のId を取得します。
SELECT * FROM sys_identity
Name | Type | Description |
Id | String | データ変更処理から返された、データベース生成Id。 |
Batch | String | バッチの識別子。1 は単一処理。 |
Operation | String | バッチ内の処理の結果:INSERTED、UPDATED、またはDELETED。 |
Message | String | SUCCESS、またはバッチ内の更新が失敗した場合のエラーメッセージ。 |
プロパティ | 説明 |
AuthScheme | The scheme used for authentication. Accepted entries are OAuth and UserToken. |
OAuthVersion | The type of authentication to use when connecting to Slack. |
UserToken | Set this to use the non-expiring user token created in Slack. |
プロパティ | 説明 |
SSLServerCert | TLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。 |
プロパティ | 説明 |
Verbosity | ログファイルの記述をどの程度の詳細さで記載するかを決定するverbosity レベル。 |
プロパティ | 説明 |
BrowsableSchemas | このプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
プロパティ | 説明 |
MaxRows | クエリで集計またはGROUP BY を使用しない場合に返される行数を制限します。これはLIMIT 句よりも優先されます。 |
PseudoColumns | このプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。 |
Team | The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against. |
Timeout | タイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。 |
このセクションでは、本プロバイダーの接続文字列で設定可能なAuthentication プロパティの全リストを提供します。
プロパティ | 説明 |
AuthScheme | The scheme used for authentication. Accepted entries are OAuth and UserToken. |
OAuthVersion | The type of authentication to use when connecting to Slack. |
UserToken | Set this to use the non-expiring user token created in Slack. |
The scheme used for authentication. Accepted entries are OAuth and UserToken.
string
"OAuth"
Use the following options to select your authentication scheme:
The type of authentication to use when connecting to Slack.
string
"v1"
Set this to use the non-expiring user token created in Slack.
string
""
Set this to use the non-expiring user token created in Slack.
このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。
プロパティ | 説明 |
SSLServerCert | TLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。 |
TLS/SSL を使用して接続するときに、サーバーが受け入れ可能な証明書。
string
""
TLS/SSL 接続を使用する場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。コンピュータによって信頼されていない他の証明書はすべて拒否されます。
このプロパティは、次のフォームを取ります:
説明 | 例 |
フルPEM 証明書(例では省略されています) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
証明書を保有するローカルファイルへのパス。 | C:\cert.cer |
公開鍵(例では省略されています) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
MD5 Thumbprint (hex 値はスペースおよびコロン区切り) | ecadbdda5a1529c58a1e9e09828d70e4 |
SHA1 Thumbprint (hex 値はスペースおよびコロン区切り) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
これを指定しない場合は、マシンが信用するすべての証明書が受け入れられます。
すべての証明書の受け入れを示すには、'*'を使用します。セキュリティ上の理由から、これはお勧めできません。
このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。
プロパティ | 説明 |
Verbosity | ログファイルの記述をどの程度の詳細さで記載するかを決定するverbosity レベル。 |
このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。
プロパティ | 説明 |
BrowsableSchemas | このプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
このプロパティは、使用可能なスキーマのサブセットにレポートされるスキーマを制限します。例えば、BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
string
""
スキーマをデータベースからリストすると、負荷がかかる可能性があります。接続文字列でスキーマのリストを提供すると、 パフォーマンスが向上します。
このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。
プロパティ | 説明 |
MaxRows | クエリで集計またはGROUP BY を使用しない場合に返される行数を制限します。これはLIMIT 句よりも優先されます。 |
PseudoColumns | このプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。 |
Team | The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against. |
Timeout | タイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。 |
クエリで集計またはGROUP BY を使用しない場合に返される行数を制限します。これはLIMIT 句よりも優先されます。
int
-1
クエリで集計またはGROUP BY を使用しない場合に返される行数を制限します。これはLIMIT 句よりも優先されます。
このプロパティは、テーブルのカラムとして疑似カラムが含まれているかどうかを示します。
string
""
Entity Framework ではテーブルカラムでない疑似カラムに値を設定できないため、この設定はEntity Framework で特に便利です。この接続設定の値は、"Table1=Column1, Table1=Column2, Table2=Column3" の形式です。"*=*" のように"*" 文字を使用して、すべてのテーブルとすべてのカラムを含めることができます。
The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against.
string
""
The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against.
タイムアウトエラーがスローされ、処理をキャンセルするまでの秒数。
int
60
Timeout が0に設定されている場合は、操作がタイムアウトしません。処理が正常に完了するか、エラー状態になるまで実行されます。
Timeout の有効期限が切れても処理が完了していない場合は、Cloud は例外をスローします。