Skip to content

Commit

Permalink
reformatting of headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dungnmaster committed Nov 17, 2023
1 parent 94fc752 commit fb51011
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ parts:
- file: source/reference/evaql/create_function
- file: source/reference/evaql/create_index
- file: source/reference/evaql/create_table
- file: source/reference/evaql/create_job
- file: source/reference/evaql/drop_database
- file: source/reference/evaql/drop_function
- file: source/reference/evaql/drop_table
- file: source/reference/evaql/drop_job
- file: source/reference/evaql/insert_table
- file: source/reference/evaql/delete_table
- file: source/reference/evaql/rename
Expand Down
11 changes: 6 additions & 5 deletions docs/source/reference/evaql/create_job.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
CREATE JOB
===============

.. _create-function:
.. _create-job:

The CREATE JOB statement allows us to create recurring or one-time jobs in EvaDB. These jobs can be associated with multiple queries,
all of which will be executed sequentially every time the created job is triggered according to the assigned schedule.


.. code-block:: sql
.. code-block:: text
CREATE JOB [IF NOT EXISTS] <job_name> AS {
CREATE JOB [IF NOT EXISTS] <job_name> AS
{
<job_queries>...
}
[START <start_time>]
Expand All @@ -27,7 +28,8 @@ Examples

.. code:: text
CREATE JOB forecasting_job AS {
CREATE JOB forecasting_job AS
{
CREATE OR REPLACE FUNCTION HomeSalesForecast FROM
( SELECT * FROM postgres_data.home_sales )
TYPE Forecasting
Expand All @@ -37,4 +39,3 @@ Examples
START '2023-04-01 01:10:00'
END '2023-05-01'
EVERY 1 week;
4 changes: 2 additions & 2 deletions docs/source/reference/evaql/drop_job.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DROP JOB
=============

.. _drop_job:
.. _drop-job:

.. code:: mysql
DROP JOB forecasting_job;
DROP JOB IF EXISTS forecasting_job;
DROP JOB IF EXISTS forecasting_job;

0 comments on commit fb51011

Please sign in to comment.