Skip to content

Instantly share code, notes, and snippets.

View petehellyer's full-sized avatar

Peter Hellyer petehellyer

View GitHub Profile
@petehellyer
petehellyer / function.py
Created September 7, 2021 15:06 — forked from fzzylogic/function.py
Django table function
#############################
# Table Functions
#############################
'''
CREATE OR REPLACE FUNCTION get_user(INTEGER DEFAULT NULL, VARCHAR DEFAULT NULL)
RETURNS TABLE(
id INTEGER,
user_id INTEGER,
one_id INTEGER,
username VARCHAR,