Liking cljdoc? Tell your friends :D

cloud-clj.etl.pace


*target-instance-name*clj


*target-namespace*clj


get-instance-idclj

(get-instance-id session instance-name)

get-personaclj

(get-persona session persona-name)

load-competenciesclj

(load-competencies session csv-files)

This function takes a Cloud API session and a list of CSV files and parses it as PACE competencies, then inserts them into the Cloud API.

This function takes a Cloud API session and a list of CSV files and parses
it as PACE competencies, then inserts them into the Cloud API.
raw docstring

load-csvclj

(load-csv file)
(load-csv file {:keys [drop-first?] :or {drop-first? false}})

This function loads a single CSV file. The 'file' var is merely passed to clojure.java.io/reader which is used to read the CSV file. The option map may provide an optional 'drop-first?' argument that will (rest) the output. This may be useful if you want to throw away the first row containing row headers.

This function loads a single CSV file. The 'file' var is merely passed to
clojure.java.io/reader which is used to read the CSV file. The option map
may provide an optional 'drop-first?' argument that will (rest) the output.
This may be useful if you want to throw away the first row containing row
headers.
raw docstring

load-many-csvclj

(load-many-csv files)
(load-many-csv files opts)

This function takes a sequence of files and passes each one to the load-csv function and concats the parsed CSV files together.

This function takes a sequence of files and passes each one to the load-csv
function and concats the parsed CSV files together.
raw docstring

load-science-standardsclj

(load-science-standards session csv-files)

Takes a Cloud API session and a list of CSV files and loads them into the Cloud API as PACE science standards (which are different in format from all of the other standards.)

Takes a Cloud API session and a list of CSV files and loads them into the
Cloud API as PACE science standards (which are different in format from all
of the other standards.)
raw docstring

load-standardsclj

(load-standards session csv-files)

This function takes a Cloud API session and a sequence of CSV files, parses them as PACE standards and standard_groups and inserts them into the Cloud API.

This function takes a Cloud API session and a sequence of CSV files, parses
them as PACE standards and standard_groups and inserts them into the Cloud
API.
raw docstring

load-users!clj

(load-users! session csv-file persona-name)

This function loads in users from a CSV file with the session, csv file path, and persona name in that order.

The CSV file should have data in the following order on each row after a header row: Fullname, Firstname, Lastname, Grade Level, Content Area, Email, and District.

This function loads in users from a CSV file with the session, csv file
path, and persona name in that order.

The CSV file should have data in the following order on each row after a
header row:
Fullname, Firstname, Lastname, Grade Level, Content Area, Email,
and District.
raw docstring

prepare-competenciesclj

(prepare-competencies csv-data)

This function takes parsed PACE competencies from CSV files and converts each row into something insertable to the Cloud API.

This function takes parsed PACE competencies from CSV files and converts
each row into something insertable to the Cloud API.
raw docstring

prepare-competencyclj

(prepare-competency [statement description])

This function takes a CSV row representing a competency and converts it into something that can be inserted to the Cloud API.

This function takes a CSV row representing a competency and converts it into
something that can be inserted to the Cloud API.
raw docstring

prepare-science-standardclj

(prepare-science-standard [statement description])

Takes a 'special' science standard from the parsed CSV and turns it into data that can be inserted into the Cloud API.

Takes a 'special' science standard from the parsed CSV and turns it into
data that can be inserted into the Cloud API.
raw docstring

prepare-science-standardsclj

(prepare-science-standards standard-csv-data)

Takes a sequence of science standards as loaded from CSV file(s) and turns those records into 'standard' records that can be inserted into the Cloud API.

Takes a sequence of science standards as loaded from CSV file(s) and turns
those records into 'standard' records that can be inserted into the Cloud
API.
raw docstring

prepare-standardclj

(prepare-standard raw-standard)

This function takes a raw standard from CSV and converts it to an object that can be inserted into the Cloud API.

This function takes a raw standard from CSV and converts it to an object
that can be inserted into the Cloud API.
raw docstring

prepare-standard-groupclj

(prepare-standard-group [group standards])

Takes a group and its associated standards from a CSV dump that has already been split and turns it into a 'standard_group' that can be inserted to the Cloud API.

Takes a group and its associated standards from a CSV dump that has already
been split and turns it into a 'standard_group' that can be inserted to the
Cloud API.
raw docstring

prepare-standard-groupsclj

(prepare-standard-groups standard-csv-data)

Parses the raw standard CSV data and converts that data into something that can be inserted to the cloud api. It also embeds the related standards into the group (this has to be dissoc'ed prior to insert.)

Parses the raw standard CSV data and converts that data into something that
can be inserted to the cloud api. It also embeds the related standards into
the group (this has to be dissoc'ed prior to insert.)
raw docstring

prepare-userclj

(prepare-user instance-id
              [fullname firstname lastname grade-level content-area email
               district])

This function takes an instance id followed by a row of CSV as provided by PACE and turns that row into a map that can be inserted into the Cloud API.

This function takes an instance id followed by a row of CSV as provided by
PACE and turns that row into a map that can be inserted into the Cloud API.
raw docstring

prepare-user-personaclj

(prepare-user-persona persona platform-user)

This function takes a persona and a platform user and generates a map representing a 'user_persona' record that can be inserted into the database.

This function takes a persona and a platform user and generates a map
representing a 'user_persona' record that can be inserted into the
database.
raw docstring

special-load!clj

(special-load! session csv-file schema content-areas grades)

split-standard-groupsclj

(split-standard-groups standard-csv-data)

This function takes standard CSV data and splits up standards by their group as defined by a regex that matches rows that are 'standards' and not groups.

This function takes standard CSV data and splits up standards by their group
as defined by a regex that matches rows that are 'standards' and not groups.
raw docstring

standard-codeclj

(standard-code i)

standard?clj

(standard? i)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close