워드프레스로 옮겼습니다.
https://drypot.wordpress.com/2019/02/05/테이블-이름-단수-복수/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // NSViewControllerRepresentable.swift | |
| // HelloSwiftUI | |
| // | |
| // Created by Kyuhyun Park on 12/23/24. | |
| // | |
| import SwiftUI | |
| import AppKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // User | |
| class User { | |
| userId; | |
| } | |
| class UserManager { | |
| IRepository repo; | |
| List<User> users = new List<User>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| expb.core.put('/api/posts/:tid([0-9]+)/:pid([0-9]+)', expu.handler(function (req, res, done) { | |
| userb.checkUser(res, function (err, user) { | |
| if (err) return done(err); | |
| var form = postn.getForm(req); | |
| mysql2.queryOne('select * from thread where id = ?', form.tid, (err, thread) => { | |
| if (err) return done(err); | |
| if (!thread) return done(error('INVALID_THREAD')); | |
| mysql2.queryOne('select * from post where id = ?', form.pid, (err, post) => { | |
| if (err) return done(err); | |
| postb.unpackPost(post); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs'); | |
| var pathl = require('path'); | |
| function traverse(path, next) { | |
| fs.stat(path, function (err, stat) { | |
| if (err) return next(err); | |
| if(stat.isFile()) { | |
| return func(path, next); | |
| } | |
| if(stat.isDirectory()) { |