Files
supabase/web/docs/common/FromFunction.mdx
T
2020-02-18 18:57:15 +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 updated.
</div>
<div style={{display: props.verb == 'delete' ? 'block' : 'none'}}>
#### `tableName: string`
Name of the database table where data will be deleted.
</div>
---