MCPcopy Index your code
hub / github.com/parse-community/parse-server / getColumns

Function getColumns

spec/PostgresStorageAdapter.spec.js:8–14  ·  view source on GitHub ↗
(client, className)

Source from the content-addressed store, hash-verified

6const Config = require('../lib/Config');
7
8const getColumns = (client, className) => {
9 return client.map(
10 'SELECT column_name FROM information_schema.columns WHERE table_name = $<className>',
11 { className },
12 a => a.column_name
13 );
14};
15
16const dropTable = (client, className) => {
17 return client.none('DROP TABLE IF EXISTS $<className:name>', { className });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected