Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

#9 Database setup #11

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
#9 Database setup, apply requested changes
acathers committed Jan 25, 2020
commit 77bdbf266d50a519d03efd5b4a33f13f026849b7

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@
import org.jooq.impl.DSL;
import org.togetherjava.discordbot.commands.CommandContext;

public abstract class SimpleRepository<T> implements Repository<T> {
public abstract class JooqRepository<T> implements Repository<T> {

protected DSLContext dslContext;

public SimpleRepository(CommandContext context) {
public JooqRepository(CommandContext context) {
dslContext = DSL.using(context.getConfig().getDburl());
}

6 changes: 0 additions & 6 deletions src/main/resources/db/V1__test.sql

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/sample-config.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
prefixes: ["!", "?"]
botToken: "your token"
# the url for the database connection
dburl: "jdbc:sqlite:yourfile.sqlite"
dburl: "jdbc:sqlite:tjbot.sqlite"

# channel for modmail
moderationChannel: "your channel"