Skip to content

Commit

Permalink
chores: 1.3 release
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuel Calvo <[email protected]>
  • Loading branch information
3manuek committed Jun 14, 2023
1 parent 31a2a6b commit 1afbf6c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

Notable changes to pgqueries.

## Release number - [yyyy-mm-dd]
## v1.3 - [2023-06-14]

### Added

### Changed
- artifact_builder builds NDJSON format, for easy import into Postgres using COPY command.
### Fixed

### Fixed
- Fixes to the artifact_builder

## v1.0 - v1.2

### Added

- Functional artifact_builder
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ The hierarchical tree is compound by:
sql/<category>/file.[sql|md]
```



## SQL formatting and practices

Rule 1:
Expand All @@ -44,6 +42,13 @@ Rule 2:

> First comment line is mandatory. Minimal accepted documentation.
## Indexer

> This is currently under development.
This repository includes and indexer tool (artifact_builder) that builds json artifacts to be
easily imported into Postgres using NDJSON format.

## Testing

TODO
Expand Down
19 changes: 15 additions & 4 deletions artifact_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@ This section builds a JSON map of the SQL and MD files present on the repository

## Execution

Load virtual env:

```bash
python3 artifact_builder/ -D sql -v | jq '.search_query'
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
```

Default output: index.json (with `--output`).
The folowing allows you to index and search:

```bash
python3 artifact_builder/ -D sql -E -v | jq '.search_query'
```

See `python3 artifact_builder/ -h` for more information.

Default output: index.json (with `--output`) and `--ouput-ndjson` (`ndindex.json`).


## Modules [potentially] used
## TODO

[Dataclasses](https://github.com/lidatong/dataclasses-json)
Modules [potentially] beneficial: [Dataclasses](https://github.com/lidatong/dataclasses-json)

0 comments on commit 1afbf6c

Please sign in to comment.