@classmethod
    def check_libsqlite(cls):
        # Checking compile options is not supported.
        if sys.platform.startswith('win'):
            library = 'libsqlite3.dll'
        elif sys.platform == 'darwin':
            library = 'libsqlite3.dylib'
        else:
            library = 'libsqlite3.so'

        try:
            libsqlite = ctypes.CDLL(library)
        except __HOLE__:
            return False

        return libsqlite.sqlite3_compileoption_used('BERKELEY_DB') == 1
dataset/ETHPy150Open coleifer/peewee/playhouse/berkeleydb.py/BerkeleyDatabase.check_libsqlite