Commit Graph

342 Commits

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli
01dc9391d1 Adds len() to relation
Returns the cardinality
2015-06-05 18:28:44 +02:00
Salvo 'LtWorf' Tomaselli
d05c2e2d3c Replace intermediate lists with iterators
Some more intermediate lists created during joins are now
not created in favour of iterators instead
2015-06-05 18:15:03 +02:00
Salvo 'LtWorf' Tomaselli
f974fc316d Use intersection method of header
Rather than manually implement that with 2 for loops
2015-06-05 18:02:46 +02:00
Salvo 'LtWorf' Tomaselli
c8db7b619c Replace temp lists with iterators 2015-06-05 17:54:54 +02:00
Salvo 'LtWorf' Tomaselli
f0a9650174 Added iter function
Adds __iter__ and __contains__ to relations and headers.
2015-06-05 17:41:09 +02:00
Salvo 'LtWorf' Tomaselli
f2bde1b6bd Removed unmaintained parallel module
The module is unmaintained and in any case, does not limit the
amount of parallel jobs.
2015-06-02 14:58:20 +02:00
Salvo 'LtWorf' Tomaselli
a965cff14a Removed unused module 2015-06-01 10:32:15 +02:00
Salvo 'LtWorf' Tomaselli
de405480b5 Moved casting function in rstring
rstring now has an autocast() function that returns the automatic casting
for that value.
The casting is cached so is really performed only once, at most, during
the lifetime of the object.
2015-06-01 09:12:22 +02:00
Salvo 'LtWorf' Tomaselli
e4158a3685 Refactored rename header
Now will directly raise an exception, requiring one less if
2015-06-01 08:58:54 +02:00
Salvo 'LtWorf' Tomaselli
1f7983309b Simplified getAttributesId() 2015-06-01 08:55:11 +02:00
Salvo 'LtWorf' Tomaselli
496a5c19d1 Raise an exception when trying to insert n-uples with the wrong cardinality 2015-06-01 08:49:40 +02:00
Salvo 'LtWorf' Tomaselli
3fca4edd15 Refactory of rearrange 2015-06-01 08:48:52 +02:00
Salvo 'LtWorf' Tomaselli
766a3a6527 Simplified delete method 2015-06-01 08:45:29 +02:00
Salvo 'LtWorf' Tomaselli
be6400c270 Mark both relations as read-only after a rename
Only one relation was marked as read-only after a rename, which means
that changes to the original relation would affect the other one
as well.
2015-06-01 08:43:41 +02:00
Salvo 'LtWorf' Tomaselli
acdd4629a6 Python3 change, replace file() with open() 2015-06-01 07:32:53 +02:00
Salvo 'LtWorf' Tomaselli
4af2230ced Use rstrings anywhere
Since rstrings are faster and provide some caching features,
keep the same rstring objects from the beginning rather than
continuously casting strings.
2015-06-01 07:31:19 +02:00
Salvo 'LtWorf' Tomaselli
19cff69718 Cache type information on strings
During a selection operation, each value is matched against a regular
expression and then casting might be performed, depending on the results.

This commit caches the result of the match so that a value is not matched
multiple times in its lifetime.
2015-06-01 00:45:49 +02:00
Salvo 'LtWorf' Tomaselli
8cb08ad030 Change relational language to use math symbols
The symbols previously used were a Canadian script, and were looking
good enough, but they might not be installed in every machine.

Besides, all this is to workaround a Qt5 bug that prevents from
rendering those symbols at times.
2015-05-31 19:01:03 +02:00
Salvo 'LtWorf' Tomaselli
0a562ff603 Check for duplicated attributes
Fails to work if attributes are duplicated, raising an appropriate
exception.
2015-02-23 14:17:50 +01:00
Salvo 'LtWorf' Tomaselli
cf377eca46 Initial Qt5/Python3 switch
This converts the GUI code to use Qt5 and Python3

The GUI is still somewhat buggy, and it can't open files yet,
but seems to be mostly working, extensive testing will
be needed before this can be released.
2015-02-19 14:00:47 +01:00
Salvo 'LtWorf' Tomaselli
991b0d9942 Converted command line interface to Python3 2015-02-19 12:56:21 +01:00
Salvo 'LtWorf' Tomaselli
a355762fc4 Switch core module to Python3
The core module (the relational algebra, not the interface) is now
using Python3

Tests are passing, so it should be ok.
2015-02-19 12:42:41 +01:00
Salvo 'LtWorf' Tomaselli
c8d9e57a50 Get rid of the last remains of galileo 2013-12-27 00:47:48 +01:00
Salvo 'LtWorf' Tomaselli
556eecc118 Changed about and README to not point to galileo anymore 2013-12-27 00:31:43 +01:00
Salvo 'LtWorf' Tomaselli
5e4a703f56 New way of checking for new versions 2013-12-27 00:16:12 +01:00
Salvo 'LtWorf' Tomaselli
c637890795 Make the survey point to the new location on appspot 2013-12-26 23:51:00 +01:00
Salvo 'LtWorf' Tomaselli
f1eb4e0b23 doc change 2013-06-29 16:51:20 +02:00
Salvo 'LtWorf' Tomaselli
dee91df8a6 sql module was never implemented 2013-06-29 16:51:06 +02:00
Salvo 'LtWorf' Tomaselli
57979cbf8d can import with * 2013-06-29 15:41:03 +02:00
Salvo 'LtWorf' Tomaselli
78c37999cc fixed typo 2013-06-29 15:40:48 +02:00
Salvo 'LtWorf' Tomaselli
27ba11cf40 first stub of new API 2013-02-17 22:46:56 +01:00
Salvo 'LtWorf' Tomaselli
5433f14b66 Generates tokenizer exception if the value is not unicode 2013-02-10 14:24:52 +01:00
Salvo 'LtWorf' Tomaselli
2e0cbf94a7 - Can convert the expressions into python code objects as well
- Can test that the code objects work as expected too.
2013-02-10 14:11:26 +01:00
LtWorf
913a304d35 - can import *
- starting a common code to remove duplication in interfaces


git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@344 014f5005-505e-4b48-8d0a-63407b615a7c
2012-01-25 15:46:11 +00:00
LtWorf
3978259f4a - improved an optimization, to produce a simpler select condition under certain circumstances
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@343 014f5005-505e-4b48-8d0a-63407b615a7c
2011-11-07 19:01:33 +00:00
LtWorf
0986da8db7 - parser gives more indicative errors
- changed two "range" into xrange


git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@340 014f5005-505e-4b48-8d0a-63407b615a7c
2011-11-01 19:29:55 +00:00
LtWorf
48bde3ea84 - Improved tokenizer
- GUI shows unicode errors (i really can't wait for debian to have pyqt in python 3)



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@339 014f5005-505e-4b48-8d0a-63407b615a7c
2011-11-01 18:47:03 +00:00
LtWorf
cdd771462d - command line interface using new API
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@333 014f5005-505e-4b48-8d0a-63407b615a7c
2011-10-17 21:26:01 +00:00
LtWorf
466c72ab2c - Other fixes
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@331 014f5005-505e-4b48-8d0a-63407b615a7c
2011-10-15 22:12:06 +00:00
LtWorf
9344304f68 - More fixes for unicode...
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@330 014f5005-505e-4b48-8d0a-63407b615a7c
2011-10-15 22:00:17 +00:00
LtWorf
17452f1e0b - migrating to unicode
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@329 014f5005-505e-4b48-8d0a-63407b615a7c
2011-10-15 21:45:33 +00:00
LtWorf
4c5915e854 - Minor changes to comments
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@313 014f5005-505e-4b48-8d0a-63407b615a7c
2011-10-08 17:04:07 +00:00
LtWorf
fb7e9d2b6f - Can perform survey from command line interface too
- Module to send survey directly
- Can check the latest version from the svn repository



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@311 014f5005-505e-4b48-8d0a-63407b615a7c
2011-06-14 16:21:15 +00:00
LtWorf
8a21307d22 - Removed futile recoursive import, that would not work in python3
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@307 014f5005-505e-4b48-8d0a-63407b615a7c
2011-06-06 09:07:50 +00:00
LtWorf
3ca26b10c6 - Forces relations to have correct attribute names
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@296 014f5005-505e-4b48-8d0a-63407b615a7c
2011-04-01 07:06:08 +00:00
LtWorf
dfb3f19acf - Raises exception for wrong relational operations
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@295 014f5005-505e-4b48-8d0a-63407b615a7c
2011-04-01 06:38:47 +00:00
LtWorf
1eab04582d - Inserted language definition in parser
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@294 014f5005-505e-4b48-8d0a-63407b615a7c
2011-03-31 08:26:13 +00:00
LtWorf
b4dffea5cf - Changed header comments in modules
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@287 014f5005-505e-4b48-8d0a-63407b615a7c
2011-03-22 16:02:36 +00:00
LtWorf
f8b0ab746b - Added test
- Re-sorted CHANGELOG



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@286 014f5005-505e-4b48-8d0a-63407b615a7c
2011-03-22 13:28:41 +00:00
LtWorf
4a6f2cc222 - Handles sign in numeric types
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@284 014f5005-505e-4b48-8d0a-63407b615a7c
2011-03-21 13:30:04 +00:00