e far
messier application code.
On Tuesday, November 3, 2020 at 8:57:18 AM UTC-3:30 Alex Collins wrote:
> Trying to configure a set of relationships to all be joined loaded and the
> particular relationship structure doesn’t seem to want to join. I have a
> one-to-many relationship where t
Trying to configure a set of relationships to all be joined loaded and the
particular relationship structure doesn’t seem to want to join. I have a
one-to-many relationship where the many is the child in joined table
inheritance. The foreign key to my source table is on the polymorphic child
ta
key on a table that already has a lot of data.
On Sunday, April 26, 2020 at 10:43:46 AM UTC-7, John Walker wrote:
>
> Hello Alex,
>
> This is super old, so I don't have a lot of hope.
> But I'm wondering if you could explain a line in your example text.
>
> I'm
solution for copying a single
table, I used it and I am satisfied. Just be careful when copying from
Oracle to MySQL as their isn't a MySQL equivalent to the NUMBER data type.
This solution requires sqlalchemy.
On Saturday, February 1, 2020 at 10:58:06 PM UTC+2, Alex Hill wrote:
>
>
Hello everyone,
I apologize if this question has been answered before, i've done some of my
of searching and solution testing before coming here.
I've even created a thread on stackoverflow
https://stackoverflow.com/questions/60008289/copy-or-migrate-tables-from-mysql-database-to-oracle-11g-and
Hello! I have been writing code that would allow me to read from an Excel
sheet and writing it in a MS SQL Database. The code was functioning well,
meaning it was running and writing all cells until it got to cell E,23 ,
where it crashes. Column E is called DueDate, and the first 22 cells print
caused by another attribute on EmployeeRecord:
s.add(er)
# this then blows up:
e.records = [er]
On Saturday, December 1, 2018 at 10:08:08 PM UTC-5, Mike Bayer wrote:
>
> On Sat, Dec 1, 2018 at 9:55 PM Mike Bayer > wrote:
> >
> > On Sat, Dec 1, 2018 at 9:21 PM A
I set up the DB:
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Employee(Base):
__tablename__ = 'employee'
id = Column(Integer, primary_key=True)
class EmployeeRecord(Base):
__tabl
Ah, ok. I thought defaultload() meant use whatever was originally specified
in the relationship(). That helps a lot!
On Friday, October 26, 2018 at 12:34:53 PM UTC-4, Mike Bayer wrote:
>
> On Fri, Oct 26, 2018 at 12:10 PM Alex Wang > wrote:
> >
> > I ended up need
a function like what you suggested and use that?
And just to make sure, selectinloads should be the right choice for this
kind of nested collection, right?
Thanks!
On Thursday, October 25, 2018 at 6:54:53 PM UTC-4, Mike Bayer wrote:
>
> On Thu, Oct 25, 2018 at 4:21 PM Alex Wang >
&g
Hi all!
I'm trying to write a small script to interface with a database controlled
by a third-party application, and I'm not sure the way I set up eager
loading is right.
The code I have looks something like the following:
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy
I have added a new sub class to my model hierarchy. I would like to
instantiate it however there will be cases where the base object / row
already exists. I tried to solve this by passing in the user object to the
StaffUser but it looks like sqla still tried to INSERT into the User table
leadin
tting any of the relationships to None. For
example if I cease to have all of fund, department and title, then the
FundTitle is None. If i assign that to the Employee it then clears all of
the other (overlapping) fks.
On Wednesday, October 10, 2018 at 8:28:39 PM UTC-4, Mike Bayer wrote:
&
title = relationship(FundTitle)
>
> __table_args__ = (
> ForeignKeyConstraint(
> (title_id, department_id, fund_id),
> (FundTitle.title_id, FundTitle.department_id,
> FundTitle.fund_id)
> ),
> )
>
>
> ft1 = FundTi
)
do I not have to mark one Model as dependent on the other? Or is that
implied by the order of the list?
On Wednesday, October 10, 2018 at 1:36:09 PM UTC-4, Mike Bayer wrote:
>
> On Wed, Oct 10, 2018 at 1:32 PM Alex Rothberg > wrote:
> >
> > Well the other way doesn'
Well the other way doesn't quite work as if I mark none of the columns as
foreign in the primary join, sqla then assumes / guesses all of them are.
Let me test with passive.
On Wed, Oct 10, 2018, 13:30 Mike Bayer wrote:
> On Wed, Oct 10, 2018 at 1:27 PM Alex Rothberg
> wrote:
>
he raise load issue is because without passive_deletes, it has to
> load the collection to make sure those objects are all updated.
> passive_deletes fixes, now you just have a warning. or use the unit
> of work recipe which is more direct.
> On Wed, Oct 10, 2018 at 1:15 PM Alex Rothberg
Bayer wrote:
>
> On Wed, Oct 10, 2018 at 12:56 PM Alex Rothberg > wrote:
> >
> > let me get that. in the meantime, what are your thoughts on just
> removing the view only from the original relationship and then using an
> explicit primary join where none o
:25 PM UTC-4, Alex Rothberg wrote:
>
> Is it possible to specific a non viewonly relationship in which I have a
> primary join specified in which none of the fk's are marked "foreign"? ie
> where I can mark the relationship dependancy but it wont set any columns?
> I
all columns are
fk if none are specified as foreign?
On Wednesday, October 10, 2018 at 11:56:49 AM UTC-4, Alex Rothberg wrote:
>
> So one minor issue and one big issue with that solution:
> 1. minor issue, I now get these: SAWarning: relationship '' will copy
> column
) and now I start
seeing: sqlalchemy.exc.InvalidRequestError: 'Employee._ft_for_dependency'
is not available due to lazy='raise'
On Wednesday, October 10, 2018 at 9:57:55 AM UTC-4, Mike Bayer wrote:
>
> On Tue, Oct 9, 2018 at 6:45 PM Alex Rothberg > wrote:
> >
> > Okay with some small
, f1, ft1])
s.flush()
e1 = Employee(title=t1, department=d1, fund=f1)
s.add_all([e1,])
s.commit()
On Tuesday, October 9, 2018 at 12:20:30 PM UTC-4, Mike Bayer wrote:
>
> On Tue, Oct 9, 2018 at 10:44 AM Alex Rothberg > wrote:
> >
> > In lookin
I should say, I didn't run your exact code but essentially that ordering
is what is causing my issues with my code in that the new fund_title is
inserted after the new employee.
On Tue, Oct 9, 2018 at 10:44 AM Alex Rothberg wrote:
> In looking at what you wrote doesn't thi
wrote:
> On Sun, Oct 7, 2018 at 7:11 PM Alex Rothberg wrote:
> >
> > Okay so I investigated / thought about this further. The issue is that
> while I do have a relationship between the various models, some of the
> relationships are viewonly since I have overlapping fks.
> >
cca427084b3ca74/lib/sqlalchemy/orm/unitofwork.py?at=master&fileviewer=file-view-default#unitofwork.py-111)
>
>
> >
> > Looking at that code made me wonder whether you've set any particular
> > cascade options on your relationship; I'm not sure if cascade option
Is there anyway to set the join_depth on the options, or do I just have to
write that myself with a for loop?
On Thursday, September 20, 2018 at 8:50:59 AM UTC-4, Mike Bayer wrote:
>
> On Wed, Sep 19, 2018 at 5:26 PM Alex Rothberg > wrote:
> >
> > Following up on
> h
Following up
on
https://groups.google.com/forum/#!searchin/sqlalchemy/join_depth%7Csort:date/sqlalchemy/WstKKbEFaRo/hL910npaBQAJ
and
https://stackoverflow.com/questions/4381712/how-do-you-dynamically-adjust-the-recursion-depth-for-eager-loading-in-the-sqlal,
is there any way to set the join_
, Simon King wrote:
>
> In that case can you show us the code that is causing the problem?
> On Fri, Sep 14, 2018 at 2:55 PM Alex Rothberg > wrote:
> >
> > I am not generating any IDs myself and I already have relationships
> between the models.
> >
> > O
I am not generating any IDs myself and I already have relationships between
the models.
On Friday, September 14, 2018 at 4:33:08 AM UTC-4, Simon King wrote:
>
> On Thu, Sep 13, 2018 at 10:50 PM Alex Rothberg > wrote:
> >
> > Is it possible to hint at sqla the order in
Is it possible to hint at sqla the order in which it should write out
changes to the DB?
I am having issues in which I add two new objects to a session, a and b
where a depends on b, but sqla is flushing a before b leading to an fk
issue. I can solve this a few ways: explicitly calling flush af
syntax for
ForeignKeyConstraint rather than just the string syntax?
On Tuesday, September 4, 2018 at 10:43:13 PM UTC-4, Alex Rothberg wrote:
>
> You're right the error I posted is coming from somewhere else. I am trying
> to get a stripped down example. In the meantime, it looks l
You're right the error I posted is coming from somewhere else. I am trying
to get a stripped down example. In the meantime, it looks like when I add
the additional fk constraint, model.__mapper__.get_property(property_name)
on a different model starts failing.
File
"/Users/a
Is it possible to set up a `ForeignKeyConstraint` that uses a class not yet
declared? ie is there a way to use either the lambda or string syntax to
forward declare the fk constrains? Neither works for me. Using strings
yields:
File "", line 2, in join_condition
File
"/Us
wrote:
>
> On Wed, Aug 22, 2018 at 5:41 PM, Alex Rothberg > wrote:
> > I am using an association model / table to represent a many to many
> > relationship:
> >
> > class Geography(db.Model):
> >
> > id =
>
I am using an association model / table to represent a many to many
relationship:
class Geography(db.Model):
id =
...
class Fund(db.Model):
id =
...
geography_associations = db.relationship(
lambda: FundGeographyAssociation,
back_populates="fund",
c
Is there any way to declare a "remote side" backpopulates? i.e. where I
declare a relationship on class A to appear only on class B? I would like
the relationship only to be available on the remote class but I do not want
to / cannot modify the code for the remote class.
For example:
class Use
After a quiet period of 3 years, I've now made a new major release. This
release fixes a huge number of bugs and supports the latest SQLAlchemy and
latest Python versions as well. It also adds support for Geoalchemy2.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://
Thank you very much for the guidance Jonathan and Mike. I've implemented
nesting counting on my context manager and turned off autocommit and
subtransactions. It looks like it's working well!
Alex
On Wednesday, August 9, 2017 at 5:14:09 PM UTC+1, al...@withplum.com wrote:
>
&
mitted. What do you
think of it? I can immediately see a problem where if I query for an object
before passing it to an action, then use the context manager, all the work
done on querying is lost since the object state is expired on rollback.
I'd appreciate any advice/input.
Best,
Alex
Hello,
I have a Money composite column, comprised of an `amount` (Decimal) and a
`currency` (String). Sometimes the amount needs to be NULL, but then I get
an instance of Money(None, 'GBP'). Is there any way to force the composite
to return None in this case?
Thanks,
Alex
--
It worked! Thanks a lot!
On Friday, 28 April 2017 18:49:40 UTC-7, Alex Plugaru wrote:
>
> Hello,
>
> There are 3 tables: `*Account*`, `*Role*`, `*User*`. Both `*Role*` and `
> *User*` have a foreign key `*account_id*` that points to `*Account*`.
>
> A user can have mult
u.account_id = a1.id
u.name = 'user'
# This does not work
u.roles = [u_role, m_role, a2_role]
session.add(u)
session.commit()
# Works as expected
# i = roles_users.insert()
# i = i.values([
# dict(account_id=a.id, role_id=u_role.id, user_id=u.id),
# dict(account_id=a.id, role_id
count_id=a.id, role_id=m_role.id, user_id=u.id),
])
session.execute(i)
# re-fetch user from db
u = session.query(User).first()
for r in u.roles:
print(r)
FYI: I posted this on SO as well, but I haven't gotten a response there yet
so trying here too:
https://stackoverflow.com/questions/
I'm attempting to do a multi-table delete against PostgreSQL (psycopg2) with
the following query:
session.query(ProductionItem).\
filter(Project.id == ProductionItem.project_id,
Project.code.in_(projects),
ProductionItem.external_id.is_(None)).\
15.07.2016, 16:55, Mike Bayer kirjoitti:
On 07/15/2016 07:49 AM, Alex Grönholm wrote:
The documentation provides the following example snippet for using
sessions within a context manager:
so, back when I started putting "examples" in those docs, the idea was
like, "hey, her
The documentation provides the following example snippet for using sessions
within a context manager:
@contextmanagerdef session_scope():
"""Provide a transactional scope around a series of operations."""
session = Session()
try:
yield session
session.commit()
exce
Thank you for your quick answer Mike.
Le mardi 26 avril 2016 00:28:10 UTC+2, Mike Bayer a écrit :
>
>
>
> well this usage above is wrong. You can't have contains_eager() and
> joinedload() along the same paths at the same time like that. Also,
> chaining joinedload() from contains_eager() is
Hello,
I have a broken query when migrating from SQLAlchemy 0.9.4 to 1.0.12. It
seems to be linked to a behavioral change in the ORM
(http://docs.sqlalchemy.org/en/rel_1_0/changelog/migration_10.html#right-inner-join-nesting-now-the-default-for-joinedload-with-innerjoin-true)
Here is simplified
That would certainly work. :) Would that offer any benefits over
pyodbc, since I wouldn't have the mapping (which was taking all the
time I was spending with SA)?
On 3/25/16, Mike Bayer wrote:
>
>
> On 03/25/2016 05:20 PM, Alex Hall wrote:
>> Hi all,
>> Since SA was
> (ideally in an in-memory sqlite db), then use automap to map classes to
> those tables.
>
> Simon
>
> On Mon, Mar 21, 2016 at 3:12 PM, Alex Hall wrote:
>
>> Wow, thanks guys, especially for the sample code! I'm trying to use
>> the example (and f
e if you want,
but it's pretty long.
On 3/17/16, Mike Bayer wrote:
>
>
> On 03/17/2016 03:11 PM, Alex Hall wrote:
>> Hello all,
>> It seems like I can't go a day without running into some kind of wall.
>> This one is a conceptual one regarding foreign keys. I
That would be the simplest. Having something so inefficient just bugs me. :)
I'm using MSSQL, so limit() works. Would yield_per() help here, or is
that for something different? Even if it didn't help local memory, but
just kept the load on the DB server down, that would be good.
On 3/16/16, Chris
Hello all,
I'm running a different query than yesterday. Before, I had something like:
items = session.query(itemTable, attachmentTable, attachmentTextTable,
assignmentTable, attributeTable, attributeValueTable,
attributeValueAssignmentTable, vendorTable)\
.filter(attachmentTable.itm_id == itemTab
Hello all,
It seems like I can't go a day without running into some kind of wall.
This one is a conceptual one regarding foreign keys. I have to somehow
get the same FK column in table A pointing to IDs in tables B and C.
At one person's suggestion, I'm making classes for my tables, even
though I'
at 1:07 PM, Alex Hall wrote:
>
>> Hello all,
>> I'm running a different query than yesterday. Before, I had something
>> like:
>>
>> items = session.query(itemTable, attachmentTable, attachmentTextTable,
>> assignmentTable, attributeTable, attributeValue
> On Mar 16, 2016, at 03:23, Jonathan Vanasco wrote:
>
> The database design you have is less than perfect.
I didn't make it, I came in long after it had been set up and now have to work
with it. I can't re-do anything. They did it this way so that, for instance, a
single attribute or attachm
Thanks guys. I'm using automap, but I'm not completely sure how much
that gives me for free. Yes, these tables are big, and the resulting
set would be worrying large (potentially 5*20, and that's without
the attributes and attachments, plus their assignment and values
tables). I've switched to
Hi all,
I need to pull data from a bunch of tables, and I *think* outer joins
are the way to do it. However, I can't find much on SA's support for
outer joins.
What I'm trying to do is pull all items from the Items table, as well
as associated attachments and attributes if an item is tied to eithe
Thanks for the clarification. I'm suddenly getting no results at all
when I add this filter, but at least now I know I'm doing the syntax
right. Never a dull moment. :)
On 3/14/16, Jonathan Vanasco wrote:
>
>>
>> .filter(t1.c1=='hello', and_(t3.c1=='world'))
>>
>
> The and_ Is wrong in this conte
'))
I may have that and_ part wrong, but filter is the obvious solution to
most of my question.
On 3/14/16, Alex Hall wrote:
> Hi all,
> I had a link that was a great intro to querying, but of course, I
> can't find it now. I need to add a couple conditions to my query. In
> S
Hi all,
I had a link that was a great intro to querying, but of course, I
can't find it now. I need to add a couple conditions to my query. In
SQL, it might look like this:
select *
from t1 join t2 on t1.c1==t2.c1
join t3 on t3.c1==t1.c1
where t1.c1 = 'hello' and t3.c3 = 'world'
The joins I have
map import automap_base
> from sqlalchemy import MetaData, Column, String
> from sqlalchemy.orm import Session
>
> metadata = MetaData()
>
> desiredTables = ["sometable", "someothertable", "VENDR"]
> base = automap_base(metadata=metadata)
>
>
__table_args__ = {"extend_existing": True}
>
> that tells reflection to add new data to this Table object even though
> it already exists.
>
>
> On 03/14/2016 09:24 AM, Alex Hall wrote:
>> Thanks for that. Somehow, I'm getting the same error as before--the
>&g
e) - the
> "id" / "Integer" combination above is just an example.
>
> Then do the automap as you've done. At the end, if it worked,
> Base.classes.VENDR should be the same class as the VENDR class above.
>
>
> On 03/11/2016 05:09 PM, Alex Hall wrote:
&g
table. If I could, I'd just add a PK column to the table
itself. Sadly, I can't change that kind of thing, only query it.
On 3/11/16, Mike Bayer wrote:
> just make the class and include the PK column, then automap. the rest
> of the columns should be filled in.
>
>
> On 0
of subclassing, since the PK is now set. However, I don't
know if this would still work with automapping.
On 3/11/16, Mike Bayer wrote:
> ah. does VENDR have a primary key? it won't be mapped if not.
>
> what's in base.classes.keys() ? base.classes['VENDR'
elp at all? This is
the only table in the CMS to have a name in all caps, but I need to
access it to look up manufacturer details for items.
On 3/11/16, Mike Bayer wrote:
>
> can you look in metadata.tables to see what it actually reflected ?
>
>
>
>
>
>
> On 03/11/2016
That's weird: the name I see is exactly what I've been using, "VENDR".
All caps and everything. I tried using lowercase, just to see what it
would do, but it failed.
On 3/11/16, Mike Bayer wrote:
>
>
> On 03/11/2016 09:39 AM, Alex Hall wrote:
>> Hello list,
>
Hello list,
Finally, a pure SA question from me. I'm using Automap and the "only"
keyword to automap a subset of the tables in our CMS database. This
has worked perfectly thus far. Now, though, it's failing on a specific
table, and the only difference I can see is that this table's name is
in all c
What I'm doing, and sorry for not explaining further, is making a CSV
file of data. Each row is a row in my results, or would be if I were
just selecting from products. Having to select from attributes as well
is where I'm having problems. Each product can have multiple
attributes, and each attribu
Hi list,
I'm not sure how to explain this, so let me know if I lose you. I have
the same products database as yesterday, but I've just learned that
product attributes are stored in their own tables. A product can have
many attributes (size, color, weight, etc), and each attribute value
is in a tabl
ut. Thanks.
On 3/9/16, Alex Hall wrote:
> Hi all,
> Just a quick question: what does SA do if names overlap? For example,
> in assignmentTable, there's a column called itm_id. In
> attachmentTable, there's also a column called itm_id, and there's one
> in itemTable
ould be duplicated. At least I learned something from all
this. Thanks again for the help, guys.
On 3/9/16, Jonathan Vanasco wrote:
>
> On Wednesday, March 9, 2016 at 3:02:05 PM UTC-5, Alex Hall wrote:
>>
>> Fair enough, thanks. I didn't realize it was such a complex
Hi all,
Just a quick question: what does SA do if names overlap? For example,
in assignmentTable, there's a column called itm_id. In
attachmentTable, there's also a column called itm_id, and there's one
in itemTable as well. If I combine these in a kind of join, as in:
results = session.query(assi
Fair enough, thanks. I didn't realize it was such a complex task; I
figured it was just a matter of passing an argument to distinct() or
something equally easy. Speed isn't a huge concern, so I suppose I
could get around this by storing the item numbers I find and then
checking that the row I'm abo
Hi all,
I want to select * from a table, getting all columns. However, the
only rows I want are where the item number is distinct. I've got:
items = session.query(itemTable)\
.distinct()\
.limit(10)
But that doesn't apply "distinct" to just item_number. I'm not the
best with SQL in general or I'd e
;s but I don't trust myself with
the added complexity.
Cheers,
Alex.
On Monday, February 29, 2016 at 10:38:22 PM UTC, Alex Hewson wrote:
>
> Hello All,
>
> I'm trying to use the new bulk_save_objects() to improve performance on
> bulk inserts, and have run into a proble
Hello All,
I'm trying to use the new bulk_save_objects() to improve performance on
bulk inserts, and have run into a problem. If bulk_save_objects() is used
to save objects of a polymorphic class..
1. They are created correctly in the DB, with polymorphic type column
populated correctly
eft_string'),
different_column]).alias()
q4 = sqlalchemy.select([q3.c.left_string,
func.sum(q3.c.different_column)]).group_by(q3.c.left_string)
sql_engine.execute(q4).fetchall()
On Wednesday, 24 February 2016 09:26:59 UTC-6, Mike Bayer wrote:
>
>
>
> On 02/24/2016 10:13 AM, Ale
ng, but it's unclear to me why that would do anything
different (despite the fact that it does).
c.session.execute(
str(qq.selectable.compile(compile_kwargs={'literal_binds': True}))
).fetchall()
If anyone can explain to me what I'm doing wrong and how to fix it, I'd be
extremel
setting a "dbms_ver" attribute on the
> pyodbc connection that you are creating in your custom creator function.
> This is where it gets used:
>
> https://github.com/ibmdb/python-ibmdbsa/blob/master/ibm_db_sa/ibm_db_sa/base.py#L481
>
> Simon
>
> On Fri, Feb
quot;db2+pyodbc://". Does that make any difference?
>
> On Fri, Feb 19, 2016 at 4:20 PM, Alex Hall wrote:
>
>> Thanks. I tried both, and triedother variations including or excluding
>> the module name as a prefix (ibm_db_sa.db2.pyodbc://). In most cases,
>> I get:
>
ibmdbsa/blob/master/ibm_db_sa/setup.py
>
> I would guess that you want to end up with the DB2Dialect_pyodbc class,
> which means you should use db2.pyodbc:// or ibm_db_sa.pyodbc://
>
> Simon
>
>
> On Fri, Feb 19, 2016 at 3:33 PM, Alex Hall wrote:
>
>> Thanks, that look
7;m
getting nightmarish flashbacks to my "has no attribute" error last
week for the same object. But at least this is a different one; I'll
count it as a good thing!
On 2/19/16, Simon King wrote:
> On Fri, Feb 19, 2016 at 2:38 PM, Alex Hall wrote:
>
>> As the subject s
As the subject says, I am connected to our iSeries through straight
pyodbc. That seems to run perfectly. Now, is there a way to use SA
with that connection? When I use "ibm_db_sa+pyodbc://..." I get the
exact same error I was getting when using ibm_db directly. Using
pyodbc, I can specify the drive
2/17/16, Michal Petrucha wrote:
> On Tue, Feb 16, 2016 at 04:02:08PM -0500, Alex Hall wrote:
>> Great; I was hoping you wouldn't say that. :) I've been through them
>> many, many times, trying to get the connection working. I've gone from
>> error to error, and thoug
it? Will mapping all
that fill up my ram, or have any other impact I should consider?
On 2/16/16, Mike Bayer wrote:
> well then you're just not making any database connection. you'd need
> to check your database connectivity and your connection parameters.
>
>
>
> On
connection, and sure enough,
it hangs on that line.
On 2/16/16, Mike Bayer wrote:
> turning on echo=True inside create_engine() will show you what queries
> are emitted as they occur so you can see which ones are taking long
> and/or hanging.
>
>
> On 02/16/2016 02:59 PM, Alex Ha
, the connection starts up and the script hangs. I'm
no closer to solving this, and would love to hear anyone's thoughts,
but at least I know that my thought of blaming reflect/automap is
likely incorrect.
On 2/16/16, Alex Hall wrote:
> Hi list,
> Sorry for all the emails. I've
Hi list,
Sorry for all the emails. I've determined that my script is actually
connecting to the 400's test database. At least, a print statement
placed just after the create_engine call is printing, so I guess we're
good there.
What I'm running into now is unresponsiveness when I try to reflect or
database, rather than still
knocking on its door.
On 2/16/16, Michal Petrucha wrote:
> On Tue, Feb 16, 2016 at 10:27:40AM -0500, Alex Hall wrote:
>> I have pyodbc 3.0.10, ibm_db_sa 0.3.2, and ibm_db 2.0.6. I'm also
>> talking to people on the ibm_db list, and they suggested I
ou are seeing, if the object in “connection.connection” is a
> pyodbc.Connection and doesn’t have a “dbms_ver” attribute.
>
> Note that there are at least 3 packages that could be involved here:
>
> pyodbc (https://pypi.python.org/pypi/pyodbc)
>
> ibm_db (https://pypi.python.org/pypi/i
sure what I can do about it, it looks like this dbms_ver
property is definitely in the latest ibm_db_sa version. Am I getting
this from the wrong place, or confusing this with a different package
somehow? I *must* be missing something obvious.
On 2/15/16, Alex Hall wrote:
> An interesting develo
track with this?
On 2/15/16, Alex Hall wrote:
> Thanks guys. I've checked the version I'm using, and it reports that
> ibm_db_sa.__version__ is '0.3.2'. I have both ibm_db_sa and ibm_db
> installed. Should I remove ibm_db and rely only on ibm_db_sa instead?
> Is the fo
zle wrote:
> Try to use ibm_db_sa 0.3.2 instead, apparently you are using the previous
> version. dbms_ver is a feature specific of native ibm_db version of which
> not available in pyodbc.
>
> https://pypi.python.org/pypi/ibm_db_sa/0.3.2
>
>
> Salam,
>
> -Jaim
Hello list,
I've configured a DSN to a test version of my work's AS400 and I seem
to be able to connect just fine (Yes!) I'm now running into a problem
when I try to ask for a list of all tables. The line is:
dbInspector = inspect(dbEngine)
The traceback is very long, and I can paste it if you w
2/12/16, Michal Petrucha wrote:
> On Thu, Feb 11, 2016 at 01:16:03PM -0500, Alex Hall wrote:
>> I've done more research on this topic. There's a lot out there about
>> using MSSQL with SA, but next to nothing about using ibm_db_sa or
>> specifying drivers.
>>
>
keep bugging the list about this. I
just have no other options at the moment and I need to get this
working soon.
On 2/11/16, Alex Hall wrote:
> I think I'm confused. Isn't Pyodbc an alternative to SQLAlchemy? If
> not, how would the two work together? I just looked through the
>
on't have db2 connect installed on your
> machine.
>
> Salam,
>
> -Jaimy
> On Feb 11, 2016 01:50, "Alex Hall" wrote:
>
>> Hello list,
>> I sent this to the ibm_db list yesterday, but no one has responded
>> yet. Since it's as much ibm_db as SA,
Hello list,
I sent this to the ibm_db list yesterday, but no one has responded
yet. Since it's as much ibm_db as SA, I thought I'd try here as well
in case any of you have used an AS400 before. I have ibm_db,
ibm_db_sa, the latest sqlalchemy, and Python 2.7 (latest) installed. I
can talk to SQLite
1 - 100 of 350 matches
Mail list logo