예제 #1
0
 def close(self):
     asyncio.get_event_loop().run_until_complete(self._close())
예제 #2
0
import argparse
import math
import signal
from faker import Factory
from functools import partial
from concurrent.futures import ThreadPoolExecutor
from typing import NamedTuple, Optional

from cr8.insert_json import to_insert
from cr8.misc import parse_table, parse_version
from cr8.aio import asyncio, consume
from cr8.cli import to_int
from cr8.fake_providers import GeoSpatialProvider, auto_inc
from cr8 import clients, aio

loop = asyncio.get_event_loop()

SELLECT_COLS = """
select
    column_name,
    data_type,
    character_maximum_length
from
    information_schema.columns
where
    cast(is_generated as string) in ('f', 'NEVER')
    and {schema_column_name} = ?
    and table_name = ?
    and column_name not like '%]'
order by ordinal_position asc
"""
예제 #3
0
파일: clients.py 프로젝트: mikethebeer/cr8
 def close(self):
     asyncio.get_event_loop().run_until_complete(self._close())