From 8f18ffead11ef67a6c0391be0dd53d699bab1dd9 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Tue, 8 Mar 2016 17:02:27 +0100 Subject: [PATCH] testing: update crate to 0.54.6 --- docs/sqlalchemy.txt | 9 +++++---- src/crate/client/sqlalchemy/dialect.txt | 6 +++--- versions.cfg | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/sqlalchemy.txt b/docs/sqlalchemy.txt index dea71cbe..9c5f18fa 100644 --- a/docs/sqlalchemy.txt +++ b/docs/sqlalchemy.txt @@ -375,13 +375,14 @@ In order to create all missing tables the ``create_all`` method can be used:: >>> engine.dialect.has_table(conn, table_name='departments') True - >>> stmt = ("select * from information_schema.columns " + >>> stmt = ("select table_name, column_name, ordinal_position, data_type " + ... "from information_schema.columns " ... "where table_name = 'departments' " ... "order by column_name") >>> pprint([str(r) for r in conn.execute(stmt)]) - ["('doc', 'departments', 'code', 1, 'integer')", - "('doc', 'departments', 'id', 2, 'string')", - "('doc', 'departments', 'name', 3, 'string')"] + ["('departments', 'code', 1, 'integer')", + "('departments', 'id', 2, 'string')", + "('departments', 'name', 3, 'string')"] Delete Tables using the ORM diff --git a/src/crate/client/sqlalchemy/dialect.txt b/src/crate/client/sqlalchemy/dialect.txt index 124dbbd1..c7adc244 100644 --- a/src/crate/client/sqlalchemy/dialect.txt +++ b/src/crate/client/sqlalchemy/dialect.txt @@ -12,7 +12,7 @@ The initialize method sets the default schema name and version info:: 'doc' >>> dialect.server_version_info - (0, 52, 4) + (0, 54, 6) Check if table exists:: @@ -24,8 +24,8 @@ List all tables:: >>> dialect.get_table_names(connection) ['characters', 'locations'] - >>> dialect.get_table_names(connection, schema='sys') - ['checks', 'cluster', 'jobs', 'jobs_log', 'nodes', 'operations', 'operations_log', 'shards'] + >>> dialect.get_table_names(connection, schema='sys')[:4] + ['checks', 'cluster', 'jobs', 'jobs_log'] Check if schema exists:: diff --git a/versions.cfg b/versions.cfg index 9ab73421..c22b8f3d 100644 --- a/versions.cfg +++ b/versions.cfg @@ -1,5 +1,5 @@ [versions] -crate_server = 0.52.4 +crate_server = 0.54.6 flake8 = 2.5.1 mccabe = 0.3.1