Skip to content

Instantly share code, notes, and snippets.

@jakthom
jakthom / sqlalchemy_abm.py
Created May 5, 2025 21:52
SQLAlchemy Abstract Base Model Example
from uuid import uuid4
from sqlalchemy.dialects.postgresql import JSONB, UUID
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
# This is the magical part that saves you a bunch of time and whatnot
class BaseModel(db.Model):
__abstract__ = True
sinks:
- name: blackhole
type: blackhole
deliveryRequired: true
- name: local
type: file
deliveryRequired: true
- name: web
type: http
deliveryRequired: true
@jakthom
jakthom / README.md
Last active August 29, 2015 14:09
Xively