mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 17:03:18 +08:00
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
19 lines
419 B
TypeScript
19 lines
419 B
TypeScript
import { IQueryAction, QueryAction } from './QueryAction'
|
|
|
|
interface IQuery {
|
|
from: (table: string, schema?: string) => IQueryAction
|
|
}
|
|
|
|
export class Query implements IQuery {
|
|
/**
|
|
* @param name the table name.
|
|
* @param schema the table schema, by default set to 'public'.
|
|
*/
|
|
from(name: string, schema?: string) {
|
|
return new QueryAction({
|
|
name,
|
|
schema: schema ?? 'public',
|
|
})
|
|
}
|
|
}
|