!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/wincloud_gateway/node_modules/knex/lib/schema/   drwxr-xr-x
Free 13.27 GB of 57.97 GB (22.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     builder.js (2.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const inherits = require('inherits');
const { EventEmitter } = require('events');
const { each, toArray } = require('lodash');
const { addQueryContext } = require('../helpers');
const saveAsyncStack = require('../util/save-async-stack');

// Constructor for the builder instance, typically called from
// `knex.builder`, accepting the current `knex` instance,
// and pulling out the `client` and `grammar` from the current
// knex instance.
function SchemaBuilder(client) {
  this.client = client;
  this._sequence = [];

  if (client.config) {
    this._debug = client.config.debug;
    saveAsyncStack(this, 4);
  }
}

inherits(SchemaBuilder, EventEmitter);

// Each of the schema builder methods just add to the
// "_sequence" array for consistency.
each(
  [
    'createTable',
    'createTableIfNotExists',
    'createSchema',
    'createSchemaIfNotExists',
    'dropSchema',
    'dropSchemaIfExists',
    'createExtension',
    'createExtensionIfNotExists',
    'dropExtension',
    'dropExtensionIfExists',
    'table',
    'alterTable',
    'hasTable',
    'hasColumn',
    'dropTable',
    'renameTable',
    'dropTableIfExists',
    'raw',
  ],
  function(method) {
    SchemaBuilder.prototype[method] = function() {
      if (method === 'createTableIfNotExists') {
        this.client.logger.warn(
          [
            'Use async .hasTable to check if table exists and then use plain .createTable. Since ',
            '.createTableIfNotExists actually just generates plain "CREATE TABLE IF NOT EXIST..." ',
            'query it will not work correctly if there are any alter table queries generated for ',
            'columns afterwards. To not break old migrations this function is left untouched for now',
            ', but it should not be used when writing new code and it is removed from documentation.',
          ].join('')
        );
      }
      if (method === 'table') method = 'alterTable';
      this._sequence.push({
        method,
        args: toArray(arguments),
      });
      return this;
    };
  }
);

require('../interface')(SchemaBuilder);
addQueryContext(SchemaBuilder);

SchemaBuilder.prototype.withSchema = function(schemaName) {
  this._schema = schemaName;
  return this;
};

SchemaBuilder.prototype.toString = function() {
  return this.toQuery();
};

SchemaBuilder.prototype.toSQL = function() {
  return this.client.schemaCompiler(this).toSQL();
};

module.exports = SchemaBuilder;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0133 ]--