Files
supabase/web/docs/common/FromFunction.mdx
T
Angelico a95f262e9d Further Changes to Documentation
The following changes were made:
- Clean up getting-started.mdx for better formatting.
- Edited and cleaned up subscribe.mdx based on latest changes.
- Introduced from() to all.
2020-01-14 08:59:36 +08:00

38 lines
961 B
Plaintext

import Collapsable from '../../src/components/Collapsable'
<!-- prettier-ignore -->
```js {2}
supabase
.from(tableName)
```
<div style={{display: props.verb == 'subscribe' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table to be listened to. Using the wildcard `"*"` will lead to all tables to be listened to.
</div>
<div style={{display: props.verb == 'get' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table that will be read from.
</div>
<div style={{display: props.verb == 'post' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table where data will be saved.
</div>
<div style={{display: props.verb == 'patch' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table where data will be udpated.
</div>
<div style={{display: props.verb == 'delete' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table where data will be deleted.
</div>
---