server/test/data/sources_extern
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Mar 2010 13:59:47 +0100
branchstable
changeset 5013 ad91f93bbb93
parent 364 226cbb207859
child 6427 c8a5ac2d1eaa
permissions -rw-r--r--
[source storage] refactor source sql generation and results handling to allow repository side callbacks for instance with the BytesFileSystemStorage, before this change: * fspath, _fsopen function were stored procedures executed on the database -> files had to be available both on the repository *and* the database host * we needed implementation for each handled database Now, those function are python callbacks executed when necessary on the repository side, on data comming from the database. The litle cons are: * you can't do anymore restriction on mapped attributes * you can't write queries which will return in the same rset column some mapped attributes (or not mapped the same way) / some not This seems much acceptable since: * it's much more easy to handle when you start having the db on another host than the repo * BFSS works seemlessly on any backend now * you don't bother that much about the cons (at least in the bfss case): you usually don't do any restriction on Bytes... Bonus points: BFSS is more efficient (no queries under the cover as it was done in the registered procedure) and we have a much nicer/efficient fspath implementation. IMO, that rocks :D
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
364
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
[system]
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
db-driver   = sqlite
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
db-host     = 
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
adapter     = native
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
db-name     = tmpdb-extern
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
db-encoding = UTF-8
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     8
db-user     = admin
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     9
db-password = gingkow
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    10
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    11
[admin]
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    12
login = admin
226cbb207859 missing test resources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    13
password = gingkow