| <?xml version="1.0" encoding="utf-8" standalone="yes"?> |
| <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
| <channel> |
| <title>Resource Definition on ShardingSphere</title> |
| <link>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/</link> |
| <description>Recent content in Resource Definition on ShardingSphere</description> |
| <generator>Hugo -- gohugo.io</generator> |
| <language>en-us</language> |
| |
| <atom:link href="https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/index.xml" rel="self" type="application/rss+xml" /> |
| |
| |
| <item> |
| <title>ADD RESOURCE</title> |
| <link>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/add-resource/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/add-resource/</guid> |
| <description>Description The ADD RESOURCE syntax is used to add resources for the currently selected database. |
| Syntax AddResource ::= &#39;ADD&#39; &#39;RESOURCE&#39; resourceDefinition (&#39;,&#39; resourceDefinition)* resourceDefinition ::= resourceName &#39;(&#39; ( &#39;HOST&#39; &#39;=&#39; hostName &#39;,&#39; &#39;PORT&#39; &#39;=&#39; port &#39;,&#39; &#39;DB&#39; &#39;=&#39; dbName | &#39;URL&#39; &#39;=&#39; url ) &#39;,&#39; &#39;USER&#39; &#39;=&#39; user (&#39;,&#39; &#39;PASSWORD&#39; &#39;=&#39; password )? (&#39;,&#39; proerties)?&#39;)&#39; resourceName ::= identifier hostname ::= string port ::= int dbName ::= string url ::= string user ::= string password ::= string proerties ::= PROPERTIES &#39;(&#39; property ( &#39;,&#39; property )* &#39;)&#39; property ::= key &#39;=&#39; value key ::= string value ::= string Supplement Before adding resources, please confirm that a database has been created in Proxy, and execute the use command to successfully select a database; Confirm that the added resource can be connected normally, otherwise it will not be added successfully; resourceName is case-sensitive; resourceName needs to be unique within the current database; resourceName name only allows letters, numbers and _, and must start with a letter; poolProperty is used to customize connection pool parameters, key must be the same as the connection pool parameter name, value supports int and String types; When password contains special characters, it is recommended to use the string form; For example, the string form of password@123 is &quot;password@123&quot;.</description> |
| </item> |
| |
| <item> |
| <title>ALTER RESOURCE</title> |
| <link>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/alter-resource/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/alter-resource/</guid> |
| <description>Description The ALTER RESOURCE syntax is used to alter resources for the currently selected database. |
| Syntax AlterResource ::= &#39;ALTER&#39; &#39;RESOURCE&#39; resourceDefinition (&#39;,&#39; resourceDefinition)* resourceDefinition ::= resourceName &#39;(&#39; ( &#39;HOST&#39; &#39;=&#39; hostName &#39;,&#39; &#39;PORT&#39; &#39;=&#39; port &#39;,&#39; &#39;DB&#39; &#39;=&#39; dbName | &#39;URL&#39; &#39;=&#39; url ) &#39;,&#39; &#39;USER&#39; &#39;=&#39; user (&#39;,&#39; &#39;PASSWORD&#39; &#39;=&#39; password )? (&#39;,&#39; proerties)?&#39;)&#39; resourceName ::= identifier hostname ::= string port ::= int dbName ::= string url ::= string user ::= string password ::= string proerties ::= PROPERTIES &#39;(&#39; property ( &#39;,&#39; property )* &#39;)&#39; property ::= key &#39;=&#39; value key ::= string value ::= string Supplement Before altering the resources, please confirm that a database exists in Proxy, and execute the use command to successfully select a database; ALTER RESOURCE is not allowed to change the real data source associated with this resource; ALTER RESOURCE will switch the connection pool.</description> |
| </item> |
| |
| <item> |
| <title>DROP RESOURCE</title> |
| <link>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/drop-resource/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/document/current/en/reference/distsql/syntax/rdl/resource-definition/drop-resource/</guid> |
| <description>Description The DROP RESOURCE syntax is used to drop resources from the current database |
| Syntax DropResource ::= &#39;DROP&#39; &#39;RESOURCE&#39; ( &#39;IF&#39; &#39;EXISTS&#39; )? resourceName ( &#39;,&#39; resourceName )* ( &#39;IGNORE&#39; &#39;SINGLE&#39; &#39;TABLES&#39; )? resourceName ::= identifier Supplement DROP RESOURCE will only drop resources in Proxy, the real data source corresponding to the resource will not be dropped; Unable to drop resources already used by rules. Resources are still in used.</description> |
| </item> |
| |
| </channel> |
| </rss> |