-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from halvardssm/fix_path_resolve
fix path resolve
- Loading branch information
Showing
12 changed files
with
136 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const configPg = { | ||
migrationFolder: `./migrations`, | ||
connection: { | ||
database: "nessie", | ||
hostname: "localhost", | ||
port: 5432, | ||
user: "root", | ||
password: "pwd", | ||
}, | ||
dialect: "pg", | ||
}; | ||
|
||
const configMySql = { | ||
migrationFolder: `./migrations`, | ||
connection: { | ||
hostname: "localhost", | ||
port: 3306, | ||
username: "root", | ||
// password: "pwd", // uncomment this line for <8 | ||
db: "nessie", | ||
}, | ||
dialect: "mysql", | ||
}; | ||
|
||
const configSqLite = { | ||
migrationFolder: `./migrations`, | ||
connection: "sqlite.db", | ||
dialect: "sqlite", | ||
}; | ||
|
||
export default configPg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import Denomander from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
export { relative, resolve } from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { readJson } from "https://deno.land/[email protected]/fs/read_json.ts"; | ||
export { | ||
assert, | ||
assertArrayContains, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
const configPg = { | ||
migrationFolder: `${Deno.cwd()}/migrations`, | ||
connection: { | ||
database: "nessie", | ||
hostname: "localhost", | ||
port: 5000, | ||
user: "root", | ||
password: "pwd", | ||
export default { | ||
"migrationFolder": "./migrations", | ||
"connection": { | ||
"database": "nessie", | ||
"hostname": "localhost", | ||
"port": 5000, | ||
"user": "root", | ||
"password": "pwd", | ||
}, | ||
dialect: "pg", | ||
"dialect": "pg", | ||
}; | ||
|
||
const configMySql = { | ||
migrationFolder: `${Deno.cwd()}/migrations`, | ||
connection: { | ||
hostname: "localhost", | ||
port: 5001, | ||
username: "root", | ||
// password: "pwd", // uncomment this line for <8 | ||
db: "nessie", | ||
}, | ||
dialect: "mysql", | ||
}; | ||
|
||
const configSqLite = { | ||
migrationFolder: `${Deno.cwd()}/migrations`, | ||
connection: "sqlite.db", | ||
dialect: "sqlite", | ||
}; | ||
|
||
export default configPg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { nessieConfig } from "../../mod.ts"; | ||
|
||
const configMySql: nessieConfig = { | ||
migrationFolder: `${Deno.cwd()}/tests/migrations`, | ||
connection: { | ||
hostname: "localhost", | ||
port: 5001, | ||
username: "root", | ||
db: "nessie", | ||
export default { | ||
"migrationFolder": "./tests/migrations", | ||
"connection": { | ||
"hostname": "localhost", | ||
"port": 5001, | ||
"username": "root", | ||
"db": "nessie", | ||
}, | ||
dialect: "mysql", | ||
"dialect": "mysql", | ||
}; | ||
|
||
export default configMySql; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import { nessieConfig } from "../../mod.ts"; | ||
|
||
const configPg: nessieConfig = { | ||
migrationFolder: `${Deno.cwd()}/tests/migrations`, | ||
connection: { | ||
database: "nessie", | ||
hostname: "localhost", | ||
port: 5000, | ||
user: "root", | ||
password: "pwd", | ||
export default { | ||
"migrationFolder": "./tests/migrations", | ||
"connection": { | ||
"database": "nessie", | ||
"hostname": "localhost", | ||
"port": 5000, | ||
"user": "root", | ||
"password": "pwd", | ||
}, | ||
dialect: "pg", | ||
"dialect": "pg", | ||
}; | ||
|
||
export default configPg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import { nessieConfig } from "../../mod.ts"; | ||
|
||
const configSqLite: nessieConfig = { | ||
migrationFolder: `${Deno.cwd()}/tests/migrations`, | ||
connection: `tests/data/sqlite.db`, | ||
dialect: "sqlite", | ||
export default { | ||
"migrationFolder": "./tests/migrations", | ||
"connection": "./tests/data/sqlite.db", | ||
"dialect": "sqlite", | ||
}; | ||
|
||
export default configSqLite; |