473,387 Members | 1,362 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SQLAlchemy and Oracle Functions?

I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?

Thanks,

Greg

Mar 8 '07 #1
3 5569
On 8 Mar, 22:19, "Greg Copeland" <gtcopel...@gmail.comwrote:
I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?

Thanks,

Greg
http://www.sqlalchemy.org/docs/sqlco...ause_functions
?

SQLAlchemy has its own google group

http://groups.google.co.uk/group/sqlalchemy

You could try asking there too.

Giles

Mar 8 '07 #2
On Mar 8, 3:35 pm, "Giles Brown" <giles_br...@hotmail.comwrote:
http://www.sqlalchemy.org/docs/sqlco...whereclause_fu...
SQLAlchemy has its own google group

http://groups.google.co.uk/group/sqlalchemy

You could try asking there too.

Giles
Very nice. That exactly answered by question. It works! Also, I
didn't know about the sqlalchemy group so I appreciate the heads up.

Thanks,

Greg
Mar 8 '07 #3
On 8 Mar, 15:35, "Giles Brown" <giles_br...@hotmail.comwrote:
On 8 Mar, 22:19, "Greg Copeland" <gtcopel...@gmail.comwrote:
I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?
Thanks,
Greg

http://www.sqlalchemy.org/docs/sqlco...whereclause_fu...
?

SQLAlchemy has its own google group

http://groups.google.co.uk/group/sqlalchemy

You could try asking there too.

Giles

I think I spoke too soon! Are SQL functions which have out arguments
not allowed? I get:
sqlalchemy.exceptions.SQLError: (DatabaseError) ORA-06572: Function
blah has out arguments.

Seems google is having problems right now too. I tried to join but it
just times out so I am currently unable to post to the sqlalchemy
google group.

Anthing special I need to do to call an Oracle function via the func
method, which also has output parameters?
Greg

Mar 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: John Salerno | last post by:
Are there any major differences between these two? It seems they can both be used with TurboGears, and SQLAlchemy with Django. I'm just wondering what everyone's preference is, and why, and if...
1
by: tomec | last post by:
hello, Ive read some articles about SqlAlchemy but i don't know where i can use this? Lets say that i would like to create some application which will be using sqlAlchemy My question is which...
1
by: Karlo Lozovina | last post by:
I've installed SQLAlchemy under Windows (strangely, it didn't install inside ../site-packages/ as a directory, but rather as a SQLAlchemy-0.2.8-py2.4.egg file). I can import it with 'import...
0
by: Karlo Lozovina | last post by:
I've just upgraded to Python 2.5, SQLAlchemy 0.3.3, and py2exe 0.6.5 (the py2.5 version, yes). Simple: --- import sqlalchemy print 'Test' ---
6
by: Ilias Lazaridis | last post by:
- Ï/Ç metaperl: Ilias Lazaridis: Michael Bayer wrote within: http://groups.google.com/group/sqlalchemy/msg/9d7a096a61abfc6f I understand your elaborations.
0
by: Greg Copeland | last post by:
I have a need to call an Oracle function, which is not the same thing as a stored procedure. Can SQLAlchemy do this directly? Indirectly? If so, an example would be appreciated. If not, how do...
0
by: Nathan Harmston | last post by:
HI, I posted this to sqlalchemy but didnt get a response, so I was wondering if anyone on python-list could help me. I m currently trying to build an api for a database and I really like the...
2
by: Adam Kubica | last post by:
Hello. I have pylons 0.96 (SVN) and current SQLAlchemy (0.3.10), and I have bug that doesn't exist earlier. My connection code: <code> import sqlalchemy.mods.threadlocal from sqlalchemy...
4
by: --CELKO-- | last post by:
I need to convert a bunch of DB2 triggers to Oracle. Is there any kind of tools for this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.