Skip to content

Commit 3df5403

Browse files
authored
Added new region codes: XSP, UKY
1 parent 0a90b6d commit 3df5403

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
1313
- ReplicaStats
1414
- Replica
1515
as well as additional replica-related information in TableResult
16-
- Latest Oracle Cloud Infrastructure regions and region codes: TYO, ABH, DAC, DOH, IZQ
16+
- Latest Oracle Cloud Infrastructure regions and region codes: TYO, ABH, DAC, DOH,
17+
IZQ, UKY, XSP
1718
- Added support for array_collect() and count(distinct) in queries. These
1819
require server side support which is only available in Oracle NoSQL releases
1920
23.3 and higher and will not be immediately available in the cloud service

nosqldb/common/region.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ const (
8787
RegionILJerusalem1 Region = "il-jerusalem-1"
8888
// RegionAFJohannesburg represents the region for Johannesburg
8989
RegionAFJohannesburg Region = "af-johannesburg-1"
90-
// RegionAPSignapore represents the region for singapore
91-
RegionAPSignapore Region = "ap-singapore-1"
90+
// RegionAPSingapore represents the region for singapore
91+
RegionAPSingapore Region = "ap-singapore-1"
92+
// RegionAPSingapore2 represents the second region for singapore
93+
RegionAPSingapore2 Region = "ap-singapore-2"
9294
// RegionEUMarseille represents the region for Marseille
9395
RegionEUMarseille Region = "eu-marseille-1"
9496
// RegionEUStockholm represents the region for Stockholm
@@ -206,6 +208,8 @@ const (
206208

207209
// RegionAPDCCTokyo1 represents the dedicated region for Tokyo
208210
RegionAPDCCTokyo1 Region = "ap-dcc-tokyo-1"
211+
// RegionAPDCCOsaka1 represents the dedicated region for Osaka
212+
RegionAPDCCOsaka1 Region = "ap-dcc-osaka-1"
209213

210214
// OC26 REGIONS
211215

@@ -288,7 +292,8 @@ var regionRealm = map[Region]string{
288292
RegionSAVinhedo1: "oc1",
289293
RegionSAValparaiso1: "oc1",
290294
RegionAFJohannesburg: "oc1",
291-
RegionAPSignapore: "oc1",
295+
RegionAPSingapore: "oc1",
296+
RegionAPSingapore2: "oc1",
292297
RegionEUMarseille: "oc1",
293298
RegionMEAbudhabi: "oc1",
294299
RegionEUStockholm: "oc1",
@@ -339,6 +344,7 @@ var regionRealm = map[Region]string{
339344
RegionEUDCCZurich1: "oc24",
340345

341346
RegionAPDCCTokyo1: "oc25",
347+
RegionAPDCCOsaka1: "oc25",
342348

343349
RegionMEAbudhabi3: "oc26",
344350

@@ -388,7 +394,8 @@ var shortNameRegion = map[string]Region{
388394
"mtz": RegionILJerusalem1,
389395
"syd": RegionAPSydney1,
390396
"jnb": RegionAFJohannesburg,
391-
"sin": RegionAPSignapore,
397+
"sin": RegionAPSingapore,
398+
"xsp": RegionAPSingapore2,
392399
"mrs": RegionEUMarseille,
393400
"auh": RegionMEAbudhabi,
394401
"arn": RegionEUStockholm,
@@ -420,6 +427,7 @@ var shortNameRegion = map[string]Region{
420427
"nap": RegionEUDCCRome1,
421428
"avz": RegionEUDCCZurich1,
422429
"tyo": RegionAPDCCTokyo1,
430+
"uky": RegionAPDCCOsaka1,
423431
"ahu": RegionMEAbudhabi3,
424432
"ozz": RegionUSDCCSWJordan1,
425433
"drs": RegionUSDCCSWJordan2,

0 commit comments

Comments
 (0)