## Generated by Codox

# Youyesyet 0.2.1

# youyesyet.db.core

    Database access functions, mostly from Luminus template.

### *db*

#### dynamic

    FIXME: write docs

### create-address!

    creates a new address record

### create-address!-sqlvec

    creates a new address record (sqlvec)

### create-authority!

    creates a new authority record

### create-authority!-sqlvec

    creates a new authority record (sqlvec)

### create-canvasser!

    creates a new canvasser record

### create-canvasser!-sqlvec

    creates a new canvasser record (sqlvec)

### create-district!

    creates a new district record

### create-district!-sqlvec

    creates a new district record (sqlvec)

### create-dwelling!

    creates a new dwelling record

### create-dwelling!-sqlvec

    creates a new dwelling record (sqlvec)

### create-elector!

    creates a new elector record

### create-elector!-sqlvec

    creates a new elector record (sqlvec)

### create-event!

    creates a new event record

### create-event!-sqlvec

    creates a new event record (sqlvec)

### create-followupaction!

    creates a new followupaction record

### create-followupaction!-sqlvec

    creates a new followupaction record (sqlvec)

### create-followupmethod!

    creates a new followupmethod record

### create-followupmethod!-sqlvec

    creates a new followupmethod record (sqlvec)

### create-followuprequest!

    creates a new followuprequest record

### create-followuprequest!-sqlvec

    creates a new followuprequest record (sqlvec)

### create-gender!

    creates a new gender record

### create-gender!-sqlvec

    creates a new gender record (sqlvec)

### create-intention!

    creates a new intention record

### create-intention!-sqlvec

    creates a new intention record (sqlvec)

### create-issue!

    creates a new issue record

### create-issue!-sqlvec

    creates a new issue record (sqlvec)

### create-option!

    creates a new option record

### create-option!-sqlvec

    creates a new option record (sqlvec)

### create-role!

    creates a new role record

### create-role!-sqlvec

    creates a new role record (sqlvec)

### create-team!

    creates a new team record

### create-team!-sqlvec

    creates a new team record (sqlvec)

### create-visit!

    creates a new visit record

### create-visit!-sqlvec

    creates a new visit record (sqlvec)

### delete-address!

    updates an existing address record

### delete-address!-sqlvec

    updates an existing address record (sqlvec)

### delete-authority!

    updates an existing authority record

### delete-authority!-sqlvec

    updates an existing authority record (sqlvec)

### delete-canvasser!

    updates an existing canvasser record

### delete-canvasser!-sqlvec

    updates an existing canvasser record (sqlvec)

### delete-district!

    updates an existing district record

### delete-district!-sqlvec

    updates an existing district record (sqlvec)

### delete-dwelling!

    updates an existing dwelling record

### delete-dwelling!-sqlvec

    updates an existing dwelling record (sqlvec)

### delete-elector!

    updates an existing elector record

### delete-elector!-sqlvec

    updates an existing elector record (sqlvec)

### delete-event!

    updates an existing event record

### delete-event!-sqlvec

    updates an existing event record (sqlvec)

### delete-followupaction!

    updates an existing followupaction record

### delete-followupaction!-sqlvec

    updates an existing followupaction record (sqlvec)

### delete-followupmethod!

    updates an existing followupmethod record

### delete-followupmethod!-sqlvec

    updates an existing followupmethod record (sqlvec)

### delete-followuprequest!

    updates an existing followuprequest record

### delete-followuprequest!-sqlvec

    updates an existing followuprequest record (sqlvec)

### delete-gender!

    updates an existing gender record

### delete-gender!-sqlvec

    updates an existing gender record (sqlvec)

### delete-intention!

    updates an existing intention record

### delete-intention!-sqlvec

    updates an existing intention record (sqlvec)

### delete-issue!

    updates an existing issue record

### delete-issue!-sqlvec

    updates an existing issue record (sqlvec)

### delete-option!

    updates an existing option record

### delete-option!-sqlvec

    updates an existing option record (sqlvec)

### delete-role!

    updates an existing role record

### delete-role!-sqlvec

    updates an existing role record (sqlvec)

### delete-team!

    updates an existing team record

### delete-team!-sqlvec

    updates an existing team record (sqlvec)

### delete-visit!

    updates an existing visit record

### delete-visit!-sqlvec

    updates an existing visit record (sqlvec)

### get-address

    selects an existing address record

### get-address-sqlvec

    selects an existing address record (sqlvec)

### get-authority

    selects an existing authority record

### get-authority-sqlvec

    selects an existing authority record (sqlvec)

### get-canvasser

    selects an existing canvasser record

### get-canvasser-by-username

    selects an existing canvasser record

### get-canvasser-by-username-sqlvec

    selects an existing canvasser record (sqlvec)

### get-canvasser-sqlvec

    selects an existing canvasser record (sqlvec)

### get-district

    selects an existing district record

### get-district-sqlvec

    selects an existing district record (sqlvec)

### get-dwelling

    selects an existing dwelling record

### get-dwelling-sqlvec

    selects an existing dwelling record (sqlvec)

### get-elector

    selects an existing elector record

### get-elector-sqlvec

    selects an existing elector record (sqlvec)

### get-event

    selects an existing event record

### get-event-sqlvec

    selects an existing event record (sqlvec)

### get-followupaction

    selects an existing followupaction record

### get-followupaction-sqlvec

    selects an existing followupaction record (sqlvec)

### get-followupmethod

    selects an existing followupmethod record

### get-followupmethod-sqlvec

    selects an existing followupmethod record (sqlvec)

### get-followuprequest

    selects an existing followuprequest record

### get-followuprequest-sqlvec

    selects an existing followuprequest record (sqlvec)

### get-gender

    selects an existing gender record

### get-gender-sqlvec

    selects an existing gender record (sqlvec)

### get-intention

    selects an existing intention record

### get-intention-sqlvec

    selects an existing intention record (sqlvec)

### get-issue

    selects an existing issue record

### get-issue-sqlvec

    selects an existing issue record (sqlvec)

### get-last-visit-by-canvasser

    returns the most recent visit record of the canvasser with the specified `:id`

### get-locality-for-visit

    returns the locality of the address of this visit

### get-option

    selects an existing option record

### get-option-sqlvec

    selects an existing option record (sqlvec)

### get-role

    selects an existing role record

### get-role-by-name

    selects an existing role record

### get-role-by-name-sqlvec

    selects an existing role record (sqlvec)

### get-role-sqlvec

    selects an existing role record (sqlvec)

### get-team

    selects an existing team record

### get-team-sqlvec

    selects an existing team record (sqlvec)

### get-visit

    selects an existing visit record

### get-visit-sqlvec

    selects an existing visit record (sqlvec)

### list-addresses

    lists all existing address records

### list-addresses-by-district

    lists all existing district records related to a given address

### list-addresses-by-district-sqlvec

    lists all existing district records related to a given address (sqlvec)

### list-addresses-by-locality

    lists all existing address records in a given locality

### list-addresses-sqlvec

    lists all existing address records (sqlvec)

### list-authorities

    lists all existing authority records

### list-authorities-sqlvec

    lists all existing authority records (sqlvec)

### list-canvassers

    lists all existing canvasser records

### list-canvassers-by-address

    lists all existing address records related to a given canvasser

### list-canvassers-by-address-sqlvec

    lists all existing address records related to a given canvasser (sqlvec)

### list-canvassers-by-authority

    lists all existing authority records related to a given canvasser

### list-canvassers-by-authority-sqlvec

    lists all existing authority records related to a given canvasser (sqlvec)

### list-canvassers-by-elector

    lists all existing elector records related to a given canvasser

### list-canvassers-by-elector-sqlvec

    lists all existing elector records related to a given canvasser (sqlvec)

### list-canvassers-by-issues

    links all existing issue records related to a given canvasser

### list-canvassers-by-issues-sqlvec

    links all existing issue records related to a given canvasser (sqlvec)

### list-canvassers-by-roles

    links all existing canvasser records related to a given role

### list-canvassers-by-roles-sqlvec

    links all existing canvasser records related to a given role (sqlvec)

### list-canvassers-sqlvec

    lists all existing canvasser records (sqlvec)

### list-districts

    lists all existing district records

### list-districts-sqlvec

    lists all existing district records (sqlvec)

### list-dwellings

    lists all existing dwelling records

### list-dwellings-by-address

    lists all existing dwelling records related to a given address

### list-dwellings-by-address-sqlvec

    lists all existing dwelling records related to a given address (sqlvec)

### list-dwellings-sqlvec

    lists all existing dwelling records (sqlvec)

### list-elector-intentions

    short form of `list-intentions-by-elector`, returning far less data, for use in `youyesyet.routes.rest/get-local-data`, q.v.

### list-electors

    lists all existing elector records

### list-electors-by-dwelling

    lists all existing dwelling records related to a given elector

### list-electors-by-dwelling-sqlvec

    lists all existing dwelling records related to a given elector (sqlvec)

### list-electors-by-gender

    lists all existing gender records related to a given elector

### list-electors-by-gender-sqlvec

    lists all existing gender records related to a given elector (sqlvec)

### list-electors-sqlvec

    lists all existing elector records (sqlvec)

### list-events

    lists all existing event records

### list-events-by-teams

    links all existing team records related to a given event

### list-events-by-teams-sqlvec

    links all existing team records related to a given event (sqlvec)

### list-events-sqlvec

    lists all existing event records (sqlvec)

### list-followupactions

    lists all existing followupaction records

### list-followupactions-by-canvasser

    lists all existing canvasser records related to a given followupaction

### list-followupactions-by-canvasser-sqlvec

    lists all existing canvasser records related to a given followupaction (sqlvec)

### list-followupactions-by-followuprequest

    lists all existing followuprequest records related to a given followupaction

### list-followupactions-by-followuprequest-sqlvec

    lists all existing followuprequest records related to a given followupaction (sqlvec)

### list-followupactions-sqlvec

    lists all existing followupaction records (sqlvec)

### list-followupmethods

    lists all existing followupmethod records

### list-followupmethods-sqlvec

    lists all existing followupmethod records (sqlvec)

### list-followuprequests

    lists all existing followuprequest records

### list-followuprequests-by-canvasser

    lists all existing canvasser records related to a given followuprequest

### list-followuprequests-by-canvasser-sqlvec

    lists all existing canvasser records related to a given followuprequest (sqlvec)

### list-followuprequests-by-elector

    lists all existing elector records related to a given followuprequest

### list-followuprequests-by-elector-sqlvec

    lists all existing elector records related to a given followuprequest (sqlvec)

### list-followuprequests-by-followupmethod

    lists all existing followupmethod records related to a given followuprequest

### list-followuprequests-by-followupmethod-sqlvec

    lists all existing followupmethod records related to a given followuprequest (sqlvec)

### list-followuprequests-by-issue

    lists all existing issue records related to a given followuprequest

### list-followuprequests-by-issue-sqlvec

    lists all existing issue records related to a given followuprequest (sqlvec)

### list-followuprequests-by-visit

    lists all existing visit records related to a given followuprequest

### list-followuprequests-by-visit-sqlvec

    lists all existing visit records related to a given followuprequest (sqlvec)

### list-followuprequests-sqlvec

    lists all existing followuprequest records (sqlvec)

### list-genders

    lists all existing gender records

### list-genders-sqlvec

    lists all existing gender records (sqlvec)

### list-intentions

    lists all existing intention records

### list-intentions-by-elector

    lists all existing elector records related to a given intention

### list-intentions-by-elector-sqlvec

    lists all existing elector records related to a given intention (sqlvec)

### list-intentions-by-option

    lists all existing option records related to a given intention

### list-intentions-by-option-sqlvec

    lists all existing option records related to a given intention (sqlvec)

### list-intentions-by-visit

    lists all existing visit records related to a given intention

### list-intentions-by-visit-sqlvec

    lists all existing visit records related to a given intention (sqlvec)

### list-intentions-sqlvec

    lists all existing intention records (sqlvec)

### list-issues

    lists all existing issue records

### list-issues-sqlvec

    lists all existing issue records (sqlvec)

### list-members-by-team

    links all existing canvasser records related to a given team

### list-members-by-team-sqlvec

    links all existing canvasser records related to a given team (sqlvec)

### list-open-requests

    lists all existing followuprequest records which have not been closed and which the :expert has expertise to answer.

### list-options

    lists all existing option records

### list-options-sqlvec

    lists all existing option records (sqlvec)

### list-organisers-by-team

    links all existing canvasser records related to a given team

### list-organisers-by-team-sqlvec

    links all existing canvasser records related to a given team (sqlvec)

### list-roles

    lists all existing role records

### list-roles-by-canvasser

    links all existing canvasser records related to a given role

### list-roles-sqlvec

    lists all existing role records (sqlvec)

### list-teams

    lists all existing team records

### list-teams-by-canvasser

    links all existing team records related to a given canvasser

### list-teams-by-canvasser-sqlvec

    links all existing team records related to a given canvasser (sqlvec)

### list-teams-by-district

    lists all existing district records related to a given team

### list-teams-by-district-sqlvec

    lists all existing district records related to a given team (sqlvec)

### list-teams-sqlvec

    lists all existing team records (sqlvec)

### list-visits

    lists all existing visit records

### list-visits-by-address

    lists all existing address records related to a given visit

### list-visits-by-address-sqlvec

    lists all existing address records related to a given visit (sqlvec)

### list-visits-by-canvasser

    lists all existing canvasser records related to a given visit

### list-visits-by-canvasser-sqlvec

    lists all existing canvasser records related to a given visit (sqlvec)

### list-visits-sqlvec

    lists all existing visit records (sqlvec)

### search-strings-addresses

    selects existing address records having any string field matching the parameter of the same name by substring match

### search-strings-addresses-sqlvec

    selects existing address records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-authorities

    selects existing authority records having any string field matching the parameter of the same name by substring match

### search-strings-authorities-sqlvec

    selects existing authority records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-canvassers

    selects existing canvasser records having any string field matching the parameter of the same name by substring match

### search-strings-canvassers-sqlvec

    selects existing canvasser records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-districts

    selects existing district records having any string field matching the parameter of the same name by substring match

### search-strings-districts-sqlvec

    selects existing district records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-dwellings

    selects existing dwelling records having any string field matching the parameter of the same name by substring match

### search-strings-dwellings-sqlvec

    selects existing dwelling records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-electors

    selects existing elector records having any string field matching the parameter of the same name by substring match

### search-strings-electors-sqlvec

    selects existing elector records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-events

    selects existing event records having any string field matching the parameter of the same name by substring match

### search-strings-events-sqlvec

    selects existing event records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-followupactions

    selects existing followupaction records having any string field matching the parameter of the same name by substring match

### search-strings-followupactions-sqlvec

    selects existing followupaction records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-followupmethods

    selects existing followupmethod records having any string field matching the parameter of the same name by substring match

### search-strings-followupmethods-sqlvec

    selects existing followupmethod records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-followuprequests

    selects existing followuprequest records having any string field matching the parameter of the same name by substring match

### search-strings-followuprequests-sqlvec

    selects existing followuprequest records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-genders

    selects existing gender records having any string field matching the parameter of the same name by substring match

### search-strings-genders-sqlvec

    selects existing gender records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-intentions

    selects existing intention records having any string field matching the parameter of the same name by substring match

### search-strings-intentions-sqlvec

    selects existing intention records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-issues

    selects existing issue records having any string field matching the parameter of the same name by substring match

### search-strings-issues-sqlvec

    selects existing issue records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-options

    selects existing option records having any string field matching the parameter of the same name by substring match

### search-strings-options-sqlvec

    selects existing option records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-roles

    selects existing role records having any string field matching the parameter of the same name by substring match

### search-strings-roles-sqlvec

    selects existing role records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-teams

    selects existing team records having any string field matching the parameter of the same name by substring match

### search-strings-teams-sqlvec

    selects existing team records having any string field matching the parameter of the same name by substring match (sqlvec)

### search-strings-visits

    selects existing visit records having any string field matching the parameter of the same name by substring match

### search-strings-visits-sqlvec

    selects existing visit records having any string field matching the parameter of the same name by substring match (sqlvec)

### to-date

`(to-date sql-date)`

    FIXME: write docs

### to-pg-json

`(to-pg-json value)`

    FIXME: write docs

### update-address!

    updates an existing address record

### update-address!-sqlvec

    updates an existing address record (sqlvec)

### update-authority!

    updates an existing authority record

### update-authority!-sqlvec

    updates an existing authority record (sqlvec)

### update-canvasser!

    updates an existing canvasser record

### update-canvasser!-sqlvec

    updates an existing canvasser record (sqlvec)

### update-district!

    updates an existing district record

### update-district!-sqlvec

    updates an existing district record (sqlvec)

### update-dwelling!

    updates an existing dwelling record

### update-dwelling!-sqlvec

    updates an existing dwelling record (sqlvec)

### update-elector!

    updates an existing elector record

### update-elector!-sqlvec

    updates an existing elector record (sqlvec)

### update-event!

    updates an existing event record

### update-event!-sqlvec

    updates an existing event record (sqlvec)

### update-followupaction!

    updates an existing followupaction record

### update-followupaction!-sqlvec

    updates an existing followupaction record (sqlvec)

### update-followupmethod!

    updates an existing followupmethod record

### update-followupmethod!-sqlvec

    updates an existing followupmethod record (sqlvec)

### update-followuprequest!

    updates an existing followuprequest record

### update-followuprequest!-sqlvec

    updates an existing followuprequest record (sqlvec)

### update-gender!

    updates an existing gender record

### update-gender!-sqlvec

    updates an existing gender record (sqlvec)

### update-intention!

    updates an existing intention record

### update-intention!-sqlvec

    updates an existing intention record (sqlvec)

### update-issue!

    updates an existing issue record

### update-issue!-sqlvec

    updates an existing issue record (sqlvec)

### update-option!

    updates an existing option record

### update-option!-sqlvec

    updates an existing option record (sqlvec)

### update-role!

    updates an existing role record

### update-role!-sqlvec

    updates an existing role record (sqlvec)

### update-team!

    updates an existing team record

### update-team!-sqlvec

    updates an existing team record (sqlvec)

### update-visit!

    updates an existing visit record

### update-visit!-sqlvec

    updates an existing visit record (sqlvec)