Skip to content

Example of usage in Python #3

Description

@josephernest

Thanks for this extension! Could you give an example of how to use it with Python sqlite3?

Would it work with something like:

import sqlite3
conn = sqlite3.connect(':memory:')
c = conn.cursor()

c.execute('SELECT LOAD_EXTENSION('??')') # D:\Test\Levenshtein.pyd?

c.execute('SELECT LEVENSHTEIN("This is not correct", "This is correct");')

or is there a specific way to use it with Python (would it need a wrapper?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions