( tableName: string, schema: string, indexes: Record<string, string>, internal?: MySqlKitInternals | SQLiteKitInternals, )
| 2906 | }; |
| 2907 | |
| 2908 | export const prepareCreateIndexesJson = ( |
| 2909 | tableName: string, |
| 2910 | schema: string, |
| 2911 | indexes: Record<string, string>, |
| 2912 | internal?: MySqlKitInternals | SQLiteKitInternals, |
| 2913 | ): JsonCreateIndexStatement[] => { |
| 2914 | return Object.values(indexes).map((indexData) => { |
| 2915 | return { |
| 2916 | type: 'create_index', |
| 2917 | tableName, |
| 2918 | data: indexData, |
| 2919 | schema, |
| 2920 | internal, |
| 2921 | }; |
| 2922 | }); |
| 2923 | }; |
| 2924 | |
| 2925 | export const prepareCreateReferencesJson = ( |
| 2926 | tableName: string, |
no test coverage detected