MCPcopy
hub / github.com/cweijan/vscode-database-client / createTemplate

Method createTemplate

src/model/main/tableGroup.ts:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 public async createTemplate() {
45 ConnectionManager.getConnection(this, true);
46 const filePath=await FileManager.record(`${this.info.id}#create-table-template.sql`,`CREATE TABLE [name](
47 id int NOT NULL primary key AUTO_INCREMENT comment 'primary key',
48 created_time DATETIME COMMENT 'created tiem',
49 updated_time DATETIME COMMENT 'updated tiem',
50 [column] varchar(255) comment ''
51) default charset utf8 comment '';`,FileModel.WRITE)
52 FileManager.show(filePath)
53
54 }
55}

Callers

nothing calls this directly

Calls 3

recordMethod · 0.80
getConnectionMethod · 0.65
showMethod · 0.65

Tested by

no test coverage detected