Exemplo n.º 1
0
def index_ad_performance_parameters():
    with mara_db.postgresql.postgres_cursor_context(
            default_db_alias()) as cursor:
        cursor.execute(
            '''SELECT util.get_columns('fb_dim_next', 'ad_performance', '%_fk');'''
        )
        return cursor.fetchall()
Exemplo n.º 2
0
 def target_db_alias(self):
     return self._target_db_alias or config.default_db_alias()
Exemplo n.º 3
0
 def db_alias(self):
     return self._db_alias or config.default_db_alias()
Exemplo n.º 4
0
def index_ad_parameters():
    with mara_db.postgresql.postgres_cursor_context(
            default_db_alias()) as cursor:
        cursor.execute(
            '''select util.get_columns('fb_dim_next', 'ad', '%_name');''')
        return cursor.fetchall()