#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import sys
import os
import re

sys.path.append('/Users/robertoneves/Projetos/bravaorm/')
sys.path.append('/Users/robertoneves/Projetos/dbmodel/')

import bravaorm
from model import *

import time

def main(arg):
    start = time.time()

    print()
    print()
    print()
    print()
    conn = bravaorm.Connection(db_user="root", db_password="1234", db_host="127.0.0.1", db_port=3306, db_database="ilhadoprazer", db_charset="utf8mb4")
    estados = conn.estados.all
    print(estados)
    print()
    print()
    print()
    print()

    conn.add(estado)

    conn.save()

    conn.close()


if __name__ == "__main__":
    main(sys.argv)
