(...parts: readonly string[])
| 54 | }; |
| 55 | |
| 56 | const stableId = (...parts: readonly string[]): string => { |
| 57 | const text = parts.join("\u0000"); |
| 58 | let hash = 0; |
| 59 | for (let index = 0; index < text.length; index += 1) { |
| 60 | hash = (hash * 31 + text.charCodeAt(index)) >>> 0; |
| 61 | } |
| 62 | return `service_split_${hash.toString(36)}`; |
| 63 | }; |
| 64 | |
| 65 | const tableExists = (client: SqliteDataMigrationClient, table: string) => |
| 66 | execute(client, { |