Skip to content

Commit

Permalink
Fix naming: RedShift -> Redshift
Browse files Browse the repository at this point in the history
  • Loading branch information
jklukas committed Sep 22, 2015
1 parent b756546 commit 140d691
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions docs/conf.py
@@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-

import sys
import os
from docutils import utils as docutils_utils

import sphinx.environment

import redshift_sqlalchemy
Expand Down
2 changes: 1 addition & 1 deletion docs/ddl-compiler.rst
@@ -1,5 +1,5 @@
DDL Compiler
============

.. autoclass:: redshift_sqlalchemy.dialect.RedShiftDDLCompiler
.. autoclass:: redshift_sqlalchemy.dialect.RedshiftDDLCompiler
:members:
6 changes: 3 additions & 3 deletions redshift_sqlalchemy/dialect.py
Expand Up @@ -144,7 +144,7 @@ def visit_now_func(self, fn, **kw):
return "SYSDATE"


class RedShiftDDLCompiler(PGDDLCompiler):
class RedshiftDDLCompiler(PGDDLCompiler):
"""
Handles Redshift-specific ``CREATE TABLE`` syntax.
Expand Down Expand Up @@ -327,7 +327,7 @@ class RedshiftDialect(PGDialect_psycopg2):
name = 'redshift'

statement_compiler = RedshiftCompiler
ddl_compiler = RedShiftDDLCompiler
ddl_compiler = RedshiftDDLCompiler

construct_arguments = [
(schema.Index, {
Expand Down Expand Up @@ -745,7 +745,7 @@ def process_aws_credentials(access_key_id, secret_access_key,

class UnloadFromSelect(Executable, ClauseElement):
"""
Prepares a RedShift unload statement to drop a query to Amazon S3
Prepares a Redshift unload statement to drop a query to Amazon S3
https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD_command_examples.html
Parameters
Expand Down
2 changes: 1 addition & 1 deletion tests/test_alembic_dialect.py
Expand Up @@ -12,6 +12,6 @@ def test_configure_migration_context():


def test_rename_table():
compiler = dialect.RedShiftDDLCompiler(dialect.RedshiftDialect(), None)
compiler = dialect.RedshiftDDLCompiler(dialect.RedshiftDialect(), None)
sql = compiler.process(RenameTable("old", "new", "scheme"))
assert sql == 'ALTER TABLE scheme."old" RENAME TO "new"'
4 changes: 2 additions & 2 deletions tests/test_ddl_compiler.py
Expand Up @@ -5,14 +5,14 @@
from sqlalchemy.exc import CompileError
from sqlalchemy.schema import CreateTable

from redshift_sqlalchemy.dialect import RedShiftDDLCompiler, RedshiftDialect
from redshift_sqlalchemy.dialect import RedshiftDDLCompiler, RedshiftDialect


class TestDDLCompiler(object):

@pytest.fixture
def compiler(self):
compiler = RedShiftDDLCompiler(RedshiftDialect(), None)
compiler = RedshiftDDLCompiler(RedshiftDialect(), None)
return compiler

def _compare_strings(self, expected, actual):
Expand Down

0 comments on commit 140d691

Please sign in to comment.