@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
25 lines (14 loc) • 553 B
Markdown
[**/ent-framework**](../README.md)
***
[/ent-framework](../globals.md) / buildShape
# Function: buildShape()
> **buildShape**(`sql`): `string`
Defined in: [src/pg/helpers/buildShape.ts:52](https://github.com/clickup/ent-framework/blob/master/src/pg/helpers/buildShape.ts#L52)
Extracts a "shape" from some commonly built SQL queries. This function may be
used from the outside for logging/debugging, so it's here, not in __tests__.
## Parameters
| Parameter | Type |
| ------ | ------ |
| `sql` | `string` |
## Returns
`string`