Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL autoload #4

Open
federico-razzoli opened this issue Feb 10, 2024 · 0 comments
Open

SQL autoload #4

federico-razzoli opened this issue Feb 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@federico-razzoli
Copy link
Member

Currently we have an empty custom.sql file included in the repo, we check if it exists and if so we run it.

Instead, let's make a directory called sql_autoload, which contains a .keep file so that git versions it. Any other file in the directory should be excluded by gitignore. After startup, we'll load each file in sql_autoload.

Files should be loaded in alphabetical order, so one can prefix them with a number to force the execution order. (In theory ls sorts files alphabetically, so it's easy)

@federico-razzoli federico-razzoli added the enhancement New feature or request label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant