UNPKG

dm-web-react

Version:

The DM web client with React.

69 lines 5.55 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { TableBase } from "./tableBase"; import { CreateTableTemplate } from "../../models/database/createTableTemplate"; import { TableInfo } from "../../models/database/tableInfo"; var ExchangeImagePriceTable = /** @class */ (function (_super) { __extends(ExchangeImagePriceTable, _super); function ExchangeImagePriceTable() { var _this = _super.call(this) || this; _this.columnNames = []; _this.columnNames.push(_this.getColumnName("dataId")); _this.columnNames.push(_this.getColumnName("issueDataTime")); _this.columnNames.push(_this.getColumnName("bondCode")); _this.columnNames.push(_this.getColumnName("bid")); _this.columnNames.push(_this.getColumnName("bidValue")); _this.columnNames.push(_this.getColumnName("bidVolume")); _this.columnNames.push(_this.getColumnName("bidVolumeValue")); _this.columnNames.push(_this.getColumnName("ofr")); _this.columnNames.push(_this.getColumnName("ofrValue")); _this.columnNames.push(_this.getColumnName("ofrVolume")); _this.columnNames.push(_this.getColumnName("ofrVolumeValue")); _this.columnNames.push(_this.getColumnName("bidSubChinaBond")); _this.columnNames.push(_this.getColumnName("bidSubChinaBondValue")); _this.columnNames.push(_this.getColumnName("chinaBondSubOfr")); _this.columnNames.push(_this.getColumnName("chinaBondSubOfrValue")); _this.columnNames.push(_this.getColumnName("bidSubCsIndex")); _this.columnNames.push(_this.getColumnName("bidSubCsIndexValue")); _this.columnNames.push(_this.getColumnName("csIndexSubOfr")); _this.columnNames.push(_this.getColumnName("csIndexSubOfrValue")); _this.columnNames.push(_this.getColumnName("tradeSubChinaBond")); _this.columnNames.push(_this.getColumnName("tradeSubCsIndex")); _this.columnNames.push(_this.getColumnName("recentYtm")); _this.columnNames.push(_this.getColumnName("recentVolumn")); return _this; } ExchangeImagePriceTable.prototype.getColumnName = function (value) { return value.toString(); }; ExchangeImagePriceTable.prototype.getCreateTableTemplate = function () { var createSql = "CREATE TABLE " + ExchangeImagePriceTable.tableName + " (\n " + this.getColumnName("dataId") + " VARCHAR(50) PRIMARY KEY, \n " + this.getColumnName("id") + " INTEGER, \n " + this.getColumnName("issueDataTime") + " INTEGER,\n " + this.getColumnName("bondCode") + " VARCHAR(50),\n " + this.getColumnName("bid") + " VARCHAR(50),\n " + this.getColumnName("bidValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidVolume") + " VARCHAR(50),\n " + this.getColumnName("bidVolumeValue") + " DECIMAL(10,4),\n " + this.getColumnName("ofr") + " VARCHAR(50),\n " + this.getColumnName("ofrValue") + " DECIMAL(10,4),\n " + this.getColumnName("ofrVolume") + " VARCHAR(50),\n " + this.getColumnName("ofrVolumeValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidSubChinaBond") + " VARCHAR(50),\n " + this.getColumnName("bidSubChinaBondValue") + " DECIMAL(10,4),\n " + this.getColumnName("chinaBondSubOfr") + " VARCHAR(50),\n " + this.getColumnName("chinaBondSubOfrValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidSubCsIndex") + " VARCHAR(50),\n " + this.getColumnName("bidSubCsIndexValue") + " DECIMAL(10,4), \n " + this.getColumnName("csIndexSubOfr") + " VARCHAR(50),\n " + this.getColumnName("csIndexSubOfrValue") + " DECIMAL(10,4), \n " + this.getColumnName("tradeSubChinaBond") + " VARCHAR(50),\n " + this.getColumnName("tradeSubCsIndex") + " VARCHAR(50)\n ); \n CREATE INDEX IF NOT EXISTS index_" + ExchangeImagePriceTable.tableName + "_" + this.getColumnName("id") + " ON " + ExchangeImagePriceTable.tableName + "(" + this.getColumnName("id") + ");\n CREATE INDEX IF NOT EXISTS index_" + ExchangeImagePriceTable.tableName + "_" + this.getColumnName("issueDataTime") + " ON " + ExchangeImagePriceTable.tableName + "(" + this.getColumnName("issueDataTime") + ");"; var result = new CreateTableTemplate(); result.createSql = createSql; result.tableName = ExchangeImagePriceTable.tableName; result.version = ExchangeImagePriceTable.version; return result; }; ExchangeImagePriceTable.prototype.getTableInfo = function () { var result = new TableInfo(); result.tableName = ExchangeImagePriceTable.tableName; result.columnNames = this.columnNames; return result; }; ExchangeImagePriceTable.tableName = "exchangeImagePrice"; ExchangeImagePriceTable.version = 1; return ExchangeImagePriceTable; }(TableBase)); export { ExchangeImagePriceTable }; //# sourceMappingURL=exchangeImagePriceTable.js.map