# Path: rrd/store.py
# def connect_db(cfg):
#     def __init__(self, cfg):
#     def get_conn(self):
#     def execute(self, *a, **kw):
#     def insert(self, *a, **kw):
#     def update(self, *a, **kw):
#     def query_all(self, *a, **kw):
#     def query_one(self, *a, **kw):
#     def query_column(self, *a, **kw):
#     def commit(self):
#     def rollback(self):
# class DB(object):


from rrd.store import db
# -*- coding:utf-8 -*-
# Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


__author__ = 'Ulric Qin'

class Bean(object):
    _tbl = ''
    _id = 'id'
    _cols = ''

# Path: rrd/store.py
# def connect_db(cfg):
#     def __init__(self, cfg):
#     def get_conn(self):
#     def execute(self, *a, **kw):
#     def insert(self, *a, **kw):
#     def update(self, *a, **kw):
#     def query_all(self, *a, **kw):
#     def query_one(self, *a, **kw):
#     def query_column(self, *a, **kw):
#     def commit(self):
#     def rollback(self):
# class DB(object):


# Path: rrd/model/portal/bean.py
from rrd.store import db

# -*- coding:utf-8 -*-
# Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


__author__ = 'Ulric Qin'

class Bean(object):
    _tbl = ''
    _id = 'id'
    _cols = ''

    _db = db