Did I find the right examples for you? yes no

All Samples(10)  |  Call(2)  |  Derive(0)  |  Import(8)

        def optimize_database(cur, skip_analyze, skip_vacuum):
    if not skip_analyze:
        logger.info('analyzing db')
        cur.execute("""ANALYZE""")

    if not skip_vacuum:
        logger.info('cleaning db')
        cur.execute("""VACUUM""")
        


src/u/m/umimbutil-0.1.0/mbutil/util_merge.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile, multiprocessing
 
from util import mbtiles_connect, mbtiles_setup, compaction_update, optimize_connection, optimize_database, execute_commands_on_tile, process_tile, flip_y
from util_check import check_mbtiles
from multiprocessing import Pool
                (min_zoom, max_zoom))
 
        optimize_database(cur2, kwargs.get('skip_analyze', False), kwargs.get('skip_vacuum', False))
        con2.commit()
 

src/u/m/umimbutil-0.1.0/mbutil/util_export.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile
 
from util import mbtiles_connect, optimize_connection, optimize_database, compaction_update, execute_commands_on_tile, flip_y
 
logger = logging.getLogger(__name__)
            cur.execute("""DELETE FROM tiles WHERE zoom_level>=? AND zoom_level<=?""", (min_zoom, max_zoom))
 
        optimize_database(cur, kwargs.get('skip_analyze', False), kwargs.get('skip_vacuum', False))
        con.commit()
 

src/u/m/umimbutil-0.1.0/mbutil/util_import.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile
 
from util import mbtiles_connect, mbtiles_setup, optimize_connection, optimize_database, execute_commands_on_tile, flip_y, compaction_update
 
logger = logging.getLogger(__name__)

src/u/m/umimbutil-0.1.0/mbutil/util_compact.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile
 
logger = logging.getLogger(__name__)
 
from util import mbtiles_connect, optimize_connection, optimize_database, execute_commands_on_tile, compaction_prepare, compaction_finalize

src/u/m/umimbutil-0.1.0/mbutil/util_process.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile, multiprocessing
 
from util import mbtiles_connect, mbtiles_setup, compaction_update, optimize_connection, optimize_database, process_tile
from multiprocessing import Pool
 

src/u/m/umimbutil-0.1.0/mbutil/util_check.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile
 
from util import mbtiles_connect, optimize_connection, optimize_database, execute_commands_on_tile
 
logger = logging.getLogger(__name__)

src/u/m/umimbutil-0.1.0/mbutil/util_fill.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile
 
from util import mbtiles_connect, optimize_connection, optimize_database, coordinate_to_tile
 
logger = logging.getLogger(__name__)

src/u/m/umimbutil-0.1.0/mbutil/util_test.py   umimbutil(Download)
import sqlite3, uuid, sys, logging, time, os, json, zlib, hashlib, tempfile, multiprocessing
 
from util import mbtiles_connect, optimize_connection, optimize_database
from multiprocessing import Pool