@antjs/ant-sql
Advanced tools
Comparing version 1.0.0-beta.13 to 1.0.0-beta.14
import { AntSqlManager } from './api/ant-sql-manager'; | ||
import { ApiSqlGeneralManager } from './api/api-sql-general-manager'; | ||
import { ApiSqlModel } from './api/api-sql-model'; | ||
import { ApiSqlModelManager } from './api/api-sql-model-manager'; | ||
import { ApiCfgGenOptions } from './api/config/api-config-generation-options'; | ||
import { ApiSqlModelConfig } from './api/config/api-sql-model-config'; | ||
import { AntSqlModel } from './model/ant-sql-model'; | ||
import { AutoGeneratedStrategyMode } from './model/auto-generation-strategy-mode'; | ||
import { SqlColumn } from './model/sql-column'; | ||
import { SqlModel } from './model/sql-model'; | ||
import { SqlType } from './model/sql-type'; | ||
import { KnexDriver } from './persistence/secondary/knex-driver'; | ||
export { ApiCfgGenOptions, ApiSqlGeneralManager, AntSqlManager, AntSqlModel, ApiSqlModelConfig, ApiSqlModelManager, AutoGeneratedStrategyMode, KnexDriver, SqlColumn, SqlModel, }; | ||
export { ApiCfgGenOptions, ApiSqlGeneralManager, AntSqlManager, ApiSqlModel, ApiSqlModelConfig, ApiSqlModelManager, AutoGeneratedStrategyMode, KnexDriver, SqlColumn, SqlModel, SqlType, }; |
@@ -5,7 +5,7 @@ "use strict"; | ||
exports.AntSqlManager = ant_sql_manager_1.AntSqlManager; | ||
const ant_sql_model_1 = require("./model/ant-sql-model"); | ||
exports.AntSqlModel = ant_sql_model_1.AntSqlModel; | ||
const auto_generation_strategy_mode_1 = require("./model/auto-generation-strategy-mode"); | ||
exports.AutoGeneratedStrategyMode = auto_generation_strategy_mode_1.AutoGeneratedStrategyMode; | ||
const sql_type_1 = require("./model/sql-type"); | ||
exports.SqlType = sql_type_1.SqlType; | ||
const knex_driver_1 = require("./persistence/secondary/knex-driver"); | ||
exports.KnexDriver = knex_driver_1.KnexDriver; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ant_model_1 = require("@antjs/ant-js/build/model/ant-model"); | ||
const sql_type_1 = require("./sql-type"); | ||
class AntSqlModel extends ant_model_1.AntModel { | ||
@@ -26,3 +27,3 @@ constructor(id, keyGen, columns, tableName) { | ||
primaryToEntity(primary) { | ||
const dateColumns = this._columnsByType.get(0); | ||
const dateColumns = this._columnsByType.get(sql_type_1.SqlType.Date); | ||
if (undefined !== dateColumns) { | ||
@@ -29,0 +30,0 @@ for (const column of dateColumns) { |
@@ -1,2 +0,2 @@ | ||
export declare const enum SqlType { | ||
export declare enum SqlType { | ||
Date = 0, | ||
@@ -3,0 +3,0 @@ Integer = 1, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SqlType; | ||
(function (SqlType) { | ||
SqlType[SqlType["Date"] = 0] = "Date"; | ||
SqlType[SqlType["Integer"] = 1] = "Integer"; | ||
SqlType[SqlType["String"] = 2] = "String"; | ||
})(SqlType = exports.SqlType || (exports.SqlType = {})); |
{ | ||
"name": "@antjs/ant-sql", | ||
"version": "1.0.0-beta.13", | ||
"version": "1.0.0-beta.14", | ||
"description": "SQL extension for AntJS", | ||
@@ -5,0 +5,0 @@ "main": "build/ant.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47332
950