Removed float as it is not used

This commit is contained in:
Sam 2025-04-14 11:28:50 +02:00
parent c545ce5bd1
commit a927bca4fe

View File

@ -569,24 +569,6 @@ class Structure {
return this;
}
/**
* Adds a new column of data type 'float' to this structure
* @param {String} name - Name of the column
* @param {Number} [p] - Precision. Min 1, Max 53. Defaults to 25
* @param {ConstraintOptions} [options] - Extra constraint options
* @returns {this}
*/
float(name, p=25, options={}){
if (!name) throw new Error("name must not be empty");
if (typeof name !== "string") throwTypeError("string", name);
if (typeof p !== "number") throwTypeError("number", p);
if (typeof options !== "object") throwTypeError("object", options);
if (p < 1 || p > 53) throwRangeError(1, 53, p);
this.#columns.push(parseColumnData(name, `float(${p})`, options));
return this;
}
/**
* Adds a new column of data type 'double' to this structure
* @param {String} name - Name of the column