Ejemplo n.º 1
0
 def close(self):
     asyncio.get_event_loop().run_until_complete(self._close())
Ejemplo n.º 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
"""
Ejemplo n.º 3
0
 def close(self):
     asyncio.get_event_loop().run_until_complete(self._close())