2025-03-02 20:15:27 -08:00

38 lines
655 B
TypeScript

// import type { Knex } from "knex";
import ExpoSQLiteDialect from "@expo/knex-expo-sqlite-dialect";
import {Knex} from "knex"
const EXPO_CONFIG = {
client: ExpoSQLiteDialect,
connection: {
filename: "translation_terrace.db",
},
};
// Update with your config settings.
export default {
development: {
...EXPO_CONFIG,
client: "sqlite3"
},
staging: {
...EXPO_CONFIG,
migrations: {
tableName: "knex_migrations",
},
},
production: {
...EXPO_CONFIG,
migrations: {
tableName: "knex_migrations",
},
},
} as {
development: Knex.Config,
staging: Knex.Config,
production: Knex.Config,
};