Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
112 views

I am trying to create a table using SQLObject with the following schema class PersonThree(SQLObject): firstname = StringCol(length=50) lastname = StringCol(length=50) age = IntCol() This ...
Meet Gujrathi's user avatar
0 votes
1 answer
99 views

When creating a table with SQLObject, it generates a primary key ID that is not in the Class definition ( ex Person and Address) This ID must be used to point to a related table ( foreign key) As far ...
Ghisbo's user avatar
  • 3
1 vote
1 answer
84 views

from sqlobject import * class Data(SQLObject): ts = TimeCol() val = FloatCol() Data.select().count() Fails with: AttributeError: No connection has been defined for this thread or process ...
davetapley's user avatar
  • 18.2k
1 vote
2 answers
250 views

I am trying to mock sqlbuilder.func for test cases with pytest I successfully mocked sqlbuilder.func.TO_BASE64 with correct output but when I tried mocking sqlbuilder.func.FROM_UNIXTIME I didn't get ...
Chandan's user avatar
  • 11.8k
1 vote
1 answer
144 views

I am trying to create a query in python3 using sqlobject mapper. I have a requirement of filtering a custom field based on the output of bitise operation. Query looks like this: query = sqlobject.AND(...
Rajat Doshi's user avatar
0 votes
1 answer
78 views

Sql Operation: SELECT *, CASE WHEN quota_unit = 'MB' THEN quota*1024 ELSE quota END AS data_usage FROM mapping ORDER BY data_usage; I tried like ...
SAG786's user avatar
  • 21
2 votes
1 answer
249 views

I wanted to use SQLObject to allow my co-workers to get some data from my MySQL database. Now I need to use filter "value in list" but I don't know how can I do that. I choosed SQLObject because it ...
Vether's user avatar
  • 65
1 vote
2 answers
173 views

My code is raising an exception as shown below. I am pretty sure the problem is with my definition of the table relationship. I have tried multiple alternatives that give varying errors :-( I have ...
jordanthompson's user avatar
1 vote
1 answer
67 views

I am new to python3 and tring to build a sqlobject class which named whatever. Then I created a function to caculate the average of one column. Here are parts of the codes. class whatever(sqlobject....
Ze  Xu's user avatar
  • 13
2 votes
1 answer
353 views

I'm using the SQLObject ORM in Python, and I want to be able to iterate over a generator (of the row objects) in the same way I would Table.select(...), but what I can get from doing this method call ...
Benjamin R's user avatar
2 votes
1 answer
338 views

as my first post here, I would like to warn that I looked as well as I could on the web but nothing that solved it. I am using python 2.7 and latest version of sqlobject lib. I faced that when ...
DFE's user avatar
  • 136
2 votes
1 answer
324 views

I was going through the instructions specified under SQL statements, and I got stuck at this line: rows = connection.queryAll(query) From where are we getting this connection object? Because I am ...
Kaushik Shrestha's user avatar
1 vote
1 answer
152 views

I'm coding a little something in Python. I need to get some data from a MicrosoftSQL database and convert it to a JSONObject. And i think i have some problems with the ConnectionForURI. I'm using ...
Stains's user avatar
  • 107
2 votes
2 answers
114 views

Trying to setup a python flask server in a controlled environment, no access to internet # python setup.py install Traceback (most recent call last): File "setup.py", line 9, in <module> ...
tesgo's user avatar
  • 66
2 votes
1 answer
410 views

I am using SQLObject, a wrapper for python to manage SQL Queries, with Python 2.7. I know I can select data by using a dictionary such as: restrictions = { ... } selection = sql_table.selectBy(**...
OmegaNalphA's user avatar

15 30 50 per page
1
2 3 4 5