Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /examples/sqlgen/database.krb [9c0a10] .. [f16399] Maximize Restore

  Switch to unified view

a/examples/sqlgen/database.krb b/examples/sqlgen/database.krb
...
...
715
715
716
bc_extras
716
bc_extras
717
    from pyke import goal
717
    from pyke import goal
718
718
719
    links_to = \
719
    links_to = \
720
      goal.compile('schema.links_to(%depth, %table, $to_table, $joins)')
720
      goal.compile('schema.links_to($depth, $table, $to_table, $joins)')
721
721
722
    column_lookup = \
722
    column_lookup = \
723
      goal.compile('schema.column(%to_table, %column, $_, $_, $_, $_, $_)')
723
      goal.compile('schema.column($to_table, $column, $_, $_, $_, $_, $_)')
724
724
725
    def find_at_depth1(engine, depth, column, table):
725
    def find_at_depth1(engine, depth, column, table):
726
        got_depth = False
726
        got_depth = False
727
        ans_joins = []
727
        ans_joins = []
728
        with links_to.prove(engine, depth=depth, table=table) as gen1:
728
        with links_to.prove(engine, depth=depth, table=table) as gen1: