code
stringlengths 26
870k
| docstring
stringlengths 1
65.6k
| func_name
stringlengths 1
194
| language
stringclasses 1
value | repo
stringlengths 8
68
| path
stringlengths 5
194
| url
stringlengths 46
254
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
def test_sql_parse_transaction_06(self):
"""
START TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
""" | START TRANSACTION ISOLATION LEVEL READ UNCOMMITTED | test_sql_parse_transaction_06 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_07(self):
"""
START TRANSACTION READ WRITE
""" | START TRANSACTION READ WRITE | test_sql_parse_transaction_07 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_08(self):
"""
START TRANSACTION READ ONLY
""" | START TRANSACTION READ ONLY | test_sql_parse_transaction_08 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_09(self):
"""
START TRANSACTION NOT DEFERRABLE
""" | START TRANSACTION NOT DEFERRABLE | test_sql_parse_transaction_09 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_10(self):
"""
START TRANSACTION DEFERRABLE
""" | START TRANSACTION DEFERRABLE | test_sql_parse_transaction_10 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_11(self):
"""
COMMIT
""" | COMMIT | test_sql_parse_transaction_11 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_12(self):
"""
COMMIT TRANSACTION
% OK %
COMMIT
""" | COMMIT TRANSACTION
% OK %
COMMIT | test_sql_parse_transaction_12 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_13(self):
"""
COMMIT WORK
% OK %
COMMIT
""" | COMMIT WORK
% OK %
COMMIT | test_sql_parse_transaction_13 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_14(self):
"""
COMMIT AND NO CHAIN
% OK %
COMMIT
""" | COMMIT AND NO CHAIN
% OK %
COMMIT | test_sql_parse_transaction_14 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_15(self):
"""
COMMIT AND CHAIN
""" | COMMIT AND CHAIN | test_sql_parse_transaction_15 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_16(self):
"""
ROLLBACK
""" | ROLLBACK | test_sql_parse_transaction_16 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_17(self):
"""
ROLLBACK TRANSACTION
% OK %
ROLLBACK
""" | ROLLBACK TRANSACTION
% OK %
ROLLBACK | test_sql_parse_transaction_17 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_18(self):
"""
ROLLBACK WORK
% OK %
ROLLBACK
""" | ROLLBACK WORK
% OK %
ROLLBACK | test_sql_parse_transaction_18 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_19(self):
"""
ROLLBACK AND NO CHAIN
% OK %
ROLLBACK
""" | ROLLBACK AND NO CHAIN
% OK %
ROLLBACK | test_sql_parse_transaction_19 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_20(self):
"""
ROLLBACK AND CHAIN
""" | ROLLBACK AND CHAIN | test_sql_parse_transaction_20 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_21(self):
"""
SAVEPOINT some_id
""" | SAVEPOINT some_id | test_sql_parse_transaction_21 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_22(self):
"""
RELEASE some_id
""" | RELEASE some_id | test_sql_parse_transaction_22 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_23(self):
"""
ROLLBACK TO SAVEPOINT savepoint_name
""" | ROLLBACK TO SAVEPOINT savepoint_name | test_sql_parse_transaction_23 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_24(self):
"""
PREPARE TRANSACTION 'transaction_id'
""" | PREPARE TRANSACTION 'transaction_id' | test_sql_parse_transaction_24 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_25(self):
"""
COMMIT PREPARED 'transaction_id'
""" | COMMIT PREPARED 'transaction_id' | test_sql_parse_transaction_25 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_26(self):
"""
ROLLBACK PREPARED 'transaction_id'
""" | ROLLBACK PREPARED 'transaction_id' | test_sql_parse_transaction_26 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_27(self):
"""
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE
""" | SET TRANSACTION ISOLATION LEVEL SERIALIZABLE READ ONLY DEFERRABLE | test_sql_parse_transaction_27 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_28(self):
"""
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE
""" | SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE | test_sql_parse_transaction_28 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_00(self):
"""
SELECT * FROM
(VALUES (1, 'one'), (2, 'two')) AS t(num, letter)
""" | SELECT * FROM
(VALUES (1, 'one'), (2, 'two')) AS t(num, letter) | test_sql_parse_query_00 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_01(self):
"""
SELECT * FROM my_table ORDER BY field ASC NULLS LAST USING @>
""" | SELECT * FROM my_table ORDER BY field ASC NULLS LAST USING @> | test_sql_parse_query_01 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_02(self):
"""
SELECT m.* FROM mytable AS m FOR UPDATE
""" | SELECT m.* FROM mytable AS m FOR UPDATE | test_sql_parse_query_02 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_03(self):
"""
SELECT m.* FROM mytable m FOR SHARE of m nowait
""" | SELECT m.* FROM mytable m FOR SHARE of m nowait | test_sql_parse_query_03 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_04(self):
"""
SELECT * FROM unnest(ARRAY['a', 'b', 'c', 'd', 'e', 'f'])
""" | SELECT * FROM unnest(ARRAY['a', 'b', 'c', 'd', 'e', 'f']) | test_sql_parse_query_04 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_06(self):
"""
SELECT ?
""" | SELECT ? | test_sql_parse_query_06 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_07(self):
"""
SELECT * FROM x WHERE y = ?
""" | SELECT * FROM x WHERE y = ? | test_sql_parse_query_07 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_08(self):
"""
SELECT * FROM x WHERE y = ANY ($1)
""" | SELECT * FROM x WHERE y = ANY ($1) | test_sql_parse_query_08 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_09(self):
"""
PREPARE fooplan (int, text, bool, numeric) AS (SELECT $1, $2, $3, $4)
% OK %
PREPARE fooplan(pg_catalog.int4, text, bool, pg_catalog.numeric) AS (
SELECT $1, $2, $3, $4
)
""" | PREPARE fooplan (int, text, bool, numeric) AS (SELECT $1, $2, $3, $4)
% OK %
PREPARE fooplan(pg_catalog.int4, text, bool, pg_catalog.numeric) AS (
SELECT $1, $2, $3, $4
) | test_sql_parse_query_09 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_10(self):
"""
EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00)
""" | EXECUTE fooplan(1, 'Hunter Valley', 't', 200.00) | test_sql_parse_query_10 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_11(self):
"""
DEALLOCATE a123
""" | DEALLOCATE a123 | test_sql_parse_query_11 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_12(self):
"""
DEALLOCATE ALL
""" | DEALLOCATE ALL | test_sql_parse_query_12 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_13(self):
"""
EXPLAIN ANALYZE SELECT a
""" | EXPLAIN ANALYZE SELECT a | test_sql_parse_query_13 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_14(self):
"""
VACUUM FULL my_table
""" | VACUUM FULL my_table | test_sql_parse_query_14 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_15(self):
"""
SELECT (pg_column_size(ROW()))::text
""" | SELECT (pg_column_size(ROW()))::text | test_sql_parse_query_15 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_19(self):
"""
DECLARE cursor_123 CURSOR FOR
SELECT * FROM test WHERE id = 123
""" | DECLARE cursor_123 CURSOR FOR
SELECT * FROM test WHERE id = 123 | test_sql_parse_query_19 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_20(self):
"""
FETCH 1000 FROM cursor_123
""" | FETCH 1000 FROM cursor_123 | test_sql_parse_query_20 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_21(self):
"""
CLOSE cursor_123
""" | CLOSE cursor_123 | test_sql_parse_query_21 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_22(self):
"""
CREATE VIEW view_a (a, b) AS WITH RECURSIVE view_a (a, b) AS
(SELECT * FROM a(1)) SELECT "a", "b" FROM "view_a"
""" | CREATE VIEW view_a (a, b) AS WITH RECURSIVE view_a (a, b) AS
(SELECT * FROM a(1)) SELECT "a", "b" FROM "view_a" | test_sql_parse_query_22 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_23(self):
"""
CREATE FOREIGN TABLE ft1 () SERVER no_server
""" | CREATE FOREIGN TABLE ft1 () SERVER no_server | test_sql_parse_query_23 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_24(self):
"""
CREATE TEMPORARY TABLE my_temp_table (
test_id integer NOT NULL
) ON COMMIT DROP
% OK %
CREATE TEMPORARY TABLE my_temp_table (
test_id pg_catalog.int4 NOT NULL
) ON COMMIT DROP
""" | CREATE TEMPORARY TABLE my_temp_table (
test_id integer NOT NULL
) ON COMMIT DROP
% OK %
CREATE TEMPORARY TABLE my_temp_table (
test_id pg_catalog.int4 NOT NULL
) ON COMMIT DROP | test_sql_parse_query_24 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_25(self):
"""
CREATE TEMPORARY TABLE my_temp_table AS (SELECT 1) WITH NO DATA
""" | CREATE TEMPORARY TABLE my_temp_table AS (SELECT 1) WITH NO DATA | test_sql_parse_query_25 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_26(self):
"""
CREATE TABLE types (
a float(2), b float(49),
c NUMERIC(2, 3), d character(4), e char(5),
f varchar(6), g character varying(7))
% OK %
CREATE TABLE types (
a pg_catalog.float4,
b pg_catalog.float8,
c pg_catalog.numeric,
d pg_catalog.bpchar,
e pg_catalog.bpchar,
f pg_catalog.varchar,
g pg_catalog.varchar
)
""" | CREATE TABLE types (
a float(2), b float(49),
c NUMERIC(2, 3), d character(4), e char(5),
f varchar(6), g character varying(7))
% OK %
CREATE TABLE types (
a pg_catalog.float4,
b pg_catalog.float8,
c pg_catalog.numeric,
d pg_catalog.bpchar,
e pg_catalog.bpchar,
f pg_catalog.varchar,
g pg_catalog.varchar
) | test_sql_parse_query_26 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_27(self):
"""
SET LOCAL search_path TO 'my_schema', 'public'
""" | SET LOCAL search_path TO 'my_schema', 'public' | test_sql_parse_query_27 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_28(self):
"""
SET SESSION datestyle TO postgres, dmy
% OK %
SET datestyle TO 'postgres', 'dmy'
""" | SET SESSION datestyle TO postgres, dmy
% OK %
SET datestyle TO 'postgres', 'dmy' | test_sql_parse_query_28 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_29(self):
"""
SHOW search_path
""" | SHOW search_path | test_sql_parse_query_29 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_30(self):
"""
SHOW TIME ZONE
% OK %
SHOW timezone
""" | SHOW TIME ZONE
% OK %
SHOW timezone | test_sql_parse_query_30 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_31(self):
"""
SELECT ('asxasx')[2][3:4]
""" | SELECT ('asxasx')[2][3:4] | test_sql_parse_query_31 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_32(self):
"""
SELECT ((blah(4))[0])[2][3:4][2][5:5]
""" | SELECT ((blah(4))[0])[2][3:4][2][5:5] | test_sql_parse_query_32 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_33(self):
"""
SELECT a <= ANY (ARRAY[1, 2, 3])
""" | SELECT a <= ANY (ARRAY[1, 2, 3]) | test_sql_parse_query_33 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_34(self):
"""
SELECT a <= ALL (ARRAY[1, 2, 3])
""" | SELECT a <= ALL (ARRAY[1, 2, 3]) | test_sql_parse_query_34 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_35(self):
"""
SELECT a <= some(array[1, 2, 3])
% OK %
SELECT a <= ANY (ARRAY[1, 2, 3])
""" | SELECT a <= some(array[1, 2, 3])
% OK %
SELECT a <= ANY (ARRAY[1, 2, 3]) | test_sql_parse_query_35 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_36(self):
"""
SELECT a NOT IN (1, 2, 3)
% OK %
SELECT (a NOT IN (1, 2, 3))
""" | SELECT a NOT IN (1, 2, 3)
% OK %
SELECT (a NOT IN (1, 2, 3)) | test_sql_parse_query_36 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_37(self):
"""
SELECT a NOT LIKE 'a%'
% OK %
SELECT (a NOT LIKE 'a%')
""" | SELECT a NOT LIKE 'a%'
% OK %
SELECT (a NOT LIKE 'a%') | test_sql_parse_query_37 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_38(self):
"""
SELECT a NOT ILIKE 'a%'
% OK %
SELECT (a NOT ILIKE 'a%')
""" | SELECT a NOT ILIKE 'a%'
% OK %
SELECT (a NOT ILIKE 'a%') | test_sql_parse_query_38 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_39(self):
"""
SELECT a ILIKE 'a%'
% OK %
SELECT (a ILIKE 'a%')
""" | SELECT a ILIKE 'a%'
% OK %
SELECT (a ILIKE 'a%') | test_sql_parse_query_39 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_40(self):
"""
WITH RECURSIVE t(n) AS (((
VALUES (1)
) UNION ALL (
SELECT (n + 1) FROM t WHERE (n < 100)
)))
SELECT sum(n) FROM t
""" | WITH RECURSIVE t(n) AS (((
VALUES (1)
) UNION ALL (
SELECT (n + 1) FROM t WHERE (n < 100)
)))
SELECT sum(n) FROM t | test_sql_parse_query_40 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_41(self):
"""
SELECT 1 FROM t WHERE ia.attnum > 0 AND NOT ia.attisdropped
% OK %
SELECT 1 FROM t WHERE ((ia.attnum > 0) AND (NOT ia.attisdropped))
""" | SELECT 1 FROM t WHERE ia.attnum > 0 AND NOT ia.attisdropped
% OK %
SELECT 1 FROM t WHERE ((ia.attnum > 0) AND (NOT ia.attisdropped)) | test_sql_parse_query_41 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_42(self):
"""
SELECT ($1)::oid[]
""" | SELECT ($1)::oid[] | test_sql_parse_query_42 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_43(self):
"""
SELECT ($1)::oid[5]
""" | SELECT ($1)::oid[5] | test_sql_parse_query_43 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_44(self):
"""
SELECT ($1)::oid[5][6]
""" | SELECT ($1)::oid[5][6] | test_sql_parse_query_44 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_45(self):
"""
SET LOCAL search_path TO DEFAULT
""" | SET LOCAL search_path TO DEFAULT | test_sql_parse_query_45 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_46(self):
"""
SET SESSION search_path TO DEFAULT
% OK %
SET search_path TO DEFAULT
""" | SET SESSION search_path TO DEFAULT
% OK %
SET search_path TO DEFAULT | test_sql_parse_query_46 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_47(self):
"""
RESET search_path
% OK %
SET search_path TO DEFAULT
""" | RESET search_path
% OK %
SET search_path TO DEFAULT | test_sql_parse_query_47 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_48(self):
"""
RESET ALL
""" | RESET ALL | test_sql_parse_query_48 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_49(self):
"""
SELECT nullif(a, 3) FROM b
""" | SELECT nullif(a, 3) FROM b | test_sql_parse_query_49 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_50(self):
"""
SELECT 'a'::char, 'a'::"char"
% OK %
SELECT ('a')::pg_catalog.bpchar, ('a')::pg_catalog.char
""" | SELECT 'a'::char, 'a'::"char"
% OK %
SELECT ('a')::pg_catalog.bpchar, ('a')::pg_catalog.char | test_sql_parse_query_50 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_51(self):
"""
SELECT ARRAY ((SELECT c FROM a)) FROM b
""" | SELECT ARRAY ((SELECT c FROM a)) FROM b | test_sql_parse_query_51 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_52(self):
"""
SELECT * FROM b WHERE (c ILIKE 'blah%' COLLATE collation_name)
""" | SELECT * FROM b WHERE (c ILIKE 'blah%' COLLATE collation_name) | test_sql_parse_query_52 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_53(self):
"""
SELECT GREATEST(x, y, 0), LEAST(x, y, 100) FROM b
""" | SELECT GREATEST(x, y, 0), LEAST(x, y, 100) FROM b | test_sql_parse_query_53 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_54(self):
"""
SELECT (x IS DISTINCT FROM y) FROM b
""" | SELECT (x IS DISTINCT FROM y) FROM b | test_sql_parse_query_54 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_query_55(self):
"""
SELECT (x IS NOT DISTINCT FROM y) FROM b
""" | SELECT (x IS NOT DISTINCT FROM y) FROM b | test_sql_parse_query_55 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_01(self):
'''
LOCK TABLE films IN ACCESS SHARE MODE
''' | LOCK TABLE films IN ACCESS SHARE MODE | test_sql_parse_lock_01 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_02(self):
'''
LOCK TABLE films IN ACCESS SHARE MODE NOWAIT
''' | LOCK TABLE films IN ACCESS SHARE MODE NOWAIT | test_sql_parse_lock_02 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_03(self):
'''
LOCK TABLE ONLY (films) IN ACCESS SHARE MODE
''' | LOCK TABLE ONLY (films) IN ACCESS SHARE MODE | test_sql_parse_lock_03 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_04(self):
'''
LOCK TABLE ONLY (films) IN ACCESS SHARE MODE NOWAIT
''' | LOCK TABLE ONLY (films) IN ACCESS SHARE MODE NOWAIT | test_sql_parse_lock_04 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_05(self):
'''
LOCK TABLE films IN ROW SHARE MODE
''' | LOCK TABLE films IN ROW SHARE MODE | test_sql_parse_lock_05 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_06(self):
'''
LOCK TABLE films IN ROW EXCLUSIVE MODE
''' | LOCK TABLE films IN ROW EXCLUSIVE MODE | test_sql_parse_lock_06 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_07(self):
'''
LOCK TABLE films IN SHARE UPDATE EXCLUSIVE MODE
''' | LOCK TABLE films IN SHARE UPDATE EXCLUSIVE MODE | test_sql_parse_lock_07 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_08(self):
'''
LOCK TABLE films IN SHARE MODE
''' | LOCK TABLE films IN SHARE MODE | test_sql_parse_lock_08 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_09(self):
'''
LOCK TABLE films IN SHARE ROW EXCLUSIVE MODE
''' | LOCK TABLE films IN SHARE ROW EXCLUSIVE MODE | test_sql_parse_lock_09 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_10(self):
'''
LOCK TABLE films IN EXCLUSIVE MODE
''' | LOCK TABLE films IN EXCLUSIVE MODE | test_sql_parse_lock_10 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_lock_11(self):
'''
LOCK TABLE films IN ACCESS EXCLUSIVE MODE
''' | LOCK TABLE films IN ACCESS EXCLUSIVE MODE | test_sql_parse_lock_11 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_29(self):
"""
SET SESSION transaction_isolation = serializable
% OK %
SET LOCAL transaction_isolation TO 'serializable'
""" | SET SESSION transaction_isolation = serializable
% OK %
SET LOCAL transaction_isolation TO 'serializable' | test_sql_parse_transaction_29 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_30(self):
"""
RESET transaction_deferrable
% OK %
SET LOCAL transaction_deferrable TO DEFAULT
""" | RESET transaction_deferrable
% OK %
SET LOCAL transaction_deferrable TO DEFAULT | test_sql_parse_transaction_30 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_transaction_31(self):
"""
SET transaction_read_only TO DEFAULT
% OK %
SET LOCAL transaction_read_only TO DEFAULT
""" | SET transaction_read_only TO DEFAULT
% OK %
SET LOCAL transaction_read_only TO DEFAULT | test_sql_parse_transaction_31 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_01(self):
"""
COPY "Movie" TO STDOUT (
FORMAT CSV,
FREEZE,
DELIMITER '|',
NULL 'this is a null',
HEADER FALSE,
QUOTE '''',
ESCAPE 'e',
FORCE_QUOTE (title, year_release),
FORCE_NOT_NULL (title),
FORCE_NULL (year_release),
ENCODING 'UTF-8'
)
""" | COPY "Movie" TO STDOUT (
FORMAT CSV,
FREEZE,
DELIMITER '|',
NULL 'this is a null',
HEADER FALSE,
QUOTE '''',
ESCAPE 'e',
FORCE_QUOTE (title, year_release),
FORCE_NOT_NULL (title),
FORCE_NULL (year_release),
ENCODING 'UTF-8'
) | test_sql_parse_copy_01 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_02(self):
"""
COPY ((SELECT * FROM "Movie")) TO STDOUT
""" | COPY ((SELECT * FROM "Movie")) TO STDOUT | test_sql_parse_copy_02 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_03(self):
"""
COPY "Movie" (title, release_year) FROM STDIN WHERE (id > 100)
""" | COPY "Movie" (title, release_year) FROM STDIN WHERE (id > 100) | test_sql_parse_copy_03 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_04(self):
"""
COPY country TO STDOUT (DELIMITER '|')
""" | COPY country TO STDOUT (DELIMITER '|') | test_sql_parse_copy_04 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_05(self):
"""
COPY country FROM '/usr1/proj/bray/sql/country_data'
""" | COPY country FROM '/usr1/proj/bray/sql/country_data' | test_sql_parse_copy_05 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_copy_06(self):
"""
COPY country TO PROGRAM 'gzip > /usr1/proj/bray/sql/country_data.gz'
""" | COPY country TO PROGRAM 'gzip > /usr1/proj/bray/sql/country_data.gz' | test_sql_parse_copy_06 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_table(self):
"""
TABLE hello_world
% OK %
SELECT * FROM hello_world
""" | TABLE hello_world
% OK %
SELECT * FROM hello_world | test_sql_parse_table | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_select_locking_00(self):
"""
SELECT id FROM a FOR UPDATE
""" | SELECT id FROM a FOR UPDATE | test_sql_parse_select_locking_00 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_select_locking_01(self):
"""
SELECT id FROM a FOR NO KEY UPDATE
""" | SELECT id FROM a FOR NO KEY UPDATE | test_sql_parse_select_locking_01 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_select_locking_02(self):
"""
SELECT id FROM a FOR SHARE
""" | SELECT id FROM a FOR SHARE | test_sql_parse_select_locking_02 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
def test_sql_parse_select_locking_03(self):
"""
SELECT id FROM a FOR KEY SHARE
""" | SELECT id FROM a FOR KEY SHARE | test_sql_parse_select_locking_03 | python | geldata/gel | tests/test_sql_parse.py | https://github.com/geldata/gel/blob/master/tests/test_sql_parse.py | Apache-2.0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.