Commit Graph

585 Commits

Author SHA1 Message Date
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
c345c1e521 Added new changes in CHANGELOG 2015-06-01 08:42:40 +02:00
Salvo 'LtWorf' Tomaselli
d60b5f7983 Print compiled expressions for multiline queries 2015-06-01 07:34:21 +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
cd5c2845e1 Store last multiline query
When loading, the last multiline query used will be available.

Also, refactored the part to execute multiline queries in a
separate function.
2015-06-01 00:17:19 +02:00
Salvo 'LtWorf' Tomaselli
bf13fe0c4a Remove manual font setting
It is a workaround that should not be necessary.

However, maybe it still is, on windows.
2015-06-01 00:02:32 +02:00
Salvo 'LtWorf' Tomaselli
7530c30185 Generated UI 2015-06-01 00:02:23 +02:00
Salvo 'LtWorf' Tomaselli
f3af25f132 Support multi-line editing mode
This mode supports the insertion of multiple queries in one shot,
assign them to variables and reuse them.

Basically a program. Less interactive mode but better for more
complicated queries.
2015-06-01 00:00:59 +02:00
Salvo 'LtWorf' Tomaselli
2341f93cf6 Updated README's examples
Also put more in evidence the link to the proper website
2015-05-31 19:12:10 +02:00
Salvo 'LtWorf' Tomaselli
eda84914af Generate UI files 2015-05-31 19:04:45 +02:00
Salvo 'LtWorf' Tomaselli
282d9fdd17 Bump version 2015-05-31 19:04:06 +02:00
Salvo 'LtWorf' Tomaselli
4a71130d0a Change UI to use the new symbols 2015-05-31 19:03:49 +02:00
Salvo 'LtWorf' Tomaselli
abfa6a00c2 Use constants rather than hardcoded symbols
In the code that inserts the symbols in the query, use constants from the
parser module.
2015-05-31 19:03:17 +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
7e1c2c964c I can't remember what the changes were 2015-03-12 10:21:01 +01:00
Salvo 'LtWorf' Tomaselli
221861be51 Marked operator buttons labels as untranslatable 2015-02-23 15:23:27 +01:00
Salvo 'LtWorf' Tomaselli
5bfbe4f4af Ask again if the relation name is incorrect
When creating a new relation, if the name is incorrect, ask again rather than
drop entirely the new relation.
2015-02-23 14:19:28 +01: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
512aafd946 Style 2015-02-19 14:06:11 +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
98da6fa7f6 Switch GUI generation to Qt5
Use Qt5 GUI generation in the makefile.

Also drop support for PySide.
2015-02-19 13:59:41 +01:00
Salvo 'LtWorf' Tomaselli
fd4677be00 Mention the language switch 2015-02-19 12:58:36 +01:00
Salvo 'LtWorf' Tomaselli
06c5047c8f Prints ^C in CLI mode when Ctrl+C is pressed 2015-02-19 12:57:02 +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
4019fbadb0 New website is located on gh-pages
Eliminating that useless directory
2015-02-18 17:54:47 +01:00
Salvo 'LtWorf' Tomaselli
da4c549ea0 Drop support for PySide
It's no longer developed and I'm moving to Qt5 which
is not supported
2015-02-18 17:53:02 +01:00
Salvo 'LtWorf' Tomaselli
32f7aa5410 Make everything point to the brand new website 2015-02-11 19:50:41 +01:00
Salvo 'LtWorf' Tomaselli
fd8d0089de better readme 2015-02-11 17:07:39 +01:00
Salvo 'LtWorf' Tomaselli
a04ddf72ee better readme 2015-02-11 16:56:21 +01:00
Salvo 'LtWorf' Tomaselli
224e470295 debian changelog 2015-02-11 14:50:43 +01:00
Salvo 'LtWorf' Tomaselli
8321232484 Fix bug in relational-cli that made it crash when an exception was raised 2014-01-11 12:27:16 +01:00
Salvo 'LtWorf' Tomaselli
be0d95b838 Prepare for new version 2014-01-11 12:21:41 +01:00
Salvo 'LtWorf' Tomaselli
dabd746a5e Website 2014-01-01 11:15:25 +01:00
Salvo 'LtWorf' Tomaselli
e0b9525677 Forget about the downloads on google, use google code instead 2014-01-01 10:37:31 +01:00
Salvo 'LtWorf' Tomaselli
c8eff8bb1d Revert handlers order 2013-12-30 12:37:54 +01:00
Salvo 'LtWorf' Tomaselli
3aeed43263 Added downloads directory
That's because I have nowhere else really to host the files and I need a place to keep the windows setup
2013-12-30 12:36:49 +01:00
Salvo 'LtWorf' Tomaselli
42426d9224 Remove clean override
It will allow rebuilding many times
2013-12-28 10:54:28 +01:00
Salvo 'LtWorf' Tomaselli
a1896d5a2e add xtermcolor dep 2013-12-28 10:53:59 +01:00
Salvo 'LtWorf' Tomaselli
b5ad2cfc12 More generic, better and shorter clean target 2013-12-28 10:53:47 +01:00
Salvo 'LtWorf' Tomaselli
bd563fcbbc Send also the originating IP address 2013-12-28 10:53:21 +01:00
Salvo 'LtWorf' Tomaselli
8157464497 Fixed sender's address, to make google happy 2013-12-27 08:34:22 +01:00