You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
428 B
15 lines
428 B
import {Connection} from '../connection/Connection'
|
|
import {Awaitable} from '../../util'
|
|
|
|
export abstract class Schema {
|
|
constructor(
|
|
protected readonly connection: Connection,
|
|
) { }
|
|
|
|
public abstract hasTable(name: string): Awaitable<boolean>
|
|
|
|
public abstract hasColumn(table: string, name: string): Awaitable<boolean>
|
|
|
|
public abstract hasColumns(table: string, name: string[]): Awaitable<boolean>
|
|
}
|