Skip to content

Commit

Permalink
testing: update crate to 0.54.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Mar 8, 2016
1 parent feba569 commit 8f18ffe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions docs/sqlalchemy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/crate/client/sqlalchemy/dialect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand All @@ -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::

Expand Down
2 changes: 1 addition & 1 deletion versions.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
crate_server = 0.52.4
crate_server = 0.54.6

flake8 = 2.5.1
mccabe = 0.3.1
Expand Down

0 comments on commit 8f18ffe

Please sign in to comment.