본문 바로가기

분류 전체보기94

Watch 사용 주의점 Nuxt에서 watch내의 함수를 정의 하면 변경하는 값을 감시한다. 회사에서 구축한 시스템에서 컴퍼넌트로 부터 넘어온 props 값을 watch가 캐치하지 못하는 현상이 있었는데, 원인을 파악하니 이해가 되었다. Watch내 의 함수를 선언할때, 함수의 파라미터를 하나만 설정하면 변경된 새로운 값을 이벤트로 받는다. 즉, 변경된 값이 존재하지 않으면 이벤트가 발생하지 않는다는 것이다. 만약 파라미터를 2개 둔다면 첫번째는 새로운 값, 두번째는 예전 값에 대해서 이벤트를 받게 된다. 즉, 부모 컴퍼넌트에는 다른 이벤트가 발생하여 props에 값을 넣었지만, 넣은 값이 기존값과 동일하다면 watch는 동작하지 않는다. 2021. 12. 15.
Apache Kafka CentOS 8 설치 1. 자바 설치 sudo dnf install java-11-openjdk wget vim​ 2. 카프카 다운로드 wget https://dlcdn.apache.org/kafka/3.0.0/kafka_2.13-3.0.0.tgz tar xzf kafka_2.13-3.0.0.tgz mv kafka_2.13-3.0.0 /usr/local/kafka 3.카프카 Systemd Unit Files 세팅 vim /etc/systemd/system/zookeeper.service [Unit] Description=Apache Zookeeper server Documentation=http://zookeeper.apache.org Requires=network.target remote-fs.target After=net.. 2021. 12. 9.
Hierarchical Queries 계층 구조 쿼리들 https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/Hierarchical-Queries.html SQL Language Reference docs.oracle.com https://docs.oracle.com/cd/B19306_01/server.102/b14200/queries003.htm Hierarchical Queries Hierarchical Queries If a table contains hierarchical data, then you can select rows in a hierarchical order using the hierarchical query clause: hierarchical_query_clause::=.. 2021. 11. 29.
MySQL FIND_IN_SET() Function https://www.w3schools.com/sql/func_mysql_find_in_set.asp MySQL FIND_IN_SET() Function W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com 예제 문자열 배열 내의 "q"를 찾기 SELECT FIND_IN_SET("q", "s,q,l"); 정의와 용례 FIND_IN_SET() 함수는 문자열 배열에서 문자열의 위치.. 2021. 11. 29.