File tree Expand file tree Collapse file tree 4 files changed +23
-32
lines changed Expand file tree Collapse file tree 4 files changed +23
-32
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2015, 2021 , Oracle and/or its affiliates.
2+ * Copyright (c) 2015, 2022 , Oracle and/or its affiliates.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License, version 2.0, as
@@ -162,8 +162,8 @@ exports.getVersion = function () {
162162
163163/**
164164 * Database entity types.
165- * @name Mode
166- * @type {Query~ DataModel }
165+ * @const
166+ * @type {Query. DataModel }
167167 * @example
168168 * mysqlx.Mode.TABLE
169169 * mysqlx.Mode.DOCUMENT
@@ -172,8 +172,8 @@ exports.Mode = query.Type;
172172
173173/**
174174 * Locking modes.
175- * @name LockContention
176- * @type {Locking~ LockContention }
175+ * @const
176+ * @type {Locking. LockContention }
177177 * @example
178178 * mysqlx.LockContention.DEFAULT
179179 * mysqlx.LockContention.NOWAIT
@@ -183,7 +183,8 @@ exports.LockContention = locking.LockContention;
183183
184184/**
185185 * Schema validation.
186- * @name Schema
186+ * @const
187+ * @property {module:Schema.ValidationLevel } ValidationLevel
187188 * @example
188189 * mysqlx.Schema.ValidationLevel.OFF
189190 * mysqlx.Schema.ValidationLevel.STRICT
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2017, 2021 , Oracle and/or its affiliates.
2+ * Copyright (c) 2017, 2022 , Oracle and/or its affiliates.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License, version 2.0, as
@@ -39,17 +39,22 @@ const preparing = require('./Preparing');
3939 * Enum to identify row locking types.
4040 * @readonly
4141 * @private
42- * @name Type
42+ * @name Locking. Type
4343 * @enum {number}
44+ * @example
45+ * Type.NONE
46+ * Type.EXCLUSIVE_LOCK
47+ * Type.SHARED_LOCK
4448 */
4549const Type = Object . assign ( { NONE : 0 } , RowLock ) ;
4650
4751/**
4852 * Enum to identify row locking modes.
4953 * @readonly
50- * @name LockContention
54+ * @name Locking. LockContention
5155 * @enum {number}
5256 * @example
57+ * LockContention.DEFAULT
5358 * LockContention.NOWAIT
5459 * LockContention.SKIP_LOCKED
5560 */
@@ -158,18 +163,8 @@ function Locking (state) {
158163 } ;
159164}
160165
161- /**
162- * Row locking types.
163- * @type {Type }
164- * @const
165- */
166+ // Export contants.
166167Locking . Type = Type ;
167-
168- /**
169- * Row locking modes.
170- * @type {LockContention }
171- * @const
172- */
173168Locking . LockContention = LockContention ;
174169
175170module . exports = Locking ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2017, 2021 , Oracle and/or its affiliates.
2+ * Copyright (c) 2017, 2022 , Oracle and/or its affiliates.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License, version 2.0, as
3333/**
3434 * Enum to identify data-model types and parser modes.
3535 * @readonly
36- * @name DataModel
36+ * @name Query. DataModel
3737 * @enum {number}
3838 * @example
3939 * DataModel.TABLE
@@ -45,7 +45,6 @@ const MessageType = require('../Protocol/Stubs/mysqlx_prepare_pb').Prepare.OneOf
4545/**
4646 * Query mixin.
4747 * @mixin
48- * @private
4948 * @alias Query
5049 * @param {Object } state
5150 * @returns {Query }
@@ -100,12 +99,7 @@ function Query (state) {
10099 } ;
101100}
102101
103- /**
104- * Database entity types.
105- * @type {DataModel }
106- * @const
107- * @private
108- */
102+ // Export constants.
109103Query . Type = DataModel ;
110104
111105module . exports = Query ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2015, 2021 , Oracle and/or its affiliates.
2+ * Copyright (c) 2015, 2022 , Oracle and/or its affiliates.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License, version 2.0, as
@@ -43,7 +43,7 @@ const log = logger('api:schema');
4343/**
4444 * Enum to identify schema validation levels.
4545 * @readonly
46- * @name ValidationLevel
46+ * @name module:Schema. ValidationLevel
4747 * @enum {string}
4848 * @example
4949 * ValidationLevel.OFF
@@ -64,7 +64,7 @@ const ValidationLevel = {
6464 * Options available for specifying a collection validation schema.
6565 * @typedef {object } module:Schema.SchemaValidationOptions
6666 * @prop {object } [schema] - [JSON Schema]{@link https://json-schema.org/} definition
67- * @prop {ValidationLevel } [level] - enforcement level
67+ * @prop {module:Schema. ValidationLevel } [level] - enforcement level
6868 */
6969
7070/**
@@ -308,6 +308,7 @@ function Schema (connection, name) {
308308 } ) ;
309309}
310310
311+ // Export constants.
311312Schema . ValidationLevel = ValidationLevel ;
312313
313314module . exports = Schema ;
You can’t perform that action at this time.
0 commit comments