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

How to parse CREATE DATABASE DATABASE_NAME ? #2070

Open
ganesh-akashh opened this issue Sep 6, 2024 · 3 comments
Open

How to parse CREATE DATABASE DATABASE_NAME ? #2070

ganesh-akashh opened this issue Sep 6, 2024 · 3 comments
Labels
DDL DDL statement related Sponsor needed

Comments

@ganesh-akashh
Copy link

package org.example;

import net.sf.jsqlparser.parser.CCJSqlParser;
import net.sf.jsqlparser.parser.CCJSqlParserUtil;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.Statements;

class Main {

public static void main(String[] args) {
   
    try {
        String sqlStr = "CREATE DATABASE USERS; ";
        Statement statement=CCJSqlParserUtil.parse(sqlStr);


    } catch (Exception e) {
        System.out.println(e.getMessage());
    }


}

}

@manticore-projects manticore-projects added DDL DDL statement related Sponsor needed labels Sep 6, 2024
@manticore-projects
Copy link
Contributor

I just double checked that Grammar: there is indeed no support yet for CREATE DATABASE ...
PRs are welcome.

@ganesh-akashh
Copy link
Author

Can you share a user guide on how to introduce new features ?

@manticore-projects
Copy link
Contributor

Greetings!

Can you share a user guide on how to introduce new features ?

https://manticore-projects.com/JSQLParser/contribution.html

Cheers!

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

No branches or pull requests

2 participants