Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing loader instantiation

  • Loading branch information...
commit 1d3a015aa78be8aca563eda5c5eebbe722e4e3ee 1 parent b6e4c8d
@rdunklau authored
Showing with 1 addition and 0 deletions.
  1. +1 −0 
1 
@@ -35,6 +35,7 @@ engine = create_engine('postgresql://python@localhost/')
# Create the loader, and load the module containing the functions
# This will create the associated pl/python functions, and replace them
# with sqlalchemy functions, which can operate on columns
+loader = PostgresLoader(engine)
mymodule = loader.load_module('mymodule')
engine.execute(testmodule.greatest(1, 3)).fetchone()
Please sign in to comment.
Something went wrong with that request. Please try again.