File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ List all tables::
20
20
List all views::
21
21
22
22
>>> inspector.get_view_names()
23
- []
24
-
25
- >>> inspector.get_view_names(schema='sys')
26
- []
23
+ ['characters_view']
27
24
28
25
Get default schema name::
29
26
Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ def setUpCrateLayerAndSqlAlchemy(test):
195
195
more_details array(object),
196
196
INDEX name_ft using fulltext(name) with (analyzer = 'english'),
197
197
INDEX quote_ft using fulltext(quote) with (analyzer = 'english')
198
- ) """ )
198
+ )""" )
199
+ cursor .execute ("CREATE VIEW characters_view AS SELECT * FROM characters" )
199
200
200
201
with connect (crate_host ) as conn :
201
202
cursor = conn .cursor ()
@@ -342,6 +343,7 @@ def tearDownWithCrateLayer(test):
342
343
for stmt in ["DROP TABLE locations" ,
343
344
"DROP BLOB TABLE myfiles" ,
344
345
"DROP TABLE characters" ,
346
+ "DROP VIEW characters_view" ,
345
347
"DROP TABLE cities" ,
346
348
"DROP USER me" ,
347
349
"DROP USER trusted_me" ,
You can’t perform that action at this time.
0 commit comments