예제 #1
0
import repository


# 1. INSERT

data = {"title": "제목1", "content": "내용1"}
# repository.save(data)

# 2. SELECT
# repository.findAll()
repository.findById(6)

# 3.DELETE
# repository.deleteById(6)
예제 #2
0
def detail(id):
    board = repository.findById(id)
    return render_template("detail.html", b=board)
예제 #3
0
import repository

# 1. INSERT
data = {"title": "제목1", "content": "내용1"}
# repository.save(data)

# 2. SELECT
# repository.findAll()

repository.findById(13)

# 3. DELETE
repository.deleteById(13)