ts-db-helper
Version:
Simple ORM based on TypeScript
27 lines • 659 B
JavaScript
import { QueryCreate } from './query-create.model';
/**
* @public
* @function Create
*
* @description
* this function is an helper to create table
* This function is designed to help connectors to manage data model creation
*
* @example
* ```typescript
* Create(TodoDataModel).exec().subscribe((QueryResult<any>) = {
* // todo something on create succeed
* }, (err) => {
* // do something with the error
* });
* ```
*
* @return {QueryCreate} instance
*
* @author Olivier Margarit
* @since 0.1
*/
export function Create(table) {
return new QueryCreate(table);
}
//# sourceMappingURL=create.js.map