\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/transfersh/SecureShareMail/node_modules/drizzle-orm/singlestore-core/columns/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/transfersh/SecureShareMail/node_modules/drizzle-orm/singlestore-core/columns/text.js |
import { entityKind } from "../../entity.js";
import { getColumnNameAndConfig } from "../../utils.js";
import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
class SingleStoreTextBuilder extends SingleStoreColumnBuilder {
static [entityKind] = "SingleStoreTextBuilder";
constructor(name, textType, config) {
super(name, "string", "SingleStoreText");
this.config.textType = textType;
this.config.enumValues = config.enum;
}
/** @internal */
build(table) {
return new SingleStoreText(
table,
this.config
);
}
}
class SingleStoreText extends SingleStoreColumn {
static [entityKind] = "SingleStoreText";
textType = this.config.textType;
enumValues = this.config.enumValues;
getSQLType() {
return this.textType;
}
}
function text(a, b = {}) {
const { name, config } = getColumnNameAndConfig(a, b);
return new SingleStoreTextBuilder(name, "text", config);
}
function tinytext(a, b = {}) {
const { name, config } = getColumnNameAndConfig(a, b);
return new SingleStoreTextBuilder(name, "tinytext", config);
}
function mediumtext(a, b = {}) {
const { name, config } = getColumnNameAndConfig(a, b);
return new SingleStoreTextBuilder(name, "mediumtext", config);
}
function longtext(a, b = {}) {
const { name, config } = getColumnNameAndConfig(a, b);
return new SingleStoreTextBuilder(name, "longtext", config);
}
export {
SingleStoreText,
SingleStoreTextBuilder,
longtext,
mediumtext,
text,
tinytext
};
//# sourceMappingURL=text.js.map