database/CreateDatabase.java

JSqlParser · src/main/java/net/sf/jsqlparser/statement/create/database/CreateDatabase.java · java · Apache-2.0
database

Represents a CREATE DATABASE SQL statement for building dynamic database schemas.

// Source: https://github.com/JSQLParser/JSqlParser | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
/*-
 * #%L
 * JSQLParser library
 * %%
 * Copyright (C) 2004 - 2026 JSQLParser
 * %%
 * Dual licensed under GNU LGPL 2.1 or Apache License 2.0
 * #L%
 */
package net.sf.jsqlparser.statement.create.database;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Optional;

import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
import net.sf.jsqlparser.statement.Statement;
import net.sf.jsqlparser.statement.StatementVisitor;

/**
 * A {@code CREATE DATABASE} statement with an optional {@code IF NOT EXISTS} and options. MySQL and
 * PostgreSQL options are typed {@

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key