On Fri, Mar 28, 2014 at 1:16 AM, thatsanicehatyouh...@mac.com wrote:
Hi,
I'm trying to configure a table with autoload but can't quite get the syntax
to set up a self-relationship. This is my abbreviated) schema:
CREATE TABLE sdssphoto.photoobj
(
pk bigint NOT NULL DEFAULT
On Mar 28, 2014, at 6:40 AM, Simon King si...@simonking.org.uk wrote:
The alternative is to define the children relationship after the
class has been defined:
class PhotoObj(Base):
__tablename__ = 'photoobj'
__table_args__ = {'autoload':True, 'schema':'sdssphoto'}
Hi,
I'm trying to configure a table with autoload but can't quite get the syntax to
set up a self-relationship. This is my abbreviated) schema:
CREATE TABLE sdssphoto.photoobj
(
pk bigint NOT NULL DEFAULT nextval('photoobj_pk_seq'::regclass),
parent_photoobj_pk bigint
CONSTRAINT