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

Problem when calling create database. #106

Open
jorgelo opened this issue Nov 10, 2021 · 0 comments
Open

Problem when calling create database. #106

jorgelo opened this issue Nov 10, 2021 · 0 comments

Comments

@jorgelo
Copy link

jorgelo commented Nov 10, 2021

Hello there,

I am trying to create a database using code that looks like this:

  await data.executeStatement({
    sql: `CREATE DATABASE ${database}`,
  });

But I receive the error: ERROR: CREATE DATABASE cannot run inside a transaction block.

Wondering if there is a way to execute a statement without creating a transaction. If I set the transactionId to nothing it still errors out.

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