Commit 7de91390 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

create scripts folder

For testing scripts etc. They might not work.
parent 1bba597d
#!/usr/bin/env python3
from mbdata.models import Track
from sqlalchemy.sql import select
import timeit
import sys
import os
import inspect
currentdir = os.path.dirname(os.path.abspath(
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from brainzfs import _init_database
dbfile = sys.argv[1] if len(sys.argv) > 1 else 'music.db'
session = _init_database(dbfile)
def test_all_query():
global session
return session.execute(select([]))
def test_first_query():
global session
return session.execute(select([])).first()
# timeit.repeat(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment