Skip to content

Commit

Permalink
Merge pull request #18 from PaimaStudios/fix/migration
Browse files Browse the repository at this point in the history
migration tx
  • Loading branch information
SebastienGllmt authored Nov 21, 2023
2 parents d197e5b + 7494e51 commit f8560df
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/home/1-setup/1-how-to-use-paima-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,12 @@ root_folder
5500.sql will be applied at block-height START_BLOCKHEIGHT + 5500.
Both will be applied before any other inputs are processed for that block-height.

The *.sql files are PGSQL scripts. We ABSOLUTELY recommend writing your SQL script as a transaction, so if it fails the block-process-loop will stop and the script can be fixed and reapplied.
The *.sql files are PGSQL scripts. SQL scripts are automatically ran as transactions, if they fail the block-process-loop will stop and the script must be fixed and will be reapplied.

1000.sql example:
```
BEGIN;
-- INSERT... ;
-- UPDATE ...;
COMMIT;
INSERT INTO items (name) VALUES ('potion') ;
INSERT INTO items (name) VALUES ('book') ;
```
## Paima Engine Dry Running

Expand Down

0 comments on commit f8560df

Please sign in to comment.