Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding and connecting the server using pgbouncer database aliases.#3564 #8485

Closed

Conversation

yogeshmahajan-1903
Copy link
Contributor

No description provided.



def upgrade():
op.add_column('server', sa.Column('db_alias', sa.String(length=256)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when adding new column to server always add autoincrement

    with op.batch_alter_table(
            "server", table_kwargs={'sqlite_autoincrement': True}) as batch_op:
        batch_op.add_column(sa.Column('tags', sa.JSON(), nullable=True))

@@ -767,6 +768,7 @@ def update(self, gid, sid):
'name': gettext('name'),
'port': gettext('Port'),
'db': gettext('Maintenance database'),
'db_alias': gettext('Database Alias '),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove leading space.

mode: ['properties', 'edit', 'create'], readonly: obj.isConnected,
disabled: function(state) {
return !isEmptyString(state.db);
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add help message here - This is helpful in pg_bouncer where server can be connected using database alias name

@akshay-joshi
Copy link
Contributor

As per discussion with Dave, this PR is not required anymore, hence closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants