A simple babashka script used to manage students information. It provides the following functionalities:
- batch create students
- batch update students
You need to install the babashka
- Config the the file
config.edn
, which is the config pointing to the data warehouse. - There should be an
ops_student
table and aops_student_serial
sequence in the data warehouse.
The typical SQL command to create the sequence is:
CREATE SEQUENCE ops_student_serial start XXX;
create new students by the src-table pre_ops_student_insert
$ ./crud.clj --create --src-table pre_ops_student_insert
Note: We can also see the intermediate output by
./crud.clj --create --src-table pre_ops_student_insert -d
The -d
denotes debug.
Copyright © 2022 Laurence Chen
Licensed under the term of the Mozilla Public License 2.0, see LICENSE.