@mvx/typeorm-adapter
Version:
@mvx/typeorm-adapter is typeorm adapter orm for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc frameworker on server.
41 lines (40 loc) • 2.33 kB
TypeScript
/// <reference types="node" />
import { ModelParser, DBPropertyMetadata } from '@mvx/mvc';
import { Type, ObjectMap, SymbolType } from '@tsdi/ioc';
import { ColumnMetadataArgs } from 'typeorm/metadata-args/ColumnMetadataArgs';
export declare class TypeOrmModelParser extends ModelParser {
constructor();
setup(): void;
protected getPropertyMeta(type: Type): ObjectMap<DBPropertyMetadata[]>;
protected isExtendBaseType(type: SymbolType, propmeta?: DBPropertyMetadata): boolean;
protected resolveExtendType(type: SymbolType, value: any, propmeta?: DBPropertyMetadata): any;
protected getModeType(col: ColumnMetadataArgs): string | symbol | import("@tsdi/ioc").AbstractType<any> | import("@tsdi/ioc").IToken<any> | {
new (str: string, encoding?: string): Buffer;
new (size: number): Buffer;
new (array: Uint8Array): Buffer;
new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
new (array: any[]): Buffer;
new (buffer: Buffer): Buffer;
prototype: Buffer;
from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;
from(data: any[]): Buffer;
from(data: Uint8Array): Buffer;
from(obj: {
valueOf(): string | object;
} | {
[Symbol.toPrimitive](hint: "string"): string;
}, byteOffset?: number, length?: number): Buffer;
from(str: string, encoding?: string): Buffer;
of(...items: number[]): Buffer;
isBuffer(obj: any): obj is Buffer;
isEncoding(encoding: string): boolean;
byteLength(string: string | Uint8Array | ArrayBuffer | SharedArrayBuffer | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | DataView, encoding?: string): number;
concat(list: Uint8Array[], totalLength?: number): Buffer;
compare(buf1: Uint8Array, buf2: Uint8Array): number;
alloc(size: number, fill?: string | number | Buffer, encoding?: string): Buffer;
allocUnsafe(size: number): Buffer;
allocUnsafeSlow(size: number): Buffer;
poolSize: number;
} | ObjectConstructor | StringConstructor | BooleanConstructor | DateConstructor | NumberConstructor | ArrayConstructor;
static getClassAnnations(): any;
}