Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
252 changes: 169 additions & 83 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@oclif/plugin-help": "^3.1.0",
"chalk": "^2.4.2",
"domain-objects": "0.22.1",
"helpful-errors": "^1.3.9",
"helpful-errors": "^1.3.10",
"indent-string": "^4.0.0",
"jest-diff": "^25.3.0",
"joi": "17.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// note: this connection config is defined in /provision/integration_test_db/docker-compose
export const promiseConfig = async () => ({
host: 'localhost',
port: 12821,
database: 'superimportantdb',
username: 'root',
password: 'a-secure-password',
});
10 changes: 10 additions & 0 deletions src/contract/__test_assets__/mysql.multischema/control.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: mysql
dialect: 5.7
connection: ./connection.config.ts
strict: false # strict = true -> display uncontrolled resources
definitions:
- ./definitions/init.yml
- ./definitions/tables.yml
- ./definitions/views.yml
- ./definitions/functions.yml
- ./definitions/procedures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- type: resource
path: './functions/find_message_hash_by_text.sql'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE FUNCTION commsdb.find_message_hash_by_text(
in_message TEXT
)
RETURNS BINARY(32)
BEGIN
RETURN UNHEX(SHA(in_message));
END;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- type: change
path: './init/databases.sql'
id: 'init_databases'
reappliable: false

- type: change
id: 'init_service_user'
path: './init/service_user.sql'
reappliable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE DATABASE commsdb;
CREATE DATABASE spacedb;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE USER 'user_name'@'%' IDENTIFIED BY '__CHANGE_M3__';
GRANT ALL PRIVILEGES ON `awesomedb`.* TO 'user_name'@'%';
GRANT ALL PRIVILEGES ON `commsdb`.* TO 'user_name'@'%';
GRANT ALL PRIVILEGES ON `spacedb`.* TO 'user_name'@'%';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- type: resource
path: './procedures/upsert_message.sql'
Loading
Loading