options gen2
require daslib/fio

[export]
def initialize(project_path : string) {
    if (das_is_dll_build()) {
        register_dynamic_module("{project_path}/dasModuleSQLITE.shared_module", "Module_dasSQLITE")
    }
    let sqlite_paths = ["sql_provider", "sqlite_provider", "sqlite_boost", "sqlite_linq", "sqlite_migrate"]
    for (path in sqlite_paths) {
        register_native_path("sqlite", "{path}", "{project_path}/daslib/{path}.das")
    }
    // guarded on the C++ module: the descriptor and the das files sit in every checkout, the
    // module only in a build configured with it, and sql_boost requires every member
    register_module_group("sql_provider", "sqlite/sqlite_provider", "sqlite")
}
