Friedrich Lindenberg
213a7ce857
Use introspection for table indexes.
2017-09-02 23:05:50 +02:00
Friedrich Lindenberg
37d7f47d39
Make table instances singleton-ish.
2017-09-02 22:35:29 +02:00
Friedrich Lindenberg
13cbff37fe
Fix postgres errors.
2017-09-02 20:33:11 +02:00
Friedrich Lindenberg
a2748b7fde
Reduce dependence on internal metadata caching, refs #208 .
2017-09-02 19:35:01 +02:00
Friedrich Lindenberg
cc7787036b
still more cases of using the engine and not the executable in transaction
2017-09-02 17:17:24 +02:00
Friedrich Lindenberg
a4c73a8fb8
Begin implementing a types handler instead of using plain text types.
...
this is potentially BREAKING scripts which use the string syntax.
2017-09-02 16:47:04 +02:00
Friedrich Lindenberg
edc41e4d82
Merge branch 'master' into create_column_by_example
2017-09-02 08:22:22 +02:00
Stefan Wehrmeyer
3f330df20f
Check for clauses and filters in delete
...
Guard against wrong API use before dropping all data
2017-05-16 16:57:07 +02:00
Friedrich Lindenberg
77762266dd
Simplify transactional logging code, fix deadlock situation.
2017-01-29 17:31:04 +01:00
Friedrich Lindenberg
522415a27c
refactor query code to be simpler
2017-01-29 15:45:18 +01:00
Paul Fitzpatrick
94bc6e09c0
add Table.create_column_by_example method
...
This adds a method to create a column by giving an example of
the data it will contain rather than by specifying its
SQLAlchemy type. This extends the range of operations that
can be performed without reading the SQLAlchemy docs.
2016-10-26 09:29:55 -04:00
Friedrich Lindenberg
5c04bd1e5d
allow for **kwargs in create_index, refs #172 .
2016-09-24 10:44:49 +02:00
Friedrich Lindenberg
2eaa3403ff
Merge pull request #172 from jsvine/master
...
Let users pass `unique` boolean to .create_index
2016-09-24 10:41:07 +02:00
Friedrich Lindenberg
8032c66219
Merge pull request #179 from johnlpuc163/master
...
bug fix, make Table.drop_column be aware of table schema
2016-09-22 17:57:16 +02:00
Artur Rodrigues
0046bcb428
Fix typo on #create_column
2016-07-27 23:24:30 +01:00
Xu Liu
4147871b39
bug fix, make Table.drop_column be aware of table schema
2016-07-26 17:59:30 -04:00
Friedrich Lindenberg
927f88bbd5
work in row pruning, fixes #176
2016-07-03 11:18:17 +02:00
Jeremy Singer-Vine
fc26d7afcd
Let users pass unique boolean to .create_index
2016-05-24 14:11:26 -04:00
Friedrich Lindenberg
5f1a38a15f
Merge pull request #169 from saun4app/feature_insert_ignore
...
Added insert_ignore and changed upsert.
2016-05-14 08:57:21 +02:00
Saun Shewanown
72b01df60d
Fixed Build Jobs Build #186 blank space errors
2016-04-27 16:48:45 -04:00
Saun Shewanown
e7f45b2a68
Added error check to _upsert_pre_check(), res = None when error
2016-04-27 16:39:50 -04:00
Saun Shewanown
7fd1a71506
Corrected upsert logical error.
2016-04-23 07:59:25 -04:00
Saun Shewanown
9c162a056c
Changed upsert code style. The logic should be the same.
2016-04-22 14:13:52 -04:00
Saun Shewanown
66547aafb5
Fixed Build Jobs Build #182 errors
2016-04-22 13:04:17 -04:00
Saun Shewanown
ff9bed01f1
Fixed Build Jobs Build #181 errors
2016-04-22 12:57:35 -04:00
Saun Shewanown
c1e82bb9ae
Added insert_ignore and changed upsert.
2016-04-22 11:35:14 -04:00
Friedrich Lindenberg
fb48c914f4
fix regression, fixes #168
2016-04-22 15:45:10 +02:00
Friedrich Lindenberg
bdd937e2c9
pep8
2016-04-10 10:25:14 +03:00
Jameson Merkow
2fa5f5f1d4
Simple change in table.py to return query from find
2016-04-09 15:16:10 -07:00
Friedrich Lindenberg
4fb4845efc
set default of the ensure_schema flag per session
2016-04-08 09:23:24 +03:00
krkhnh
6909ba5c2f
Update table.py
...
This propose is based on issue #133 . Added 'ensure_session' global variable as a default value for 'ensure' parameter.
I haven't used Python for a long time and I can't test this code for now. I'm sorry for my irresponsibility, but here is a rough idea as a solution.
2016-04-08 09:48:27 +09:00
ryneeverett
1565fe5fe2
Implement comparison operators. Resolve #128 .
2016-03-24 17:57:26 -05:00
Friedrich Lindenberg
e192e3f0dc
provide consistent return values, fixes #138
2016-02-12 18:12:22 +01:00
Friedrich Lindenberg
cc742b7a00
do not create columns upon find(), fixes #143
2016-02-12 18:10:50 +01:00
Friedrich Lindenberg
4f00db572f
work around a bunch of bugs;
2016-01-18 11:14:30 +01:00
Stefan Wehrmeyer
0f7e7dc73c
Flake8 cleanup
2015-12-19 21:43:51 +01:00
Di Wu
6f4f0313a8
Use fetchmany to prevent huge tables from being loaded into memory at once.
2015-12-13 20:51:14 +08:00
Friedrich Lindenberg
93162ac6fc
add schema hint to create_column, refs #78 (thanks @smnorris)
2015-08-07 12:18:50 +02:00
Víctor Guzmán
b2dc8a3315
release lock in table.py
2015-07-07 21:04:44 +02:00
Friedrich Lindenberg
61b33d9d4f
Use sha1 to generate index IDs.
2015-06-11 11:54:04 +02:00
Friedrich Lindenberg
56d5b232d8
Include support for custom result row types, fixes #41 .
2015-05-23 16:15:17 +02:00
Friedrich Lindenberg
7f7cb41858
Handle column name validation more coherently, fixes #45 .
2015-05-23 15:30:19 +02:00
Friedrich Lindenberg
a0eab8876e
Remove space.
2015-05-23 13:41:08 +02:00
Friedrich Lindenberg
819c37d61d
Make __getitem__ an alias for distinct(). Fixes #87 .
2015-05-23 13:01:36 +02:00
Friedrich Lindenberg
43453415c0
wat
2015-05-21 23:47:46 +02:00
Friedrich Lindenberg
537557285d
Change signature of .upsert and .update on table according to: fixes #43 .
2015-05-21 23:38:14 +02:00
Friedrich Lindenberg
19cc76dd60
Don’t allow dots in column names, fixes #86 .
2015-05-21 23:21:47 +02:00
Friedrich Lindenberg
e662d8bde7
Support for properly returning a query count.
2015-05-21 18:05:26 +02:00
Alexei
7bec815714
Document insert()'s return.
2015-01-07 09:06:34 -05:00
Stefan Wehrmeyer
79d2145202
Make find_one behave more like find
2015-01-06 21:44:59 +01:00