sqlite3 内存mem数据库

https://www.devdungeon.com/content/python-sqlite3-tutorial

args.db_connection = pysqlite3.connect(':memory:')

------
def _Back_Db(args):
    disk_db = pysqlite3.connect(args.db_name)
    with disk_db:
        #disk_db.backup(args.db_connection)
        (args.db_connection).backup(disk_db)
    disk_db.close()

 

posted @ 2023-07-31 16:40  cnchengv  阅读(107)  评论(0编辑  收藏  举报