MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / getTableInfo

Method getTableInfo

frontend/src/lib/api/postgresService.ts:110–121  ·  view source on GitHub ↗
(
    connectionId: string,
    schemaName: string,
    tableName: string
  )

Source from the content-addressed store, hash-verified

108 }
109
110 async getTableInfo(
111 connectionId: string,
112 schemaName: string,
113 tableName: string
114 ): Promise<PostgreSQLTableInfo> {
115 const response = await apiClient.get<BackendResponse<PostgreSQLTableInfo>>(
116 `${this.baseUrl}/connections/${connectionId}/schemas/${encodeURIComponent(
117 schemaName
118 )}/tables/${encodeURIComponent(tableName)}`
119 );
120 return response.data;
121 }
122
123 async previewTableData(
124 connectionId: string,

Callers 1

postgresStore.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected