Class InsertWriter
java.lang.Object
org.pgcodekeeper.core.model.graph.InsertWriter
Database insert script generator for data migration.
Generates INSERT statements with dependency resolution, handling foreign key constraints,
cycles, and database-specific data types for PostgreSQL and Microsoft SQL databases.
-
Method Summary
-
Method Details
-
write
public static String write(AbstractDatabase db, ISettings settings, String name, String filter, String source) throws InterruptedException, IOException, SQLException Method for call from external classes to start the process of get all data which will be need to transfer and create insert script.- Parameters:
db- - source-database schemasettings- -ISettingsname- - qualified table name which data need to transferfilter- - condition of WHERE for query select- Throws:
InterruptedException- if operation is interruptedIOException- if I/O error occursSQLException- if database error occurs
-