Skip to content

Instantly share code, notes, and snippets.

View spellgen's full-sized avatar

Stefan Engstrom spellgen

View GitHub Profile
@spellgen
spellgen / clever.named_queries
Created August 27, 2021 23:19 — forked from gchristian/clever.named_queries
Example named query file for PowerSchool Clever sync
# This is an example only. I no longer use it and hope to update it eventually.
# If you are starting from scratch you should be using the users table not the teachers view
# for creating a PK for your staff. If you don't, teachers who teach at multiple schools will
# not work correctly. My fix was to just keep using the schoolstaff id's (that is what the
# teacher view uses) but make sure it is always the users homeschool's sschoolstaff id. It'd be
# cleaner to have just used the users table to begin with though. I have a much better understanding
# of mysql and ps tables then I was when I first wrote this.
<queries>
<query name="org.yourschool.clever.schools.all" coreTable="SCHOOLS" flattened="true">