Massimo
NOT NULL and UNIQUE are now options in v1.18.3beta
Indices are a mess because they affect migrations. It is not easy and
it will not in 1.18. Perhaps in v1.19.
I think it may be confusing to some users to have a . in the table
name which is then automatically replaced by _.
Nevertheless I think it would be good practice to have all table
names preceded by something like <schema>_ and I will say that in the
documentation I am working on.
Massimo
On Jan 17, 2008, at 12:54 PM, Vsevolod Balashov wrote:
>
> Hi!
>
> sqlite, mysql, postgres, oracle pass these commands
>
> CREATE TABLE test_1( a INT NOT NULL UNIQUE );
> CREATE TABLE test_2( a INT, UNIQUE( a ) );
> CREATE TABLE test_3( a INT NOT NULL, UNIQUE( a ) );
> CREATE TABLE test_4( a INT, b INT, UNIQUE( a, b ) );
>
> you may read about CREATE TABLE dialects:
>
> http://www.sqlite.org/lang_createtable.html
> http://dev.mysql.com/doc/refman/5.0/en/create-table.html
> http://www.postgresql.org/docs/8.3/static/sql-createtable.html
> http://download.oracle.com/docs/cd/B19188_01/doc/B15917/
> sqcmd.htm#sthref478
> http://download.oracle.com/docs/cd/B19188_01/doc/B15917/
> sqcmd.htm#i1005656
>
would you be willing to run some benchmark code of web2py vs storm vs
sqlalchemy?
I have the benchmark code.
Massimo
link T to google translator!
Massimo