Documentation of 'org.hsqldb.scriptio.ScriptWriterText' Java class
ScriptWriterText
org.hsqldb.scriptio

Class ScriptWriterText

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    ScriptWriterEncode


    public class ScriptWriterText
    extends ScriptWriterBase
    Handles all scripting and logging operations. A script consists of two blocks:

    DDL: SQL statements for table and user definitions DATA: INSERT statements for memory tables This happens as part of the CHECKPOINT and SHUTDOWN COMPACT process. In this case, the DATA block contains the CACHED table data as well.

    A related use for this class is for saving a current snapshot of the database data to a user-defined file with the SCRIPT command A log consists of SQL statements of different types. Each statement is encoded as ASCII and saved.

    Since:
    1.7.2
    • Field Detail

      • BYTES_LINE_SEP

        public static byte[] BYTES_LINE_SEP
    • Constructor Detail

      • ScriptWriterText

        public ScriptWriterText(Database db,
                                java.io.OutputStream outputStream,
                                FileAccess.FileSync descriptor,
                                boolean includeCachedData)
      • ScriptWriterText

        public ScriptWriterText(Database db,
                                java.lang.String file,
                                boolean includeCachedData,
                                boolean newFile,
                                boolean isDump)
      • ScriptWriterText

        public ScriptWriterText(Database db,
                                java.lang.String file,
                                boolean includeCachedData,
                                boolean compressed)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.