/** * @file The corpus street index: every street name a premise register publishes, by country and locality. */ import { type Kysely } from "kysely"; /** * One street name in one locality of one country. */ export interface StreetNameTable { /** * The upper-case ISO 3166-1 alpha-2 country. */ country: string; /** * The street line folded by `foldStreetSurface` from `@mailwoman/resolver`, * the fold the reader applies to a probe. */ name_key: string; /** * The locality folded the same way, or the empty string for a row without a locality. */ locality_key: string; } /** * The street-index database schema. */ export interface StreetIndexDatabase { street_name: StreetNameTable; } /** * The `street_name` columns in insert order. */ export declare const STREET_NAME_COLUMNS: readonly ["country", "name_key", "locality_key"]; /** * Creates the `street_name` table, keyed by country, name and locality, before the bulk load. * * The rows are short and probed by key, so the table is clustered on its key. */ export declare function createStreetNameTable(db: Kysely): Promise; //# sourceMappingURL=schema.d.ts.map