Some checks failed
Main Confidence / confidence (push) Failing after 45s
## Summary - introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries - apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces - expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests ## Validation - `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent` - focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions) - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions) Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #253
65 lines
3.3 KiB
Plaintext
65 lines
3.3 KiB
Plaintext
import { entityKind } from "../entity.js";
|
|
import type { MigrationConfig, MigrationMeta } from "../migrator.js";
|
|
import { type BuildRelationalQueryResult, type DBQueryConfig, type Relation, type TableRelationalConfig, type TablesRelationalConfig } from "../relations.js";
|
|
import type { QueryWithTypings } from "../sql/sql.js";
|
|
import { SQL } from "../sql/sql.js";
|
|
import { type Casing, type UpdateSet } from "../utils.js";
|
|
import { SingleStoreColumn } from "./columns/common.js";
|
|
import type { SingleStoreDeleteConfig } from "./query-builders/delete.js";
|
|
import type { SingleStoreInsertConfig } from "./query-builders/insert.js";
|
|
import type { SingleStoreSelectConfig } from "./query-builders/select.types.js";
|
|
import type { SingleStoreUpdateConfig } from "./query-builders/update.js";
|
|
import type { SingleStoreSession } from "./session.js";
|
|
import { SingleStoreTable } from "./table.js";
|
|
export interface SingleStoreDialectConfig {
|
|
casing?: Casing;
|
|
}
|
|
export declare class SingleStoreDialect {
|
|
static readonly [entityKind]: string;
|
|
constructor(config?: SingleStoreDialectConfig);
|
|
migrate(migrations: MigrationMeta[], session: SingleStoreSession, config: Omit<MigrationConfig, 'migrationsSchema'>): Promise<void>;
|
|
escapeName(name: string): string;
|
|
escapeParam(_num: number): string;
|
|
escapeString(str: string): string;
|
|
private buildWithCTE;
|
|
buildDeleteQuery({ table, where, returning, withList, limit, orderBy, }: SingleStoreDeleteConfig): SQL;
|
|
buildUpdateSet(table: SingleStoreTable, set: UpdateSet): SQL;
|
|
buildUpdateQuery({ table, set, where, returning, withList, limit, orderBy, }: SingleStoreUpdateConfig): SQL;
|
|
/**
|
|
* Builds selection SQL with provided fields/expressions
|
|
*
|
|
* Examples:
|
|
*
|
|
* `select <selection> from`
|
|
*
|
|
* `insert ... returning <selection>`
|
|
*
|
|
* If `isSingleTable` is true, then columns won't be prefixed with table name
|
|
*/
|
|
private buildSelection;
|
|
private buildLimit;
|
|
private buildOrderBy;
|
|
buildSelectQuery({ withList, fields, fieldsFlat, where, having, table, joins, orderBy, groupBy, limit, offset, lockingClause, distinct, setOperators, }: SingleStoreSelectConfig): SQL;
|
|
buildSetOperations(leftSelect: SQL, setOperators: SingleStoreSelectConfig['setOperators']): SQL;
|
|
buildSetOperationQuery({ leftSelect, setOperator: { type, isAll, rightSelect, limit, orderBy, offset }, }: {
|
|
leftSelect: SQL;
|
|
setOperator: SingleStoreSelectConfig['setOperators'][number];
|
|
}): SQL;
|
|
buildInsertQuery({ table, values, ignore, onConflict, }: SingleStoreInsertConfig): {
|
|
sql: SQL;
|
|
generatedIds: Record<string, unknown>[];
|
|
};
|
|
sqlToQuery(sql: SQL, invokeSource?: 'indexes' | undefined): QueryWithTypings;
|
|
buildRelationalQuery({ fullSchema, schema, tableNamesMap, table, tableConfig, queryConfig: config, tableAlias, nestedQueryRelation, joinOn, }: {
|
|
fullSchema: Record<string, unknown>;
|
|
schema: TablesRelationalConfig;
|
|
tableNamesMap: Record<string, string>;
|
|
table: SingleStoreTable;
|
|
tableConfig: TableRelationalConfig;
|
|
queryConfig: true | DBQueryConfig<'many', true>;
|
|
tableAlias: string;
|
|
nestedQueryRelation?: Relation;
|
|
joinOn?: SQL;
|
|
}): BuildRelationalQueryResult<SingleStoreTable, SingleStoreColumn>;
|
|
}
|