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

I can't configure it to sqlite DB. #29

Open
shohrab-swl opened this issue Mar 21, 2024 · 0 comments
Open

I can't configure it to sqlite DB. #29

shohrab-swl opened this issue Mar 21, 2024 · 0 comments

Comments

@shohrab-swl
Copy link

shohrab-swl commented Mar 21, 2024

I just change application.conf file

ktor {
deployment {
port = 9090
}
application {
modules = [ ktor.ServerKt.module ]
}
development = true
}

database {
type = "JDBC"
drop = false
jdbc {

    driver = "org.sqlite.JDBC" 
    url = "jdbc:sqlite:file:test?mode=memory&cache=shared"
    schema = ""
    username = "root"
    username = ${?MYSQL_USER}
    password = "root"
    username = ${?MYSQL_PASSWORD}
}

}

jwt {
domain = "http://localhost:8080"
domain = ${?DOMAIN}
secret = "490626fc-d735-4b85-a953-386f0b8cd2f5"
secret = ${?JWT_SECRET}
}

and add this dependency implementation("org.xerial:sqlite-jdbc:3.45.0.0")

that throw this error message:

Exception in thread "DefaultDispatcher-worker-1" java.lang.IllegalStateException: repositories.user.UserTable.id is not in record set

CleanArchitecture.zip

Can anyone help me to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant