Skip to content

Commit b88c815

Browse files
committed
chore: Fix spelling - 'geometrical' -> 'geometry'
1 parent 13e185d commit b88c815

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ These schema properties configure table-level options. The options currently sup
12201220
+ [TextColumnDefinition](#textcolumndefinition)
12211221
+ [UpdatableTimeColumnDefinition](#updatabletimecolumndefinition)
12221222
+ [TimestampColumnDefinition](#timestampcolumndefinition)
1223-
+ [GeometricalColumnDefinition](#geometricalcolumndefinition)
1223+
+ [GeometryColumnDefinition](#geometrycolumndefinition)
12241224

12251225
[`mysql.ColTypes`](#module_mysql-plus..ColTypes) and [`pool.ColTypes`](#PoolPlus+ColTypes) both expose the following methods:
12261226

@@ -1279,7 +1279,7 @@ This class is what is used to define the column's attributes. These attributes c
12791279
+ Examples:
12801280
+ `.default('Hello')` produces `DEFAULT 'Hello'`
12811281
+ `.default(null)` produces `DEFAULT NULL`
1282-
+ __Note:__ `*blob`, `*text`, `json`, and geometrical columns cannot be assigned a default value other than `null`.
1282+
+ __Note:__ `*blob`, `*text`, `json`, and geometry columns cannot be assigned a default value other than `null`.
12831283
+ `primaryKey()` - Declares the column to be the table's primary key
12841284
+ `unique()` - Creates a unique index for the column
12851285
+ `index()` - Creates an index for the column
@@ -1385,7 +1385,7 @@ would define a column with this SQL:
13851385

13861386
Normally if the `DEFAULT` is unspecified, MySQL uses `CURRENT_TIMESTAMP` as the `DEFAULT` value of only the first timestamp column and `'0000-00-00 00:00:00'` for subsequent columns, but `mysql-plus` uses `CURRENT_TIMESTAMP` for all timestamp columns for consistency.
13871387

1388-
#### GeometricalColumnDefinition
1388+
#### GeometryColumnDefinition
13891389

13901390
Methods:
13911391

jsdoc2md/README.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ These schema properties configure table-level options. The options currently sup
261261
+ [TextColumnDefinition](#textcolumndefinition)
262262
+ [UpdatableTimeColumnDefinition](#updatabletimecolumndefinition)
263263
+ [TimestampColumnDefinition](#timestampcolumndefinition)
264-
+ [GeometricalColumnDefinition](#geometricalcolumndefinition)
264+
+ [GeometryColumnDefinition](#geometrycolumndefinition)
265265

266266
[`mysql.ColTypes`](#module_mysql-plus..ColTypes) and [`pool.ColTypes`](#PoolPlus+ColTypes) both expose the following methods:
267267

@@ -320,7 +320,7 @@ This class is what is used to define the column's attributes. These attributes c
320320
+ Examples:
321321
+ `.default('Hello')` produces `DEFAULT 'Hello'`
322322
+ `.default(null)` produces `DEFAULT NULL`
323-
+ __Note:__ `*blob`, `*text`, `json`, and geometrical columns cannot be assigned a default value other than `null`.
323+
+ __Note:__ `*blob`, `*text`, `json`, and geometry columns cannot be assigned a default value other than `null`.
324324
+ `primaryKey()` - Declares the column to be the table's primary key
325325
+ `unique()` - Creates a unique index for the column
326326
+ `index()` - Creates an index for the column
@@ -426,7 +426,7 @@ would define a column with this SQL:
426426

427427
Normally if the `DEFAULT` is unspecified, MySQL uses `CURRENT_TIMESTAMP` as the `DEFAULT` value of only the first timestamp column and `'0000-00-00 00:00:00'` for subsequent columns, but `mysql-plus` uses `CURRENT_TIMESTAMP` for all timestamp columns for consistency.
428428

429-
#### GeometricalColumnDefinition
429+
#### GeometryColumnDefinition
430430

431431
Methods:
432432

lib/ColumnDefinitions/GeometricalColumnDefinition.js renamed to lib/ColumnDefinitions/GeometryColumnDefinition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const ColumnDefinition = require('./ColumnDefinition');
44

5-
class GeometricalColumnDefinition extends ColumnDefinition {
5+
class GeometryColumnDefinition extends ColumnDefinition {
66
constructor(type) {
77
super(type);
88
this.$spatialIndex = false;
@@ -14,4 +14,4 @@ class GeometricalColumnDefinition extends ColumnDefinition {
1414
}
1515
}
1616

17-
module.exports = GeometricalColumnDefinition;
17+
module.exports = GeometryColumnDefinition;

lib/ColumnDefinitions/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'use strict';
77

88
const ColumnDefinition = require('./ColumnDefinition');
9-
const GeometricalColumnDefinition = require('./GeometricalColumnDefinition');
9+
const GeometryColumnDefinition = require('./GeometryColumnDefinition');
1010
const NumericColumnDefinition = require('./NumericColumnDefinition');
1111
const TextColumnDefinition = require('./TextColumnDefinition');
1212
const TimestampColumnDefinition = require('./TimestampColumnDefinition');
@@ -131,28 +131,28 @@ const ColumnDefinitions = {
131131
return new ColumnDefinition('json');
132132
},
133133
geometry() {
134-
return new GeometricalColumnDefinition('geometry');
134+
return new GeometryColumnDefinition('geometry');
135135
},
136136
point() {
137-
return new GeometricalColumnDefinition('point');
137+
return new GeometryColumnDefinition('point');
138138
},
139139
linestring() {
140-
return new GeometricalColumnDefinition('linestring');
140+
return new GeometryColumnDefinition('linestring');
141141
},
142142
polygon() {
143-
return new GeometricalColumnDefinition('polygon');
143+
return new GeometryColumnDefinition('polygon');
144144
},
145145
multipoint() {
146-
return new GeometricalColumnDefinition('multipoint');
146+
return new GeometryColumnDefinition('multipoint');
147147
},
148148
multilinestring() {
149-
return new GeometricalColumnDefinition('multilinestring');
149+
return new GeometryColumnDefinition('multilinestring');
150150
},
151151
multipolygon() {
152-
return new GeometricalColumnDefinition('multipolygon');
152+
return new GeometryColumnDefinition('multipolygon');
153153
},
154154
geometrycollection() {
155-
return new GeometricalColumnDefinition('geometrycollection');
155+
return new GeometryColumnDefinition('geometrycollection');
156156
},
157157
};
158158

test/unit/ColumnDefinitions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ describe('ColumnDefinitions', () => {
609609
});
610610

611611

612-
describe('geometrical data types', () => {
612+
describe('geometry data types', () => {
613613

614614
it('should be able to create spatial indexes', () => {
615615
ColumnDefinitions.geometry().spatialIndex()

0 commit comments

Comments
 (0)