Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Database.loadExtension #83

Merged
merged 2 commits into from
Jan 30, 2023
Merged

feat: Database.loadExtension #83

merged 2 commits into from
Jan 30, 2023

Conversation

eliassjogreen
Copy link
Contributor

It seems to work locally at least with loading spatialite.

Example:

  import { Database } from "./mod.ts";

  const db = new Database("test.db", { loadExtensions: true });
  
  db.loadExtension("./mod_spatialite.dll");
  
  const [version] = db.prepare("select spatialite_version()").value<[string]>()!;
  console.log(version);
  
  db.close();

Implements #82

Copy link
Member

@DjDeveloperr DjDeveloperr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Few comments.
Also worth adding in doc.md

src/database.ts Outdated Show resolved Hide resolved
Copy link
Member

@DjDeveloperr DjDeveloperr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants