def premetadata_create_container_info_table(self, conn, put_timestamp, _spi=None):
 if (put_timestamp is None):
  put_timestamp = Timestamp(0).internal
 conn.executescript("\n        CREATE TABLE container_stat (\n            account TEXT,\n            container TEXT,\n            created_at TEXT,\n            put_timestamp TEXT DEFAULT '0',\n            delete_timestamp TEXT DEFAULT '0',\n            object_count INTEGER,\n            bytes_used INTEGER,\n            reported_put_timestamp TEXT DEFAULT '0',\n            reported_delete_timestamp TEXT DEFAULT '0',\n            reported_object_count INTEGER DEFAULT 0,\n            reported_bytes_used INTEGER DEFAULT 0,\n            hash TEXT default '00000000000000000000000000000000',\n            id TEXT,\n            status TEXT DEFAULT '',\n            status_changed_at TEXT DEFAULT '0'\n        );\n\n        INSERT INTO container_stat (object_count, bytes_used)\n            VALUES (0, 0);\n    ")
 conn.execute('\n        UPDATE container_stat\n        SET account = ?, container = ?, created_at = ?, id = ?,\n            put_timestamp = ?\n    ', (self.account, self.container, Timestamp(time()).internal, str(uuid4()), put_timestamp))

def premetadata_create_container_info_table ( self , conn , put_timestamp , _spi = None ) : if ( put_timestamp is None ) : put_timestamp = Timestamp ( 0 ) . internal conn . executescript ( "\n        CREATE TABLE container_stat (\n            account TEXT,\n            container TEXT,\n            created_at TEXT,\n            put_timestamp TEXT DEFAULT '0',\n            delete_timestamp TEXT DEFAULT '0',\n            object_count INTEGER,\n            bytes_used INTEGER,\n            reported_put_timestamp TEXT DEFAULT '0',\n            reported_delete_timestamp TEXT DEFAULT '0',\n            reported_object_count INTEGER DEFAULT 0,\n            reported_bytes_used INTEGER DEFAULT 0,\n            hash TEXT default '00000000000000000000000000000000',\n            id TEXT,\n            status TEXT DEFAULT '',\n            status_changed_at TEXT DEFAULT '0'\n        );\n\n        INSERT INTO container_stat (object_count, bytes_used)\n            VALUES (0, 0);\n    " ) conn . execute ( '\n        UPDATE container_stat\n        SET account = ?, container = ?, created_at = ?, id = ?,\n            put_timestamp = ?\n    ' , ( self . account , self . container , Timestamp ( time ( ) ) . internal , str ( uuid4 ( ) ) , put_timestamp ) )
copied from containerbroker before the metadata column was added; used for testing with testcontainerbrokerbeforemetadata .