fix linting
This commit is contained in:
@@ -1,27 +1,30 @@
|
|||||||
import assert from 'assert'
|
import assert from 'assert'
|
||||||
import {
|
import {
|
||||||
Kysely,
|
Kysely,
|
||||||
KyselyPlugin,
|
type KyselyPlugin,
|
||||||
Migrator,
|
Migrator,
|
||||||
PluginTransformQueryArgs,
|
type PluginTransformQueryArgs,
|
||||||
PluginTransformResultArgs,
|
type PluginTransformResultArgs,
|
||||||
PostgresDialect,
|
PostgresDialect,
|
||||||
QueryResult,
|
type QueryResult,
|
||||||
RootOperationNode,
|
type RootOperationNode,
|
||||||
UnknownRow,
|
type UnknownRow,
|
||||||
} from 'kysely'
|
} from 'kysely'
|
||||||
import {default as Pg} from 'pg'
|
import {default as Pg} from 'pg'
|
||||||
|
|
||||||
import {dbLogger as log} from '../logger.js'
|
import {dbLogger as log} from '../logger.js'
|
||||||
import {default as migrations} from './migrations/index.js'
|
import {default as migrations} from './migrations/index.js'
|
||||||
import {DbMigrationProvider} from './migrations/provider.js'
|
import {DbMigrationProvider} from './migrations/provider.js'
|
||||||
import {DbSchema} from './schema.js'
|
import {type DbSchema} from './schema.js'
|
||||||
|
|
||||||
export class Database {
|
export class Database {
|
||||||
migrator: Migrator
|
migrator: Migrator
|
||||||
destroyed = false
|
destroyed = false
|
||||||
|
|
||||||
constructor(public db: Kysely<DbSchema>, public cfg: PgConfig) {
|
constructor(
|
||||||
|
public db: Kysely<DbSchema>,
|
||||||
|
public cfg: PgConfig,
|
||||||
|
) {
|
||||||
this.migrator = new Migrator({
|
this.migrator = new Migrator({
|
||||||
db,
|
db,
|
||||||
migrationTableSchema: cfg.schema,
|
migrationTableSchema: cfg.schema,
|
||||||
|
|||||||
@@ -25,8 +25,9 @@ export function linkWarningLayout(
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
font-family:
|
||||||
Arial, sans-serif;
|
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial,
|
||||||
|
sans-serif;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user